LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-26-2009, 08:22 AM   #1
vuhuynh
LQ Newbie
 
Registered: Feb 2008
Posts: 14

Rep: Reputation: 0
Angry Fedora Core 11 - Problem with binding multiple IP addresses on same NIC


Hello,

I'm having an issue with binding multiple IPs to eth0. Here are the ifcfg-eth0 and ifcfg-eth0:1 contents.

===============================
# Networking Interface
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.1.255
HWADDR=00:C0:9F:3E:2C:C1
IPADDR=192.168.1.7
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
TYPE=Ethernet
GATEWAY=192.168.1.1
NM_CONTROLLED=yes
IPV6INIT=no
USERCTL=no
DNS2=192.168.1.100
DNS1=192.168.1.10
PREFIX=24
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03

===============================
GATEWAY=192.168.1.1
DNS1=192.168.1.10
DEVICE=eth0:1
BOOTPROTO=none
NETMASK=255.255.255.0
DNS2=192.168.1.100
TYPE=Ethernet
IPADDR=192.168.1.6
IPV6INIT=no
USERCTL=no
ONPARENT=yes
NM_CONTROLLED=yes
===============================

Whenever the system restarts or if I do "service network restart", only the latter IP 192.168.1.6 bind to the NIC and this is the error message I get:

SIOCGIFADDR: Cannot assign requested address
SIOCSIFBROADCAST: Cannot assign requested address
SIOCSIFBRDADDR: Cannot assign requested address
SIOCSIFFLAGS: Cannot assign requested address

What did I do wrong? This same approach that I use works fine in Fedora Core 10.

Thanks in advance.

Regards,
 
Old 08-26-2009, 02:00 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Perhaps check /var/log/messages and /var/log/audit/audit.log to see if selinux is inhibiting /sbin/ifconfig.
 
Old 08-26-2009, 02:35 PM   #3
vuhuynh
LQ Newbie
 
Registered: Feb 2008
Posts: 14

Original Poster
Rep: Reputation: 0
Log file

This is what the log /var/log/messages shows

ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth0:1 ...
Aug 26 10:54:10 nm-system-settings: ifcfg-rh: error: Missing or invalid IP4 prefix '0'
 
Old 08-26-2009, 02:51 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Not sure if this is what is causing the problem, but you may need to start with alias eth0:0 (not eth0:1).
 
Old 10-26-2009, 01:37 AM   #5
cavediver
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Resolution

The problem you are having is caused by NetworkManager.

If you disable NetworkManager you will no longer have the problem.

I have the same problem in Fedora 10 as well.

Good luck.
 
  


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
Binding multiple IP Addresses to same NIC Harlin Linux - Networking 4 10-26-2005 06:10 AM
multiple ip addresses on 1 nic? houler Linux - Networking 4 04-26-2005 04:53 PM
binding multiple IPs to single NIC? lok1 Linux - Networking 2 11-16-2003 03:58 PM
Binding multiple IP addresses to a nic card Natalie Linux - Networking 9 08-12-2003 09:27 PM
Multiple IP addresses on one NIC hrr Linux - Networking 2 03-07-2003 01:04 PM


All times are GMT -5. The time now is 07:13 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration