Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]net.br0 depending on net.eth1+net.tap0 (init order)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
LaMagra
n00b
n00b


Joined: 20 Nov 2004
Posts: 21

PostPosted: Fri Aug 12, 2005 2:41 am    Post subject: [solved]net.br0 depending on net.eth1+net.tap0 (init order) Reply with quote

I've a little problem with my network configuration. Here is my /etc/conf.d/net:

Code:
depend_br0() {
need net.eth0 net.eth1 net.tap0
}

config_eth0=( "172.23.143.2/16 brd 172.23.255.255"
              "172.23.143.3/16"
              "172.23.143.4/16"
              "172.23.143.5/16"
              "172.23.143.51/16" )
routes_eth0=( "default gw 172.23.1.1" )

config_eth1=( "null" )

config_tap0=( "0.0.0.0 promisc" )

config_br0=( "192.168.178.101/24" )
bridge_br0="eth1 tap0"


As you can see I've tried to tell the init scripts that br0 NEEDS the other network devices. But everytime I boot my little box up, the br0 interface starts up first (alphabetical order).
I've tried the depend_br0() thing in this doc Link at 2.b. Network Dependencies, as you can see in my /etc/conf.d/net. But it didn't work.
I've also tried to put the depend part at the top or the bottom part of my config...

Is this a bug or a feature? :D
Please help me


Last edited by LaMagra on Fri Aug 12, 2005 4:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Aug 12, 2005 9:06 am    Post subject: Reply with quote

Please test with baselayout-1.12.0_pre5 as there's a nasty ordering bug in the 1.11 series
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
LaMagra
n00b
n00b


Joined: 20 Nov 2004
Posts: 21

PostPosted: Fri Aug 12, 2005 2:37 pm    Post subject: Reply with quote

The init order with baselayout-1.12.0_pre5 seems to be ok now. Thanks for the help.
But there seems to be a problem with baselayout-1.12.0_pre5 and the tun/tap interfaces.

At boot it says

Code:
Starting tap0
Creating Tun/Tap interfaces tap0
/lib/rcscripts/net.modules.d/tuntap: line 91: ${devnull}: ambiguous redirect
ERROR: Problem starting needed services.
"net.br0" was not started.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Aug 12, 2005 2:48 pm    Post subject: Reply with quote

LaMagra wrote:

At boot it says

Code:
Starting tap0
Creating Tun/Tap interfaces tap0
/lib/rcscripts/net.modules.d/tuntap: line 91: ${devnull}: ambiguous redirect
ERROR: Problem starting needed services.
"net.br0" was not started.


Remove the &>${devnull} from the end of line 91 of /lib/rcscripts/net.modules.d/tuntap and that should fix it.
It will be fixed in the next version - thanks
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
LaMagra
n00b
n00b


Joined: 20 Nov 2004
Posts: 21

PostPosted: Fri Aug 12, 2005 4:01 pm    Post subject: Reply with quote

UberLord wrote:
Remove the &>${devnull} from the end of line 91 of /lib/rcscripts/net.modules.d/tuntap and that should fix it.
It will be fixed in the next version - thanks


I have removed &>${devnull} from line 91 and now it works.
Thanks for the help.
Back to top
View user's profile Send private message
LaMagra
n00b
n00b


Joined: 20 Nov 2004
Posts: 21

PostPosted: Fri Aug 12, 2005 8:41 pm    Post subject: Reply with quote

Another question... is it normal that the aliases of eth0 are not shown in the output of ifconfig?
I can still ping the alias adresses but I remember something like eth0:1 or eth0_1. I'm sure you know what I mean.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Aug 12, 2005 9:40 pm    Post subject: Reply with quote

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=2

eth0:1 is a hangover from ifconfig as it could only assign one address to one interface - hence aliases
iproute2 has no such limitation and is the default in 1.12

This makes more sense, as the kernel makes no distinction between eth0:1 and eth0:2 - which helps people making iptables rules, etc.

Code:
ip addr show


Use that command to see your aliases now :)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum