Bug 561589

Summary: NetworkManager fails to set up wired alias device.
Product: [Fedora] Fedora Reporter: Björn Augustsson <oggust>
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dcbw
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-09 01:42:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Björn Augustsson 2010-02-04 00:51:52 UTC
Description of problem:

NetworkManager fails to set up a wired alias device.

Version-Release number of selected component (if applicable):

NetworkManager-0.7.997-2.git20091214.fc12.i686
But it also happens on 
NetworkManager-0.7.2-2.git20091223.fc11.i586
 (current F11)

How reproducible:

Totally.

Steps to Reproduce:
1. Use the files below
2. Reboot or service NetworkManager start
3. Check the interfaces
  
Actual results:

$ route -n
10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 eth0
$

Expected results:

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
my.isp.net.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0
10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 eth0
0.0.0.0         my.isp.net.1    0.0.0.0         UG    0      0        0 eth0
$

Additional info:

/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:10:18:0B:33:07
ONBOOT=yes
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
DEFROUTE=yes

/etc/sysconfig/network-scripts/ifcfg-eth0:1

DEVICE=eth0:1
BOOTPROTO=none
NETMASK=255.0.0.0
TYPE=Ethernet
IPADDR=10.0.0.1
ONPARENT=yes
IPV6INIT=no
USERCTL=no
PREFIX=8
DEFROUTE=no
NAME="System eth0:1"
UUID=7758ac79-c4a2-dd87-1760-71284a316d00
ONBOOT=yes


I fiddled with the 
NM_CONTROLLED (seems to have no effect) and
ONBOOT (seems wrong for an alias, but it keeps getting readded)
variables, but that didn't help.

This is a very simple network setup. Since my ISP, in their infinite wisdom,
likes to give me DHCP addresses in different networks(!), causing all 
traffic to go via them ,(Hello Cablecom! CaseID 1970915) I have the aliases
set up so I can sanely move stuff around internally.


Workaround is to 
chkconfig NetworkManager off
chkconfig network on

Comment 1 Dan Williams 2010-02-09 01:42:44 UTC
See bug 443968.  Note that you can include multiple IP addresses in one ifcfg file these days, so you really don't need device aliases at all any more.

*** This bug has been marked as a duplicate of bug 443968 ***