Re: [linux-vrf-core] One interface with multiple vrfs
Status: Beta
Brought to you by:
jleu
From: Nick E. <neg...@nf...> - 2006-09-21 14:56:15
|
You're welcome, but James is the one who made it all fly... -----Original Message----- From: mat...@ne... = [mailto:mat...@ne...] Sent: Thursday, September 21, 2006 02:26 AM Eastern Standard Time To: Nick Eggleston; jl...@mi... Cc: lin...@li... Subject: Re: [linux-vrf-core] One interface with multiple vrfs Hi Nick, thats wat I meant. I want to add one vrf to one vlan. After yout tips it = runs smoothly.=20 My motivation to do that is, that I want one computer connect in = different=20 vlans, but i only have one network interface. With your tools, thats now = no problem. Thank You Thank you for helping me. Regards, Matthias Thead:=20 Hi James, What about the following: eth0 is connected to trunk port on a switch. using vconfig on linux, we create vlan interfaces, like: vconfig add eth0 5 vconfig add eth0 10 That should create two new interfaces in the system: eth0.5 eth0.10 now, we would want to put each of those vlan interfaces into a separate vrf. for example, each vlan could carry traffic for a different customer, both of whom share the same ip space. That should work today, right? I am thinking that is what Matthias had in mind (of course, I cold be wrong) I agree with you on the problem of what to do, if the same interface were in two more more vrfs simultaneously. You would then have to make routing decisions based on some complex series of rules. in that case (why would one ever want to do it?) netfilter would probably be the place to make those decisions.=20 All the best, Nick =20 > -----Original Message----- > From: lin...@li... [mailto:linux-vrf-core- > bo...@li...] On Behalf Of James R. Leu > Sent: Wednesday, September 20, 2006 9:00 AM > To: mat...@ne... > Cc: lin...@li... > Subject: Re: [linux-vrf-core] One interface with multiple vrfs >=20 > Hello, >=20 > This is not a case I had thought about when implementing, so help me > understand the motivation: >=20 > Why would you want an interface to be in multiple VRFs? > How would you want incoming packets on said interface to be routed? >=20 > Currently, there is a many-to-one relationship (multiple interfaces can > be added to a VRF, but only one VRF per interface). This is so that > IP packets coming in an interface only need to be looked up in one routing > table. If there were multiple VRFs associated with an interface what > routing table would incoming packets be routed according to? >=20 > If you have a userland application that needs to transmit IP packets > 'in' different VRFs then that application should either use the 'chvrf' > utility to set the VRF associated with a process, or use the VRF socket > option to set the VRF associated with a socket. >=20 > On Wed, Sep 20, 2006 at 01:49:14PM +0200, mat...@ne... > wrote: > > First I tried to add multiple vrf to one interface. But it doesn't run. > > Then I tried to add multiple vrf to a vlan, but I get the message: no > such > > device. > > > > Is it possible to run one interface in multiple vrfs? > > > > > > Regards, > > > > Matthias Flittner >=20 > > ------------------------------------------------------------------------ > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys -- and earn cash > > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V > > _______________________________________________ > > linux-vrf-core mailing list > > lin...@li... > > https://lists.sourceforge.net/lists/listinfo/linux-vrf-core >=20 >=20 > -- > James R. Leu > jl...@mi... |