how to setup static ip address via terminal
I imagine that there is already a thread for setting up a static IP, but I haven't been able to find it yet, so here we go.
I have recently installed Fedora 15 on my home machine. I have a very simple home network. Belkin wireless router with Window and Linux systems. The router is setup to be DHCP server. Router is setup to have lease time = Forever. Even with this setup, my router is assigning different IP address for my linux machine every time I boot the machine. So I would like to setup a static IP on my Linux.
From my research so far, I'm suppose to make some changes to the file /etc/sysconfig/network-scripts/ifcfg-eth0. But I don't have this file in this folder. Should I just create this file? If yes, what goes in this file?
Thanks for your help
|