Hello Linux Gurus,
I have decided to teach myself to use Linux. I purchased the book “The Ubuntu Beginner’s Guide” and have started reading and working through the examples put forth in the text. I have just installed Ubuntu server 12.1. I have configured a static IP on that server. I did this using the following steps:
1. Open the interfaces file using the following command: sudo vi /etc/network/interfaces
2. I changed/added the following to the file (using vi):
Iface eth0 inet static
3. I saved the changes and quit vi.
4. At the command prompt I typed the following command to have the OS re-read the config file: sudo ifup eth0
5. After running the command above, I receive a message that states interface eth0 is already configured.
6. When I run ifconfig, I see the IP settings that were pulled from DHCP.
7. If I run the following command my changes to the interfaces file are reflected when I run ifconfig:
sudo /etc/init.d/networking restart
My question is why didn’t the sudo ifup eth0 force Linux to re-read the config file?
Thanks in advance for your help.