I installed Fedora Core 7 several months ago. At the time, it was setup to take a DHCP address. Now, I need to assign a static IP address to the machine.
This seemed easy, as there were many examples online. However, none of them seem to work on this particular machine. I need to do this on the command line, or using Webmin.
Here is my initial ifconfig output:
eth0 Link encap:Ethernet HWaddr 00:0D:56:27:C5:D4
inet addr:192.168.2.174 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::20d:56ff:fe27:c5d4/6
4 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:837 errors:0 dropped:0 overruns:0 frame:0
TX packets:113 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:66399 (64.8 KiB) TX bytes:24590 (24.0 KiB)
Base address:0xdf40 Memory:feae0000-feb00000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:11962 errors:0 dropped:0 overruns:0 frame:0
TX packets:11962 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:94217656 (89.8 MiB) TX bytes:94217656 (89.8 MiB)
Here are the things I tried.
1. On the command line: setup
1a. In the setup utility, I chose Network Configuration.
1b. DHCP: Unchecked
1c. Static IP: 192.168.1.150
1d. Netmask: 255.255.0.0
1e. Default Gateway IP: 192.168.0.2
2. I saved this.
3. Here is the output of /etc/sysconfig/network-scr
ipts/ifcfg
-eth0
PEERDNS=yes
HWADDR=00:0d:56:27:c5:d4
TYPE=Ethernet
IPV6INIT=no
DEVICE=eth0
MTU=1500
NETMASK=255.255.0.0
BROADCAST=192.168.255.255
IPADDR=192.168.1.150
NETWORK=192.168.0.0
USERCTL=no
ONBOOT=yes
GATEWAY=192.168.0.2
4. Next, I restarted networking: /etc/init.d/network restart
5. ifconfig has not changed.
6. Next, just to try, I restarted the Linux box with shutdown -r now
7. ifconfig has not changed. It still shows the old DHCP address for eth0.
8. Someone suggested that I modify /etc/sysconfig/network-scr
ipts/ifcfg
-eth0 manually, but, as you can see above, it looks correct.
9. Next, I tried system-config-network, which is the same network configuration found in setup. No luck.
So, what am I doing wrong, or what has not yet been done? Thanks.
Start Free Trial