Question

adding ip address to same interface fedora 11

Asked by: howart

When I add a second ip address to an interface as suggested on the internet, so the ip address will be there right after boot time, I get the following with Fedora 11:
  see code

it shouldbe see code part II

I use the method suggested on
http://blog.taragana.com/index.php/archive/how-to-add-multiple-ip-addresses-on-linux-fedora-core-fedora/


 

eth0      Link encap:Ethernet  HWaddr 00:0A:5E:63:04:12  
          inet addr:192.168.1.12  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20a:5eff:fe63:412/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:704 errors:0 dropped:0 overruns:1 frame:0
          TX packets:119 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:71463 (69.7 KiB)  TX bytes:15320 (14.9 KiB)
          Interrupt:16 Base address:0x4f80 
 
eth1      Link encap:Ethernet  HWaddr 00:21:70:2E:CC:5F  
          inet addr:192.168.1.12  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::221:70ff:fe2e:cc5f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:385 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:45749 (44.6 KiB)  TX bytes:5525 (5.3 KiB)
          Memory:fe9e0000-fea00000 
 
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:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1280 (1.2 KiB)  TX bytes:1280 (1.2 KiB)
 
 
it should be:
 
eth0      Link encap:Ethernet  HWaddr 00:0A:5E:63:04:12  
          inet addr:192.168.1.18  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20a:5eff:fe63:412/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6383 errors:0 dropped:0 overruns:1 frame:0
          TX packets:553 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:660083 (644.6 KiB)  TX bytes:72387 (70.6 KiB)
          Interrupt:16 Base address:0x4f80 
 
eth0:0    Link encap:Ethernet  HWaddr 00:0A:5E:63:04:12  
          inet addr:192.168.1.12  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 Base address:0x4f80 
 
eth1      Link encap:Ethernet  HWaddr 00:21:70:2E:CC:5F  
          inet addr:192.168.1.19  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::221:70ff:fe2e:cc5f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4512 errors:0 dropped:0 overruns:0 frame:0
          TX packets:526 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:536479 (523.9 KiB)  TX bytes:70212 (68.5 KiB)
          Memory:fe9e0000-fea00000 
 
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:26 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2108 (2.0 KiB)  TX bytes:2108 (2.0 KiB)

                                  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:

Select allOpen in new window

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-10-29 at 06:04:13ID24854398
Tags

linux fedora 11 network

Topics

Fedora Linux

,

Red Hat Linux

,

Linux Networking

Participating Experts
2
Points
500
Comments
14

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Installing IPv6 on Fedora core 1
    hello experts, I made an account with this website hexago.com. then I installed this tool hexago.com/index.php?pgID=27 on my fedora core 1 server then I edited the .conf and then executed, but how do I get the ipv6s I mean like ipv4 I see the ips that I have by doing ifconfi...
  2. bind fedora core
    ive got fedora core 3 with bind installed its never been an issue and works still now perfectly. i recently transferred a domain to my company, and let the old nameservers intact with my current registar until i was ready to move it to my nameservers. I added the domain int...
  3. Find IP address on Fedora Core 4
    I'm trying how to find out the IP address on a Fedora Core 4 System. I have tried ipconfig ifconfig inetcfg inetconfig Can someone help me find the IP through terminal? Thanks, Patrick
  4. Fedora Core 5 bug
    Hi, I have a dedicated server hosting with: - Linux Fedora Core 5 - apache 1.3 - php 5.0 the site on the server in the rush hours every day the performance of the http service is increased till the site is down I do not know what is wrong and what to do I talked to the host...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: howartPosted on 2009-10-29 at 06:05:27ID: 25693143

What goes wrong?

How can I make the system boot to the desired situation?

 

by: mwecomputersPosted on 2009-10-29 at 06:21:59ID: 25693310

Post a copy of both your '/etc/sysconfig/network-scripts/ifcfg-eth0' & '/etc/sysconfig/network-scripts/ifcfg-eth0:0' files.

 

