Linux

Configure Linux ip address, netmask and gateway

Change ip address of network interface card:

ifconfig eth0 192.168.1.5

Change netmask of network interface card:

ifconfig eth0 netmask 255.255.255.0

How to bring up the network interface card:

ifconfig eth0 192.168.1.5 up

How to bring down the network interface card:

ifconfig eth0 down

How to change default gateway:

route add default gw 192.168.1.10