Re: [gentoo-user] Configure two bridges in /etc/conf.d/net

2005-10-17 Thread Denny Schierz
On Mo, 2005-10-17 at 13:00 +0200, Denny Schierz wrote:

 i need two bridges, but i don't understand, how to configure it
 in /etc/conf.d/net:

[...]

 What is wrong?

saw a small typo in xenintetbr and xenintbr, but nothing changed. It
does not work.

-- 
Sicherheit verständlich http://www.sides.de
GnuPG Key http://pgp.upb.de:11371/pks/lookup?op=getsearch=0xAB7D3FE0



signature.asc
Description: This is a digitally signed message part


Re: [gentoo-user] Configure two bridges in /etc/conf.d/net

2005-10-17 Thread Jonathan Wright
Denny Schierz wrote:
 bridge=xenintbr
 config_xeninetbr=( 10.0.10.3/24 )
 brctl_xeninetbr=( setfd 0 sethello 0 stp off )
 
 What is wrong?

I've not setup a bridge before, but according the example in
/etc/conf.d/net.example;

# To add ports to bridge br0
#bridge_br0=eth0 eth1

#config_br0=( dhcp )
(and so on...)


From the looks of it, you haven't told the system which two network
ports need to be bridged together. Also, do you have
net-misc/bridge-utils installed?

-- 
 Jonathan Wright   ~ mail at djnauk.co.uk
   ~ www.djnauk.co.uk
--
 2.6.13-gentoo-r3-djnauk-b1 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz
 up 1 day, 10:34,  2 users,  load average: 0.31, 0.15, 0.05
--
 The next  time  someone  asks  you,  'Hey,  howdja  get  to  be  a
 homosexual anyway?' tell them, 'Homosexuals  are  chosen  first  on
 talent, then  interview...  then  the  swimsuit  and  evening  gown
 competition pretty much gets rid of the rest of them.'

~ Karen Williams
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Configure two bridges in /etc/conf.d/net

2005-10-17 Thread Denny Schierz
hi,

On Mo, 2005-10-17 at 12:21 +0100, Jonathan Wright wrote:

 From the looks of it, you haven't told the system which two network
 ports need to be bridged together. Also, do you have
 net-misc/bridge-utils installed?

no, i haven't cause these are only virtual devices for xen. They don't
have to do any with eth0/1.

I can do everything per hand, but not with the start/stop script.

cu denny


-- 
Sicherheit verständlich http://www.sides.de
GnuPG Key http://pgp.upb.de:11371/pks/lookup?op=getsearch=0xAB7D3FE0



signature.asc
Description: This is a digitally signed message part


Re: [gentoo-user] Configure two bridges in /etc/conf.d/net

2005-10-17 Thread Jonathan Wright
Denny Schierz wrote:
From the looks of it, you haven't told the system which two network
ports need to be bridged together. Also, do you have
net-misc/bridge-utils installed?
 
 no, i haven't cause these are only virtual devices for xen. They don't
 have to do any with eth0/1.
 
 I can do everything per hand, but not with the start/stop script.

So the bridges already exist on the system and they just needs
configuring, or are you trying to create the bridges aswell from scratch?

-- 
 Jonathan Wright   ~ mail at djnauk.co.uk
   ~ www.djnauk.co.uk
--
 2.6.13-gentoo-r3-djnauk-b1 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz
 up 2 days,  1:48,  0 users,  load average: 0.34, 0.27, 0.19
--
 President Bush said  he  was  'troubled'  by  gay  people  getting
 married in San Francisco. He said on important issues like this the
 people should make the decision, not judges. Unless of course we're
 choosing a president, then he prefers judges.

  ~ Jay Leno
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Configure two bridges in /etc/conf.d/net

2005-10-17 Thread Denny Schierz
hi,

On Mo, 2005-10-17 at 13:00 +0100, Jonathan Wright wrote:

 or are you trying to create the bridges aswell from scratch?

jupp, creating from scratch. the bridges don't exist, at startup.


-- 
Sicherheit verständlich http://www.sides.de
GnuPG Key http://pgp.upb.de:11371/pks/lookup?op=getsearch=0xAB7D3FE0



signature.asc
Description: This is a digitally signed message part


Re: [gentoo-user] Configure two bridges in /etc/conf.d/net

2005-10-17 Thread Jonathan Wright
Denny Schierz wrote:
or are you trying to create the bridges aswell from scratch?
 
 jupp, creating from scratch. the bridges don't exist, at startup.

From the sounds of it, that's ur problem. The script doesn't know it
needs to create the bridges and assumes they're there ready.

As you have a set of virtual ports to connect using the bridges, why
don't you use a little hack and create a depend() function to insert the
code needed to create the interfaces for the bridge:

# If any of the ports require extra configuration - for example wireless
# or ppp devices - we need to write a depend function for the bridge so
# they get configured correctly.
# This is exactly the same as a depend() function in our init scripts
#depend_br0() {
#   need net.eth0 net.eth1
#}

Rather than having 'need net.eth0 net.eth1', stick in the code/functions
that create the interfaces. You can create the bridge then and it should
work on reboot.

-- 
 Jonathan Wright   ~ mail at djnauk.co.uk
   ~ www.djnauk.co.uk
--
 2.6.13-gentoo-r3-djnauk-b1 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz
 up 2 days,  2:06,  0 users,  load average: 0.75, 0.36, 0.22
--
 The radical right is so homophobic  that  they're  blaming  global
 warming on the AIDS quilt.

 ~ Dennis Miller
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Configure two bridges in /etc/conf.d/net

2005-10-17 Thread Denny Schierz
hi,

On Mo, 2005-10-17 at 13:19 +0100, Jonathan Wright wrote:

 Rather than having 'need net.eth0 net.eth1', stick in the code/functions
 that create the interfaces. You can create the bridge then and it should
 work on reboot.

It works, i made a simply script, that creates the devices, before net
starts. :-)

thanks


-- 
Sicherheit verständlich http://www.sides.de
GnuPG Key http://pgp.upb.de:11371/pks/lookup?op=getsearch=0xAB7D3FE0



signature.asc
Description: This is a digitally signed message part


Re: [gentoo-user] Configure two bridges in /etc/conf.d/net

2005-10-17 Thread Jonathan Wright

Denny Schierz wrote:

Rather than having 'need net.eth0 net.eth1', stick in the code/functions
that create the interfaces. You can create the bridge then and it should
work on reboot.


It works, i made a simply script, that creates the devices, before net
starts. :-)


np.

--
 Jonathan Wright   ~ mail at djnauk.co.uk
   ~ www.djnauk.co.uk
--
 2.6.13-gentoo-r3-djnauk-b2 AMD Athlon(tm) XP 2100+
 up 2 days,  4:04,  0 users,  load average: 0.67, 0.43, 0.38
--
 War. Rape. Murder. Poverty. Equal rights for gays. Guess  which
 one the Southern Baptist Convention is protesting?

  ~ The Value of Families
--
gentoo-user@gentoo.org mailing list