Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 147348

Summary: aliases are ignored in /etc/conf.d/net
Product: Gentoo Linux Reporter: kusi <kusi>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: major    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description kusi 2006-09-12 11:20:20 UTC
This is my  /etc/conf.d/net

  modules=( "dhcpcd" ) 
  config_eth0=(
	"192.168.0.3"
	"dhcp"
  )

when I restart net.eth0, I get

 * Starting eth0
 *   Bringing up eth0
 *     192.168.0.3                                     [ ok ]
 *     dhcp
 *       Running dhcpcd ...                            [ ok ]
 *       eth0 received address 34.73.156.189/22        [ ok ]

however, ifconfig shows that only the address from dhcp is set up, but not the alias 192.168.0.3. The same also happens if I change the order dhcp first and then the alias.

I have sys-apps/baselayout-1.12.4-r7
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-09-12 15:51:56 UTC
order should be ( "dhcp", "192.168.0.3")
(Note you're missing the netmask - maybe /24?)

If you have iproute2 installed, check for extra addresses with
ip a

Aliases are not used with iproute2 - this is not a bug.
Reopen if you disagree
Comment 2 kusi 2006-11-06 11:21:45 UTC
indeed I have iproute2 installed. I only checked with ifconfig. And I need the netmask /24, it's not working without it. It's working now