Tuesday, January 18, 2011

ifconfig examples

To change the ip address using ifconfig:
$ ifconfig eth0:192.168.4.100

To change the netmask:
$ ifconfig eth0 netmask 255.255.255.0

To bring down an nic:

$ ifconfig eth0 down

To bring up an nic:
$ ifconfig eth0 up

No comments:

Post a Comment