Domain Name Yahoo

Easy Help Troubleshoot Your Linux Box



  

Solve your problem here.

Yes, many Linux administrators are having problems. Browse your problem here, ask what to do and how to solve your problems. We are here for you.. DomainNameYahoo.info


ifconfig and other network syntax

Strange huh, why should I write about ifconfig syntax.
Yes, it is weird. But I guess, not all people know how to set up ip, gateway and dns manually.

ifconfig
Display current configuration for all NIC’s.
ifconfig eth0
Display current configuration for eth0.
ifconfig eth0 192.168.1.2
Assign IP address 192.168.1.2 to eth0.
ifconfig eth0:0 192.168.1.2
Assign multiple IP’s to eth0.
ifconfig eth0:1 192.168.1.3
Assign second IP […]

May 27th, 2009 Posted by admin | CentOS, General, Ubuntu | no comments