by: howartPosted on 2009-10-29 at 06:37:44ID: 25693481

# Networking Interface
DEVICE=eth0
HWADDR=00:0A:5E:63:04:12
IPADDR=192.168.1.18
BOOTPROTO=none
NETMASK=255.255.255.0
TYPE=Ethernet
#GATEWAY=192.168.1.240
NM_CONTROLLED=yes
IPV6INIT=no
ONBOOT=yes
USERCTL=no
PREFIX=24
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
DNS2=192.168.1.15
DNS1=192.168.1.9
#GATEWAY=192.168.1.240



and:

# Networking Interface
DEVICE=eth0:0
IPADDR=192.168.1.12
BOOTPROTO=static
NETMASK=255.255.255.0
ONBOOT=yes
NAME="System eth0:0"


 

by: mwecomputersPosted on 2009-10-29 at 07:08:01ID: 25693792

DNS Servers (192.168.1.15, 192.168.1.9) should be found in the /etc/resolv.conf file, thus not hard coded into the network configuration.

NetworkManager (NM_CONTROLLED) interfaces can cause havoc on ethernet aliased addresses.

The if-eth0 and if-eth0:0 files should look like this:

# File: ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
NM_CONTROLLED=no
HWADDR=00:0A:5E:63:04:12
IPADDR=192.168.1.18
NETMASK=255.255.255.0
BROADCAST=192.168.0.255
NETWORK=192.168.0.0
GATEWAY=192.168.1.240
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
NAME="System eth0"
 
# File: ifcfg-eth0:0
DEVICE=eth0:0
ONBOOT=yes
BOOTPROTO=static
NM_CONTROLLED=no
IPADDR=192.168.1.12
NETMASK=255.255.255.0
NAME="System eth0:0"
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:

Select allOpen in new window

 

by: howartPosted on 2009-10-29 at 07:38:59ID: 25694142

i don't see were ifcfg-eth0:0 is set in /etc/init.d/network

How will eth0:0 get booted?


interfaces=$(ls ifcfg* | \
            LANG=C sed -e "$__sed_discard_ignored_files" \
                       -e '/\(ifcfg-lo\|:\|ifcfg-.*-range\)/d' \
                       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
            LANG=C sort -k 1,1 -k 2n | \
            LANG=C sed 's/ //')
 
 
# ifcfg-eth0:0 will not be in this list
# How will ethx:x intface be booted?
 
 
for i in $interfaces; do
                unset DEVICE TYPE SLAVE
                eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
                eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
                eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)
 
                if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi
 
                if [ "${DEVICE##cipcb}" != "$DEVICE" ] ; then
                        vpninterfaces="$vpninterfaces $i"
                        continue
                fi
                if [ "$TYPE" = "xDSL" ]; then
                        xdslinterfaces="$xdslinterfaces $i"
                        continue
                fi
 
                if [ "$TYPE" = "Bridge" ]; then
                        bridgeinterfaces="$bridgeinterfaces $i"
                        continue
                fi
                if [ "$TYPE" = "IPSEC" ]; then
                        vpninterfaces="$vpninterfaces $i"
                        continue
                fi
 
                if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
                        vlaninterfaces="$vlaninterfaces $i"
                        continue
                fi
 
                if [ "$SLAVE" = "yes" ]; then
                        continue
                fi
 
                if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
                        # this loads the module, to preserve ordering
                        is_available $i
                        continue
                fi
                # If we're in confirmation mode, get user confirmation.
                if [ -f /var/run/confirm ]; then
                        confirm $i
                        test $? = 1 && continue
                fi
                action $"Bringing up interface $i: " ./ifup $i boot
                rc=$((rc+$?))
        done
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:

Select allOpen in new window

 

by: howartPosted on 2009-10-29 at 08:29:27ID: 25694784

Ok I have disabled NM_CONTROLLED
When I do a restart of the network with service network restart

