LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-02-2009, 10:55 AM   #1
chrislski
LQ Newbie
 
Registered: Jul 2007
Posts: 14

Rep: Reputation: 0
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.
 
Old 12-02-2009, 02:05 PM   #2
chrislski
LQ Newbie
 
Registered: Jul 2007
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
Old 12-03-2009, 10:39 AM   #3
chrislski
LQ Newbie
 
Registered: Jul 2007
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple IPs On One NIC? dirtmaster88 Slackware 14 09-21-2007 12:56 PM
Multiple IPs on one NIC - How to use them all? MG-Cloud Linux - Networking 4 10-03-2005 02:28 AM
multiple IPs, one NIC, different networks branden_burger Linux - Networking 3 03-15-2005 07:24 AM
multiple IPs, one nic v4lu3s Linux - Networking 4 02-07-2004 10:52 AM
Adding multiple static IPs to one NIC digihlp Linux - Networking 2 06-26-2003 07:13 PM


All times are GMT -5. The time now is 08:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration