You are not logged in.

#1 2006-05-05 13:01:50

Back2Cali
Member
From: Germany
Registered: 2006-02-26
Posts: 223

network profile and bridge

I was wondering how I can set up a network bridge for my lan and wlan device AND using this bridge as a network profile.
In /etc/conf.d/bridges there are only exampley of setting the bridge up using the /etc/rc.conf. But how to set up bridges using network profiles?

Does anyone have an idea?

Offline

#2 2007-08-12 22:12:53

ristretto
Member
Registered: 2007-07-06
Posts: 50

Re: network profile and bridge

Anyone have an answer on this one?  I have the same issue.  Can set up bridging from rc.conf alone, but I'm not sure who to configure with profiles.

Offline

#3 2007-08-16 18:29:20

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: network profile and bridge

good question. i'm also wondering exactly the same smile


The impossible missions are the only ones which succeed.

Offline

#4 2008-01-31 07:25:19

derelict
Member
Registered: 2006-07-25
Posts: 81

Re: network profile and bridge

This question was asked back in 2006. It's 2008 and still no answer. Anybody?

br0 is not recognized as a valid device when I use the network profiles. Surely there must to be a way to do this. It would benefit anyone who runs a VM on a laptop.

Perhaps there is an easier or more preferred way of accomplishing this? Any help would be greatly appreciated.

Offline

#5 2008-01-31 08:24:53

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: network profile and bridge

Have yet to receive a feature request for this.

If you'd like to "document" how you think it could be implemented, or better yet -- grab the netcfg source and give it a go yourself, i'll be happy to merge it.

Would you want a "bridge" type profile that would bridge an array of two other profiles?

James

Offline

#6 2008-08-10 01:25:14

Diaz
Member
From: Portugal
Registered: 2008-04-16
Posts: 366

Re: network profile and bridge

i just bought a laptop yesterday and was wondering aout this exact question... So, there are no further development on this?  smile

Offline

#7 2008-08-10 02:10:03

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: network profile and bridge

Open a feature request on the bug tracker and I'll do it - otherwise I'll probably forget like it seems I have already.

Also... I don't use such a setup yourself, so any suggestions on a good way of doing it are welcome.

Offline

#8 2008-08-10 04:29:14

Diaz
Member
From: Portugal
Registered: 2008-04-16
Posts: 366

Re: network profile and bridge

well since i haven't found any kind of configs realted, here are how i did, for now and for what i need, it is working:

profiles:
  /etc/network.d/ethernet0_bridge:

CONNECTION="ethernet"
INTERFACE=eth0
IP="static"
IFOPTS="0.0.0.0 promisc"

/etc/network.d/ethernet1_bridge:

CONNECTION="ethernet"
INTERFACE=eth1
IP="static"
IFOPTS="0.0.0.0"

/etc/network.d/bridge0:

CONNECTION="ethernet"
PRE_UP="brctl addbr br0 && brctl addif br0 eth0 && brctl addif br0 eth1"

INTERFACE=br0
IP=dhcp
DHCP_TIMEOUT=30

/etc/rc.conf:

NETWORKS=(ethernet0_bridge ethernet1_bridge bridge0)
DAEMONS=(... net-profiles ...)

my setup is something like:
[WAN]--[router]--[eth0]--[Desktop]--[eth1]--[new shiny laptop]

seems to work, hope helps someone wink

Last edited by Diaz (2008-08-10 17:41:11)

Offline

Board footer

Powered by FluxBB