assign static IP to the server
I want to assign static IP to the server, I think I can change it in
/ect/hosts file. So what is the differences between the step above and adding IP by using netconfig command??? |
When you use the netconfig command you are not editing /etc/hosts. Instead you are editing /etc/sysconfig/network-scripts/ifcfg-ethX (where X is the interface number).
If you want to setup an interface by editing this file and not using netconfig this is what it should look like: Code:
DEVICE=eth0 |
Re: assign static IP to the server
Quote:
/etc/hosts is NOT the place to change the machines IP number, it's the place where you tell your machine about loop-back and about OTHER machines. In Slack look at /etc/rc.d/rc.inet1.conf Cheers, Tink |
All times are GMT -5. The time now is 01:27 AM. |