Monday, 19 March 2012

Linux Add NIC and Gateway command

# Adding new network interface command

ifconfig eth0 192.168.1.112 netmask 255.255.255.0 up

# Adding new virtual network interface command

ifconfig eth0:0 192.168.10.112 netmask 255.255.255.0 up

# Adding Default Gateway

route add default gw 192.168.1.1

No comments: