Network seperation and ethernet bridge...
Hello all,
I would like to know if it is possible to have 2 bridge instances running - one for the internal network and the other for the external network. What I need to explain is that I need the internal bridge to go though the Linux Kernel and pass its packets to the external network bridge. I am also hopeful that the internal network bridge will not need an IP address as I am hoping to allocate the internal network clients a gateway address beyond the external network bridge and so when I have 2 similar machines running with both internal and external network bridges that when one machine dies completely then the other will take over. Sooooo what I need to know is will I require proxy-arp and/or ip_forwarding?
[internal NW] ---> [internal bridge port 1 of 2]----[external bridge port 4 of 4] --->[GW router]----> www.google.com
I would like to make it so that no request can obviously enter the internal network via the external bridge without having been requested from the internal network --- something similar to tcp state marking but for all protocals and/or ether types.
Signature · 2 lines
Kind Regards Etienne
Quoted 5 lines · On Thu, 22 Jun 2006 16:06:39 +0200 Etienne Pretorius <[email protected]>…
Hello all,
I would like to know if it is possible to have 2 bridge instances running - one for the internal network and the other for the external network.
Yes, you can have two separate bridge instances in the system.
Quoted 10 lines
What I need to explain is that I need the internal bridge to go though the Linux Kernel and pass its packets to the external network bridge. I am also hopeful that the internal network bridge will not need an IP address as I am hoping to allocate the internal network clients a gateway address beyond the external network bridge and so when I have 2 similar machines running with both internal and external network bridges that when one machine dies completely then the other will take over. Sooooo what I need to know is will I require proxy-arp and/or
ip_forwarding?
Quoted 2 lines
[internal NW] ---> [internal bridge port 1 of 2]----[external bridge port 4 of 4] --->[GW router]----> www.google.com
No, you can't bridge a bridge.
This is done to prevent creating loops and causing deep stack nesting.
Quoted 6 lines
I would like to make it so that no request can obviously enter the internal network via the external bridge without having been requested from the
internal network --- something similar to tcp state marking but for all protocals and/or ether types.
Signature · 2 lines
Stephen Hemminger <[email protected]> Quis custodiet ipsos custodes?
Hi, Stephen/all,
The situation I meet is similar as this.
I want to capture BPDU packets go through the Linux bridge,
[internal bridge] --> (connected with a switch) --> [external bridge] --> workstation,
[internal bridge]: br1 ip.addr == 192.168.1.2
[external bridge]: ifconfig br0 192.168.1.10 netmask 255.255.255.0 up
workstation: ip.addr == 192.168.1.222
enable the [internal bridge] with stp on,
My question is, could [internal bridge] generate BPDU packets, and pass the [external bridge], finally captured on the outside workstation?
Best regards,
Jason,
email: [email protected]
Quoted 46 lines · Stephen Hemminger
Quoted 5 lines · On Thu, 22 Jun 2006 16:06:39 +0200 Etienne Pretorius <[email protected]>…
Hello all,
I would like to know if it is possible to have 2 bridge instances running - one for the internal network and the other for the external network.
Yes, you can have two separate bridge instances in the system.
Quoted 4 lines
What I need to explain is that I need the internal bridge to go though the Linux Kernel and pass its packets to the external network bridge. I am also hopeful that the internal network bridge will not need an IP address as I am hoping to allocate the internal network clients a
gateway
Quoted 4 lines
address beyond the external network bridge and so when I have 2 similar machines running with both internal and external network bridges that when one machine dies completely then the other will take over. Sooooo what I need to know is will I require proxy-arp and/or
ip_forwarding?Quoted 4 lines
[internal NW] ---> [internal bridge port 1 of 2]----[external bridge port 4 of 4] --->[GW router]----> www.google.com
No, you can't bridge a bridge.
This is done to prevent creating loops and causing deep stack nesting.Quoted 6 lines
I would like to make it so that no request can obviously enter the internal network via the external bridge without having been requested from the
internal network --- something similar to tcp state marking but for all protocals and/or ether types.--
Stephen Hemminger <[email protected]>
Quis custodiet ipsos custodes?
_______________________________________________
Bridge mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/bridge
Quoted 5 lines · Zhenjie
Hi, Stephen/all,
The situation I meet is similar as this.
I want to capture BPDU packets go through the Linux bridge,
Simpler just to use something like AF_PACKET, or tools like pcapture?
Quoted 9 lines
[internal bridge] --> (connected with a switch) --> [external bridge] --> workstation,
[internal bridge]: br1 ip.addr == 192.168.1.2
[external bridge]: ifconfig br0 192.168.1.10 netmask 255.255.255.0 up
workstation: ip.addr == 192.168.1.222
enable the [internal bridge] with stp on,
Quoted 4 lines
My question is, could [internal bridge] generate BPDU packets, and pass the [external bridge], finally captured on the outside workstation?
Best regards,
Nested bridges are not supported because of possible stack depth and recursion issues.
Thank you for your reply.
Please see the following comments.
Quoted 11 lines · Stephen Hemminger
Quoted 5 lines · Zhenjie
Hi, Stephen/all,
The situation I meet is similar as this.
I want to capture BPDU packets go through the Linux bridge,
Simpler just to use something like
AF_PACKET, or tools like pcapture?
I intend to use a Linux bridge with stp enable in the internal to generate BPDU packets, and use ethereal or tcpdump to capture packets in the other side.
Is there other ways to generate BPDU?
Quoted 11 lines
Quoted 2 lines
[internal bridge] --> (connected with a switch) --> [external bridge]
-->
Quoted 8 lines
workstation,
[internal bridge]: br1 ip.addr == 192.168.1.2
[external bridge]: ifconfig br0 192.168.1.10 netmask 255.255.255.0 up
workstation: ip.addr == 192.168.1.222
enable the [internal bridge] with stp on,My question is, could [internal bridge] generate BPDU packets, and pass
Quoted 9 lines
the
Quoted 3 lines
[external bridge], finally captured on the outside workstation?
Best regards,
Nested bridges are not supported because of possible stack depth and recursion
issues.
Then, how to deploy the network topology in order to test a Linux bridge that could pass/block BPDU packets?
Any suggestions, many thanks,
Jason
Thank you for your reply.
Quoted 11 lines · Stephen Hemminger
Quoted 5 lines · Zhenjie
Hi, Stephen/all,
The situation I meet is similar as this.
I want to capture BPDU packets go through the Linux bridge,
Simpler just to use something like
AF_PACKET, or tools like pcapture?
I intend to use a Linux bridge with stp enable in the internal to generate BPDU packets, and use ethereal or tcpdump to capture packets in the other side.
Is there other ways to generate BPDU?
Quoted 11 lines
Quoted 2 lines
[internal bridge] --> (connected with a switch) --> [external bridge]
-->
Quoted 8 lines
workstation,
[internal bridge]: br1 ip.addr == 192.168.1.2
[external bridge]: ifconfig br0 192.168.1.10 netmask 255.255.255.0 up
workstation: ip.addr == 192.168.1.222
enable the [internal bridge] with stp on,My question is, could [internal bridge] generate BPDU packets, and pass
Quoted 9 lines
the
Quoted 3 lines
[external bridge], finally captured on the outside workstation?
Best regards,
Nested bridges are not supported because of possible stack depth and recursion
issues.
Then, how to deploy the network topology if I want to test a bridge that could pass/block BPDU packets?
Quoted 12 lines · Zhenjie
Thank you for your reply.
Quoted 10 lines · Stephen Hemminger
Quoted 5 lines · Zhenjie
Hi, Stephen/all,
The situation I meet is similar as this.
I want to capture BPDU packets go through the Linux bridge,
Quoted 7 lines
Quoted 1 line
Simpler just to use something like
AF_PACKET, or tools like pcapture?I intend to use a Linux bridge with stp enable in the internal to generate BPDU packets, and use ethereal or tcpdump to capture packets in the other side.
Is there other ways to generate BPDU?
You could use LLC to send/receive spanning tree BPDU's.
Or you could use the Ethernet tap driver (tuntap) and attach a pseudo-device to a bridge.