Gentoo Archives: gentoo-dev

From: Ed W <lists@××××××××××.com>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] OpenRC + Bridge + Tap not working as expected?
Date: Thu, 19 Feb 2009 19:22:14
Message-Id: 499DB0F5.1090806@wildgooses.com
1 Hi, I am using openrc 0.4.2 and trying to setup a bridge for use with
2 openvpn. Starting the bridge (/etc/init.d/br0 start) doesn't seem to be
3 correctly bringing up the dependent interfaces (should it?)
4
5 When I try and bring up my bridge I get only this:
6
7 # /etc/init.d/br0 start
8 * Bringing up interface br0
9 * Destroying bridge br0...
10 * Removing port eth0... [ ok ]
11 [ ok ]
12 * Creating bridge br0...
13 * Adding ports to br0
14 * eth0... [ ok ]
15 * tap0...SIOCGIFFLAGS: No such device
16 SIOCGIFFLAGS: No such device
17 interface tap0 does not exist!
18 SIOCGIFFLAGS: No such device
19 [ !! ]
20 * ERROR: net.br0 failed to start
21
22 then I check:
23
24 #ifconfig
25 eth0 Link encap:Ethernet HWaddr 00:1b:21:19:09:8d
26 inet6 addr: fe80::21b:21ff:fe19:98d/64 Scope:Link
27 UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
28 RX packets:9717 errors:4 dropped:0 overruns:0 frame:2
29 TX packets:5923 errors:0 dropped:0 overruns:0 carrier:0
30 collisions:0 txqueuelen:1000
31 RX bytes:1326386 (1.2 MiB) TX bytes:1079556 (1.0 MiB)
32 Base address:0xa000 Memory:e9020000-e9040000
33
34 lo Link encap:Local Loopback
35 inet addr:127.0.0.1 Mask:255.0.0.0
36 inet6 addr: ::1/128 Scope:Host
37 UP LOOPBACK RUNNING MTU:16436 Metric:1
38 RX packets:4243 errors:0 dropped:0 overruns:0 frame:0
39 TX packets:4243 errors:0 dropped:0 overruns:0 carrier:0
40 collisions:0 txqueuelen:0
41 RX bytes:570436 (557.0 KiB) TX bytes:570436 (557.0 KiB)
42
43 (Curious eth0 is up... Lets try and stop it)
44 #/etc/init.d/net.eth0 stop
45
46 * WARNING: net.eth0 is already stopped
47
48
49 If I simply start the tap0 and eth0 interfaces deliberately first then
50 everything runs fine. My understanding though is that the bridge should
51 bring up dependent interfaces?
52
53 Config in /etc/conf.d/net
54
55 config_eth0=( "null" )
56 tuntap_tap0="tap"
57 config_tap0=( "0.0.0.0 promisc" )
58 bridge_br0="eth0 tap0"
59 config_br0=( "192.168.105.4/24" )
60 routes_br0=( "default via 192.168.105.254" )
61 # Make the bridge depend on tap0 / eth0
62 RC_NEED_br0="net.eth0 net.tap0"
63
64
65 Any suggestions on how to fix?
66
67 Thanks
68
69 Ed W

Replies

Subject Author
Re: [gentoo-dev] OpenRC + Bridge + Tap not working as expected? Josh Saddler <nightmorph@g.o>