I get:
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists


 

by: mwecomputersPosted on 2009-10-29 at 09:26:00ID: 25695354

The network script will list each ifcfg-* file from the interfaces, and try to start each one.

---

For the 'RTNETLINK answers: File exists' message, try this from the command line:

ifdown eth0:0; ifdown eth0; ifup eth0

 

by: mwecomputersPosted on 2009-10-29 at 09:39:41ID: 25695514

I just noticed something else as well -- post the output for '/etc/sysconfig/network-scripts/ifcfg-eth1' as well.

 

by: howartPosted on 2009-10-30 at 01:26:11ID: 25700929

I don't know how it works with nm-controlled but as soon as I set this to no in the config file
a popup shows up from the panel that the neetwork is disconnect
.
So there must be a deamon which monitors the network settings.

Do you know which deamon this is?

 

by: howartPosted on 2009-10-30 at 01:28:28ID: 25700938

Comment to the network start-up script:

With
interfaces=$(ls ifcfg* | \
           LANG=C sed -e "$__sed_discard_ignored_files" \
                      -e '/\(ifcfg-lo\|:\|ifcfg-.*-range\)/d' \
                      -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
           LANG=C sort -k 1,1 -k 2n | \
           LANG=C sed 's/ //')

ifcfg-lo and ifcfg-ethx:x are excluded from the filter list and not started.

In Fedora 11 things seem to be different then that we were used to with Linux.


 

by: mwecomputersPosted on 2009-10-30 at 07:16:03ID: 25703137

NM_CONTROLLED is handled by the NetworkManager.

Having it set to 'NM_CONTROLLED=no' disallows the NetworkManager from handling these interfaces.

I recommend disabling the NetworkManager completely:
  - chkconfig NetworkManager off
  - /etc/init.d/NetworkManager stop

---

Through some quick trial and error, I utilized the 'system-config-network' command and then used the GUI interface to setup the Ethernet/IP alias. Once it creates the IP alias, you then active it and then save it. It will most likely prompt you to restart the network services -- '/etc/init.d/network restart'

 

by: it4sohoPosted on 2009-10-30 at 07:24:10ID: 25703221

Correction:
 They are not started at the same time and in the same location as "standard" eth devices (and with good reason - the hardware interface does NOT need to be initialized & drivers do NOT need to be loaded).

I suggest you test your theory that your ifcfg-eth0:0 is correct and that it's just not running at boot-time:
 - After a fresh boot, check your ifconfig -a output to see if device eth0:0 is there.
 - Assuming not, run the command "ifup eth0:0" and re-check.
 - If the "ifup" command did NOT create & configure eth0:0 then you KNOW that your file has an error (perhaps a permissions problem, or a spelling issue -- either way, you'll know it's in that file.
 - If the command DOES create the interface, rather than attempting to fix the system startup files for RedHat, just add the ifup command to your /etc/rc.d/rc.local file -- it's the REASON for the local file to begin with  (To make local modifications not "covered" by the system startup scripts), and will run at the end of your system startup via the S99local entry in /etc/rc?.d

Good Luck!

Dan
IT4SOHO

 

by: it4sohoPosted on 2009-10-30 at 07:57:23ID: 25703591

OH... and an explanation of what happens when you disable network management and when you restart the network you get a "file exists" error:
 - When you reconfigure the network without the network management and perform the "stop" part of a restart, it doesn't think network management needs to be stopped because it is not configured! Thus, when you attempt to restart, since it didn't stop correctly, it won't start correctly.

Try stopping the network services, editing the configuration files to remove network management, then restarting the network services (or, reconfigure & reboot instead of just restarting the network).

Just my thoughts...

Dan
IT4SOHO

 

by: howartPosted on 2009-11-03 at 07:26:50ID: 31647478

I stopped with the multiple ip addresses on one interface.
I gave it the one we need for smtp traffic.

But thanks for your support.
Networkmanaged

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...