
18
Static the Gateway Either use the /etc/sysconfig/network-scripts/eth0 (preferred method)
or
use the /etc/rc.d/rc.local file
DCHP
dhcpcd eth0
Take interface up or down
ifup eth0
ifdown eth0
Restart Network
/etc/rc.d/init.d/network restart
Promiscuous mode
ifconfig –eth0 -promisc
Determine IP Status –
including whether interface
is in promiscuous mode
ip link
Listening ports – netstat netstat –tpan will show ports what ports are open on the external interface –
nice to use to verify things like Apache or SSH are listening for incoming
connections
IP Information
There is no man page, so use ip help instead if you need help.
ip a – display addresses
ip a help – further help for address
ip r – display routes (similar to the route command)
ip a a 10.10.146.58/30 dev eth0 label eth0:0 – add a virtual
interface to dev eth0
ip l s eth0 mtu 1200 – change the mtu to 1200
Kommentare zu diesen Handbüchern