Thursday, December 29, 2005

networking (Note ifconfig, route, mii-tool, nslookup commands are obsolete

netstat -tupl --- list internet services on a system

netstat -tup --- list active connections to/from system

ip link show --- list interfaces

ethtool interface --- list interface status

ip link set dev eth0 name wan --- ip link set dev eth0 name wan

ip addr add brd + dev eth0 --- add ip and mask(

ip link set dev interface up --- bring interface up (or down)

host --- lookup ip address for name or vice versa

hostname -i --- lookup local ip address (equivalent to host `hostname`)

No comments: