Thread: [mpls-linux-general] ebtables info
Status: Beta
Brought to you by:
jleu
From: Ricardo F. <ric...@fe...> - 2009-05-19 04:41:58
|
Hello, I am doing a network to use MPLS with several terminal machines ( this have IPs) and to connect all i have a layer 2 network made by computers that are going to route the traffic using MPLS. I need to know, in this middle computers, the neightbours MAC to build the path between the terminal machines ( that have IPS). My problem is that ARP need to associate a MAC to a IP, which i do not have in this middle computers. So i was wondering if ebtables could help me build a "arp" table, i.e., the computer PC2 that is connected to one final terminal PC1 ( that has an IP) sends back to the network, in broadcast, a specific frame with is own PC2-MAC, and the terminal PC1 MAC-IP pair. The PC3 listen to this frame and stores that the route to the IP of PC1 is using PC2. PC3 does exactly the same and so on. PC4 does the as PC2 when PC5 connects to it. I want to know if ebtables could help me build specific frames and how to send them to the network and how to catch them. EX.: PC1----------PC2--------PC3------PC4--------PC5 (MAC/IP) (MAC) (MAC) (MAC) (MAC/IP) If someone could help me i would appreciated. Thank you and sorry for the bad spelling english. |
From: Adrian P. <adr...@gm...> - 2009-05-19 05:20:58
|
Hello, You can try by manually setting MAC-IP mappings and bypass the ARP mechanism (this way you can test your mpls testbed). You can try with something like: arp [-v] [<HW>] [-i <if>] -s <host> <hwaddr> [temp] <-Add entry arp -s 1.2.3.4 00:11:22:33:44:55 You can view your mappings with arp -n. Good luck! On Tue, May 19, 2009 at 3:29 AM, Ricardo Faria <ric...@fe...>wrote: > Hello, > I am doing a network to use MPLS with several terminal machines ( this > have IPs) and to connect all i have a layer 2 network made by computers > that are going to route the traffic using MPLS. I need to know, in this > middle computers, the neightbours MAC to build the path between the > terminal machines ( that have IPS). My problem is that ARP need to > associate a MAC to a IP, which i do not have in this middle computers. > So i was wondering if ebtables could help me build a "arp" table, i.e., > the computer PC2 that is connected to one final terminal PC1 ( that has > an IP) sends back to the network, in broadcast, a specific frame with is > own PC2-MAC, and the terminal PC1 MAC-IP pair. The PC3 listen to this > frame and stores that the route to the IP of PC1 is using PC2. PC3 does > exactly the same and so on. PC4 does the as PC2 when PC5 connects to it. > I want to know if ebtables could help me build specific frames and how > to send them to the network and how to catch them. > > > EX.: > > PC1----------PC2--------PC3------PC4--------PC5 > (MAC/IP) (MAC) (MAC) (MAC) (MAC/IP) > > > > > If someone could help me i would appreciated. > Thank you and sorry for the bad spelling english. > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables > unlimited royalty-free distribution of the report engine > for externally facing server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > |
From: Ricardo F. <ric...@fe...> - 2009-05-20 22:41:09
|
Hello, i want to use MPLS in a ethernet network, layer 2, but to add the mpls routes i have to use the IP destination. I was wondering if i use an id, any kind of id, (f.e., mpls nhlfe add key 0 instructions push gen 1000 nexthop eth5 ipv4 1234), instead of ip, and i associate that id with the MAC address off the next hop/destination, in the arp table, the packets would reach the destination? Best regards, Ricardo |
From: Ricardo F. <ric...@fe...> - 2009-05-28 10:52:34
|
Hello. It is possible to use MPLS in a layer 2 (data link) equipment? I want to connect several pcs, with IPs, with layer 2 equipments (pc working as switch) running MPLS. This means that this switch-pcs don't have IPs. Therefore, the mpls nhlfe command cannot be performed between 2 switch-pcs, (again, no IP exists, only MAC). Also, I cannot make ip route add. Any suggestion? Thanks, Ricardo |
From: Adrian P. <adr...@gm...> - 2009-05-28 12:54:01
|
Hello Ricardo, By design, MPLS was not intended to run on switches. It was intended to replace IP lookup in core routers - so it expects it connects routers. You don't need MPLS for layer 2 because switches don't do "best match" table lookup (like IP routers)- so the operation is not so costly. You can connect 2 PCs in a simulated LAN environment over MPLS by creating a layer 2 MPLS tunnel that will transport your Layer 2 traffic between the PCs. Look at the Layer 2 VPN examples in the documentation if this is what you are looking for. However, your PC Switches will need IPs on some interfaces to communicate. Regards, Adrian On Thu, May 28, 2009 at 1:52 PM, Ricardo Faria <ric...@fe...>wrote: > Hello. > > It is possible to use MPLS in a layer 2 (data link) equipment? > > I want to connect several pcs, with IPs, with layer 2 equipments (pc > working as switch) running MPLS. This means that this switch-pcs don’t have > IPs. Therefore, the mpls nhlfe command cannot be performed between 2 > switch-pcs, (again, no IP exists, only MAC). > > Also, I cannot make ip route add. > > Any suggestion? > > > > Thanks, > > Ricardo > > > > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. > Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp as they present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > > |
From: James R. L. <jl...@mi...> - 2009-05-28 14:43:40
|
The nexthop logic that is associated with a NHLFE is designed to figure out how to deliver the MPLS packet to the next device. In the linux kernel this is done via the 'neighbour' sub system which handles all of the possible link types and there associated addressing models. It would be easy to modify the 'mpls' command to accept a MAC address 'nexthop eth1 MAC 00:0a:0a:0a:0a:0a', but I'm not quite sure how easy it is to by-pass the neighbour subsystem. If we get that far, then you could create MPLS tunnel interfaces on your ingress LERs and point IP routes down the tunnels or use ebtables to map ingress ethernet frames to an LSP. I'm trying to finish up converting my development environment and build scripts to GIT. Once that is done I could start to look into the feasability of use MACs as nexthops. On Thu, May 28, 2009 at 11:52:28AM +0100, Ricardo Faria wrote: > Hello. > > It is possible to use MPLS in a layer 2 (data link) equipment? > > I want to connect several pcs, with IPs, with layer 2 equipments (pc working > as switch) running MPLS. This means that this switch-pcs don't have IPs. > Therefore, the mpls nhlfe command cannot be performed between 2 switch-pcs, > (again, no IP exists, only MAC). > > Also, I cannot make ip route add. > > Any suggestion? > > > > Thanks, > > Ricardo > > > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp as they present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general -- James R. Leu jl...@mi... |