Multiple IPs one NIC configuration doesn't load at boot on Fedora 12
I have a Fedora 12 system that I am trying to configure with 3 IP addresses on one NIC card. I created scripts for each of the connections I want in /etc/sysconfig/network-scripts/ and they are called ifcfg-eth0, ifcfg-eth0:1, ifcfg-eth0:2. If I run /sbin/services network restart it configures everything as I would like. When I restart the computer the only device configured is eth0 and it is set to DHCP. If I run the script again everything works. What am I missing to make this change persistent?
Thank you. |
It looks like the device configurations are being read. I also noticed the IP address that is being assigned to eth0 is the IP address I have configured in ifcfg-eth0:1.
Below is all the output from the /var/log/messages file that looks relevant. Dec 2 14:47:19 localhost NetworkManager: <info> starting... Dec 2 14:47:19 localhost NetworkManager: <info> Trying to start the modem-manager... Dec 2 14:47:19 localhost NetworkManager: Loaded plugin ifcfg-rh: (c) 2007 - 2008 Red Hat, Inc. To report bugs please use the NetworkManager mailing list. Dec 2 14:47:19 localhost NetworkManager: <info> Wireless now enabled by radio killswitch Dec 2 14:47:19 localhost rpc.statd[1122]: Version 1.2.1 Starting Dec 2 14:47:20 localhost NetworkManager: ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth0 ... Dec 2 14:47:20 localhost NetworkManager: ifcfg-rh: read connection 'eth0' Dec 2 14:47:20 localhost NetworkManager: ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth0:2 ... Dec 2 14:47:20 localhost NetworkManager: ifcfg-rh: read connection 'eth0:2' Dec 2 14:47:20 localhost NetworkManager: ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-lo ... Dec 2 14:47:20 localhost NetworkManager: ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth0:1 ... Dec 2 14:47:20 localhost NetworkManager: ifcfg-rh: read connection 'eth0:1' Dec 2 14:47:20 localhost NetworkManager: <info> (eth0): carrier is OFF Dec 2 14:47:20 localhost NetworkManager: <info> (eth0): new Ethernet device (driver: 'pcnet32') Dec 2 14:47:20 localhost NetworkManager: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/0 Dec 2 14:47:20 localhost NetworkManager: <info> (eth0): now managed Dec 2 14:47:20 localhost NetworkManager: <info> (eth0): device state change: 1 -> 2 (reason 2) Dec 2 14:47:20 localhost NetworkManager: <info> (eth0): bringing up device. Dec 2 14:47:20 localhost kernel: eth0: link up Dec 2 14:47:20 localhost NetworkManager: <info> (eth0): preparing device. Dec 2 14:47:20 localhost NetworkManager: <info> (eth0): deactivating device (reason: 2). Dec 2 14:47:20 localhost NetworkManager: <info> (eth0): carrier now ON (device state 2) Dec 2 14:47:20 localhost NetworkManager: <info> (eth0): device state change: 2 -> 3 (reason 40) Dec 2 14:47:20 localhost NetworkManager: <info> modem-manager is now available Dec 2 14:47:20 localhost NetworkManager: <WARN> default_adapter_cb(): bluez error getting default adapter: The name org.bluez was not provided by any .service files Dec 2 14:47:20 localhost NetworkManager: <info> Trying to start the supplicant... Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) starting connection 'eth0:1' Dec 2 14:47:20 localhost NetworkManager: <info> (eth0): device state change: 3 -> 4 (reason 0) Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled... Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) started... Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) scheduled... Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) complete. Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) starting... Dec 2 14:47:20 localhost NetworkManager: <info> (eth0): device state change: 4 -> 5 (reason 0) Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) successful. Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled. Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 2 of 5 (Device Configure) complete. Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) started... Dec 2 14:47:20 localhost NetworkManager: <info> (eth0): device state change: 5 -> 7 (reason 0) Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 4 of 5 (IP4 Configure Get) scheduled... Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 4 of 5 (IP6 Configure Get) scheduled... Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) complete. Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 4 of 5 (IP4 Configure Get) started... Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 4 of 5 (IP4 Configure Get) complete. Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 4 of 5 (IP6 Configure Get) started... Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 5 of 5 (IP Configure Commit) scheduled... Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 4 of 5 (IP6 Configure Get) complete. Dec 2 14:47:20 localhost NetworkManager: <info> Activation (eth0) Stage 5 of 5 (IP Configure Commit) started... Dec 2 14:47:21 localhost NetworkManager: <info> (eth0): device state change: 7 -> 8 (reason 0) Dec 2 14:47:22 localhost NetworkManager: <info> Policy set 'eth0:1' (eth0) as default for routing and DNS. Dec 2 14:47:22 localhost NetworkManager: <info> Activation (eth0) successful, device activated. Dec 2 14:47:22 localhost NetworkManager: <info> Activation (eth0) Stage 5 of 5 (IP Configure Commit) complete. |
I finally fixed the problem. It turns out the devices were being configured but then the Gnome NetworkManager was deactivating two of the devices. I followed these steps to disable it and enable the network service.
|
All times are GMT -5. The time now is 04:05 PM. |