Linux Notes

Networking

IP address

Show the IP address:

/sbin/ifconfig

 

Configure the IP address:

sudo /sbin/ifconfig eth0 192.168.0.110   set IP address

sudo /sbin/ifconfig eth0:1 192.168.0.111    second IP address (virtual)   

 

Stopping and starting networking services:

(log in as root)

sudo /etc/init.d/networking stop

    start

    restart


Leave a Reply