PDA

Bekijk de volledige versie : Delete br0 to get 2 seperate internal interfaces?



majx
06-02-2005, 10:53
How to delete br0 to get 2 seperate interfaces: eth0 and eth2 ?

FW: 1.9.2.7-3c, WL-500g

I want to create an iptables script with different rules for wireless and LAN.
Never worked with bridges :o so any help/ideas is appreciated.

Oleg
06-02-2005, 11:40
brctl delif br0 eth2

Use br0 for lan and eth2 for wlan.

majx
06-02-2005, 11:45
And that's all?

Just to remove the WL-if(eth2) from br0 and adding an IP to it?

Oleg
06-02-2005, 11:49
yes, that's all. what you've expected?
desoldering several ICs from the board? :D

asle_500g
08-11-2007, 10:52
brctl delif br0 eth2

Use br0 for lan and eth2 for wlan.
I have tried this. I would now like to bridge eth2 to the wan. This would (hopefully) attach the wlan to my wan, leaving a separate subnet on the lan ports with a running dhcp server.
However, when I run:
brctl addbr br_wan
brctl delif br0 eth2
brctl addif br_wan eth2

I do not get my wanted results. What steps am I missing?
Firmware:
WL500g-1.9.2.7-7g

rogerrb
10-11-2007, 21:01
I have tried this. I would now like to bridge eth2 to the wan. This would (hopefully) attach the wlan to my wan, leaving a separate subnet on the lan ports with a running dhcp server.
However, when I run:
brctl addbr br_wan
brctl delif br0 eth2
brctl addif br_wan eth2

I do not get my wanted results. What steps am I missing?
Firmware:
WL500g-1.9.2.7-7g

I think you have to add the wlan interface to the bridge. I have a WL500gx, so the name of the interface may be different on your WL500g (I think it may be eth0 or eth1, on my WL500gx it's vlan1).

The final command would be something like this:
brctl addif br_wan vlan1