Gentoo Archives: gentoo-admin

From: Steve Wray <steve@××××××××××.nz>
To: gentoo-admin@l.g.o
Subject: [gentoo-admin] problem with bridging & xen
Date: Fri, 23 Sep 2005 21:20:12
Message-Id: 4334715B.5080309@myself.gen.nz
1 Hi there,
2 the /etc/conf.d/net.example appears to contain some hints on setting up
3 bridging but it doesn't seem to work.
4
5 Yes, I have bridge-utils installed
6 Yes, I have bridging compiled into the kernel (not a module)
7
8 Two things;
9
10 When I set up for a bridge called 'br0' and symlink /etc/init.d/net.lo
11 to net.br0 and then /etc/init.d/net.br0 it works fine:
12
13 Like this:
14 bridge_br0="eth0"
15 config_eth0=( "null" )
16 config_br0=( "192.168.1.5/24" )
17 brctl_br0=( "setfd 0" "sethello 0" "stp off" )
18
19 When I set up for the xen bridge called 'xen-br0' it throws what appears
20 to be some sort of syntax error (I think its the '-' in the network
21 interface name in the /etc/conf.d/net file that it can't parse).
22
23 Like this:
24 bridge_xen-br0="eth0"
25 config_eth0=( "null" )
26 config_xen-br0=( "192.168.1.5/24" )
27 brctl_xen-br0=( "setfd 0" "sethello 0" "stp off" )
28
29 /etc/conf.d/net: line 11: bridge_xen-br0=eth0: command not found
30 /etc/conf.d/net: line 13: syntax error near unexpected token
31 `"192.168.1.5/24"'
32 /etc/conf.d/net: line 13: `config_xen-br0=( "192.168.1.5/24" )'
33 * Starting xen-br0
34 * WARNING: You are forcing modules!
35 * Do not complain or file bugs if things start breaking
36 * /lib/rcscripts/net.modules.d/br0[@] does not exist
37
38
39 I am guessing that this is a python syntax thing, if so I am worried
40 that there is no work-around or way to quote the variable name so as to
41 be acceptable? Which would leave me configuring the xen bridge in some
42 local init script?
43
44
45 --
46 gentoo-admin@g.o mailing list