Re: rdomain with BGP dynamic route

2015-08-11 Thread XU, YANG (YANG)
Hi Claudio,

Thank you so much for the info.  To run multiple bgdp instances, do I need to 
use different listening port numbers?

Regards,
-yang

-Original Message-
From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of 
Claudio Jeker
Sent: Saturday, August 08, 2015 4:12 PM
To: misc@openbsd.org
Subject: Re: rdomain with BGP dynamic route

On Thu, Jul 30, 2015 at 11:26:56AM -0400, XU, YANG  (YANG) wrote:
 Adam,
 
 Your  comments and links are very helpful, they made some concepts 
 clear for me. Many thanks!
 
 What I need essentially is VRF function which converts IPv4 prefix to
 VPNv4 prefix dynamically. I hope experts can help on this. After 
 spending so much time on searching for the answer, sending beer is an 
 easier thing to do. Just give me a working example, and beer will be 
 on the way :)

Hmm. To do this you need to run multiple bgpds one doing the VPNv4 handling and 
then a bgpd instance per client (running that specific rdomain). For those 
client bgpd you need to add some extra config to make it all work:

# change fib priority so that bgpd does not filter those routes fib-priority 36 
# change location of bgpctl socket socket /var/run/bgpd.customer1.sock

Then I think it is the easiest to start those client bgpd with route -T 3 exec 
/usr/sbin/bgpd

This will run bgpd in rdomain 3. You still need an mpe(4) interface in rdomain 
3 so that the primary bgpd exports the routes (plus you will need some ldpd and 
MPLS config as described in the presentation you mentioned).

It may be possible to use:
rde rib customer-1 rtable 3
and some filter magic to run all in a single bgpd but I think that is a lot 
more trouble than having different processes running.

Originally the idea was that the PE - CE route exachange would be done via 
OSPF. This is why you need multiple processes for this setup.

--
:wq Claudio
 
 
 -Original Message-
 From: Adam Thompson [mailto:athom...@athompso.net]
 Sent: Tuesday, July 28, 2015 8:59 PM
 To: XU, YANG (YANG) y...@research.att.com
 Cc: misc@openbsd.org
 Subject: Re: rdomain with BGP dynamic route
 
 I see what you mean.
 
 This, I think, is close to what you're looking for, but I'm not 100% certain 
 of how to accomplish exactly what you want:
 
nexthop qualify via bgp
listen on A.B.C.D  ## vrf member address of, say, em1
rtable 2  ## put vrf interface into rdomain 2 via ifconfig?
rdomain 2 {
  rd 123:456
  depend on em1
}
neighbor VPNCLIENT1 {
  depend on em1
}
 
 ...I don't know how to avoid running a separate instance of bgpd(8) per VRF, 
 however.
 
 Given that OpenBSD has, apparently, a working MPLS + LDP 
 implementation, this is obviously yet another case where the manual 
 pages contain enough information
 
 Based on jeker's MPLS paper back at EuroBSDCon 2011, it may be the case that 
 BGP + VRF really only works work mpe(4).
 
 Ah!  I found someone else's documentation that explains it... you do still 
 need to use rdomain0, but you MUST tag the routes.  rdomain0 contains 
 everything, including the [possibly overlapping] routes, but with prefixes to 
 keep them separate.
 
 See http://firstyear.id.au/entry/21. Also see jeker's explanation (perhaps 
 dated) here: 
 http://openbsd-archive.7691.n7.nabble.com/Using-RDomain-setup-with-pf-4-and-bgpd-8-td42066.html.
 
 (Also check out http://lmgtfy.com/?q=openbsd+bgp+vrf. Admittedly, the 
 fourth or fifth result _is_ this thread :-/.)
 
 Failing that, as I can't tell for certain if it does what you want, wait for 
 Claudio, Henning, or whoever else is working on it now to figure out how to 
 make it work better!  I hear sending them beer sometimes helps...
 
 -Adam
 
 
 
 
 On 07/24/2015 08:07 PM, XU, YANG (YANG) wrote:
  Adam,
 
  I really appreciate your reply. I read bgpd.conf and see rdomain can only 
  define network as explicit, static or connected. In my case, I need to 
  import dynamic prefix from BGP session. Right now all prefix learned from 
  BGP goes to rdomain 0.  I want to put prefix learned from BGP into the 
  rdomain I specify.
 
  Thanks,
  -Yang
  
  From: Adam Thompson [athom...@athompso.net]
  Sent: 24 July 2015 20:33
  To: XU, YANG  (YANG)
  Subject: Re: rdomain with BGP dynamic route
 
  On 2015-07-24 06:47 AM, XU, YANG (YANG) wrote:
  Let me describe it in another way. Can I create a new rdomain as a VRF and 
  use the rdomain to import/export customer's prefix through BGP?
 
  I will greatly appreciate it if you can provide any information. I have 
  seen some information online, but prefix is either from static 
  configuration or connected network. In my case, I need to support dynamic 
  routes from BGP in VRF.
  Short answer: yes.
 
  See man bgpd.conf(5):
 
  ROUTING DOMAIN CONFIGURATION
  bgpd(8) supports the setup and distribution of Virtual Private Networks.
  It is possible to import and export prefixes between routing domains.
  Each routing domain is specified

Re: rdomain with BGP dynamic route

2015-08-08 Thread Claudio Jeker
On Thu, Jul 30, 2015 at 11:26:56AM -0400, XU, YANG  (YANG) wrote:
 Adam,
 
 Your  comments and links are very helpful, they made some concepts clear
 for me. Many thanks! 
 
 What I need essentially is VRF function which converts IPv4 prefix to
 VPNv4 prefix dynamically. I hope experts can help on this. After
 spending so much time on searching for the answer, sending beer is an
 easier thing to do. Just give me a working example, and beer will be on
 the way :)

Hmm. To do this you need to run multiple bgpds one doing the VPNv4
handling and then a bgpd instance per client (running that specific
rdomain). For those client bgpd you need to add some extra config to make
it all work:

# change fib priority so that bgpd does not filter those routes
fib-priority 36
# change location of bgpctl socket
socket /var/run/bgpd.customer1.sock

Then I think it is the easiest to start those client bgpd with
route -T 3 exec /usr/sbin/bgpd

This will run bgpd in rdomain 3. You still need an mpe(4) interface in
rdomain 3 so that the primary bgpd exports the routes (plus you will need
some ldpd and MPLS config as described in the presentation you mentioned).

It may be possible to use:
rde rib customer-1 rtable 3
and some filter magic to run all in a single bgpd but I think that is a
lot more trouble than having different processes running.

Originally the idea was that the PE - CE route exachange would be done
via OSPF. This is why you need multiple processes for this setup.

-- 
:wq Claudio
 
 
 -Original Message-
 From: Adam Thompson [mailto:athom...@athompso.net] 
 Sent: Tuesday, July 28, 2015 8:59 PM
 To: XU, YANG (YANG) y...@research.att.com
 Cc: misc@openbsd.org
 Subject: Re: rdomain with BGP dynamic route
 
 I see what you mean.
 
 This, I think, is close to what you're looking for, but I'm not 100% certain 
 of how to accomplish exactly what you want:
 
nexthop qualify via bgp
listen on A.B.C.D  ## vrf member address of, say, em1
rtable 2  ## put vrf interface into rdomain 2 via ifconfig?
rdomain 2 {
  rd 123:456
  depend on em1
}
neighbor VPNCLIENT1 {
  depend on em1
}
 
 ...I don't know how to avoid running a separate instance of bgpd(8) per VRF, 
 however.
 
 Given that OpenBSD has, apparently, a working MPLS + LDP implementation, this 
 is obviously yet another case where the manual pages contain enough 
 information
 
 Based on jeker's MPLS paper back at EuroBSDCon 2011, it may be the case that 
 BGP + VRF really only works work mpe(4).
 
 Ah!  I found someone else's documentation that explains it... you do still 
 need to use rdomain0, but you MUST tag the routes.  rdomain0 contains 
 everything, including the [possibly overlapping] routes, but with prefixes to 
 keep them separate.
 
 See http://firstyear.id.au/entry/21. Also see jeker's explanation (perhaps 
 dated) here: 
 http://openbsd-archive.7691.n7.nabble.com/Using-RDomain-setup-with-pf-4-and-bgpd-8-td42066.html.
 
 (Also check out http://lmgtfy.com/?q=openbsd+bgp+vrf. Admittedly, the fourth 
 or fifth result _is_ this thread :-/.)
 
 Failing that, as I can't tell for certain if it does what you want, wait for 
 Claudio, Henning, or whoever else is working on it now to figure out how to 
 make it work better!  I hear sending them beer sometimes helps...
 
 -Adam
 
 
 
 
 On 07/24/2015 08:07 PM, XU, YANG (YANG) wrote:
  Adam,
 
  I really appreciate your reply. I read bgpd.conf and see rdomain can only 
  define network as explicit, static or connected. In my case, I need to 
  import dynamic prefix from BGP session. Right now all prefix learned from 
  BGP goes to rdomain 0.  I want to put prefix learned from BGP into the 
  rdomain I specify.
 
  Thanks,
  -Yang
  
  From: Adam Thompson [athom...@athompso.net]
  Sent: 24 July 2015 20:33
  To: XU, YANG  (YANG)
  Subject: Re: rdomain with BGP dynamic route
 
  On 2015-07-24 06:47 AM, XU, YANG (YANG) wrote:
  Let me describe it in another way. Can I create a new rdomain as a VRF and 
  use the rdomain to import/export customer's prefix through BGP?
 
  I will greatly appreciate it if you can provide any information. I have 
  seen some information online, but prefix is either from static 
  configuration or connected network. In my case, I need to support dynamic 
  routes from BGP in VRF.
  Short answer: yes.
 
  See man bgpd.conf(5):
 
  ROUTING DOMAIN CONFIGURATION
  bgpd(8) supports the setup and distribution of Virtual Private Networks.
  It is possible to import and export prefixes between routing domains.
  Each routing domain is specified by an rdomain section, which allows 
  properties to be set specifically for that rdomain:
  rdomain 1 {
descr a rdomain
rd 65002:1
import-target rt 65002:42
export-target rt 65002:42
network 192.168.1/24
depend on mpe0
  }
 
  --
  -Adam Thompson
 athom...@athompso.net



Re: rdomain with BGP dynamic route

2015-07-31 Thread XU, YANG (YANG)
Adam,

That's good suggestion, thanks and I will give it a try.  I plan to use OpenBSD 
as a PE from a service provider point of view, I guess that's not a popular use 
case. 

Regards,
-Yang

-Original Message-
From: Adam Thompson [mailto:athom...@athompso.net] 
Sent: Thursday, July 30, 2015 6:04 PM
To: XU, YANG (YANG) y...@research.att.com
Cc: misc@openbsd.org
Subject: Re: rdomain with BGP dynamic route

On 07/30/2015 10:26 AM, XU, YANG (YANG) wrote:
 Adam,

 Your  comments and links are very helpful, they made some concepts clear for 
 me. Many thanks!

 What I need essentially is VRF function which converts IPv4 prefix to 
 VPNv4 prefix dynamically. I hope experts can help on this. After 
 spending so much time on searching for the answer, sending beer is an 
 easier thing to do. Just give me a working example, and beer will be 
 on the way :)

 Regards,
 -Yang

After that clarification, I understand even less than I did before of what you 
want to accomplish.  Regardless, at this point I'd say your options for 
continuing with OpenBSD might be limited to:
a) go to one of the BSD conferences, locate one of the developers who work on 
the network stack [this isn't very hard], and ask them; or
b) pay someone (e.g. maybe reyk@ et al. over at Esdenera Networks, not sure who 
else would be a candidate) to figure it out for you and, if necessary, fix it.

-Adam



Re: rdomain with BGP dynamic route

2015-07-31 Thread Adam Thompson

Then you should have been at BSDCan last month!

Olivier Cochard-Labbé of Orange(?) is deploying something like this but 
using FreeBSD (http://www.bsdcan.org/2015/schedule/events/555.en.html), 
and Peter Hessler talked at length about rdomains in OpenBSD 
(http://www.bsdcan.org/2015/schedule/events/555.en.html).
Both presentations were recorded, but obviously you can't do interactive 
QA with a YouTube video :-).


-Adam


On 07/31/2015 10:48 AM, XU, YANG (YANG) wrote:

Adam,

That's good suggestion, thanks and I will give it a try.  I plan to use OpenBSD 
as a PE from a service provider point of view, I guess that's not a popular use 
case.

Regards,
-Yang

-Original Message-
From: Adam Thompson [mailto:athom...@athompso.net]
Sent: Thursday, July 30, 2015 6:04 PM
To: XU, YANG (YANG) y...@research.att.com
Cc: misc@openbsd.org
Subject: Re: rdomain with BGP dynamic route

On 07/30/2015 10:26 AM, XU, YANG (YANG) wrote:

Adam,

Your  comments and links are very helpful, they made some concepts clear for 
me. Many thanks!

What I need essentially is VRF function which converts IPv4 prefix to
VPNv4 prefix dynamically. I hope experts can help on this. After
spending so much time on searching for the answer, sending beer is an
easier thing to do. Just give me a working example, and beer will be
on the way :)

Regards,
-Yang

After that clarification, I understand even less than I did before of what you 
want to accomplish.  Regardless, at this point I'd say your options for 
continuing with OpenBSD might be limited to:
a) go to one of the BSD conferences, locate one of the developers who work on 
the network stack [this isn't very hard], and ask them; or
b) pay someone (e.g. maybe reyk@ et al. over at Esdenera Networks, not sure who 
else would be a candidate) to figure it out for you and, if necessary, fix it.

-Adam




Re: rdomain with BGP dynamic route

2015-07-31 Thread XU, YANG (YANG)
The presentations were impressive, I wish I knew earlier and went there. 

Thanks again,
-Yang

-Original Message-
From: Adam Thompson [mailto:athom...@athompso.net] 
Sent: Friday, July 31, 2015 2:09 PM
To: XU, YANG (YANG) y...@research.att.com
Cc: misc@openbsd.org
Subject: Re: rdomain with BGP dynamic route

Then you should have been at BSDCan last month!

Olivier Cochard-Labbé of Orange(?) is deploying something like this but using 
FreeBSD (http://www.bsdcan.org/2015/schedule/events/555.en.html),
and Peter Hessler talked at length about rdomains in OpenBSD 
(http://www.bsdcan.org/2015/schedule/events/555.en.html).
Both presentations were recorded, but obviously you can't do interactive QA 
with a YouTube video :-).

-Adam


On 07/31/2015 10:48 AM, XU, YANG (YANG) wrote:
 Adam,

 That's good suggestion, thanks and I will give it a try.  I plan to use 
 OpenBSD as a PE from a service provider point of view, I guess that's not a 
 popular use case.

 Regards,
 -Yang

 -Original Message-
 From: Adam Thompson [mailto:athom...@athompso.net]
 Sent: Thursday, July 30, 2015 6:04 PM
 To: XU, YANG (YANG) y...@research.att.com
 Cc: misc@openbsd.org
 Subject: Re: rdomain with BGP dynamic route

 On 07/30/2015 10:26 AM, XU, YANG (YANG) wrote:
 Adam,

 Your  comments and links are very helpful, they made some concepts clear for 
 me. Many thanks!

 What I need essentially is VRF function which converts IPv4 prefix to
 VPNv4 prefix dynamically. I hope experts can help on this. After 
 spending so much time on searching for the answer, sending beer is an 
 easier thing to do. Just give me a working example, and beer will be 
 on the way :)

 Regards,
 -Yang
 After that clarification, I understand even less than I did before of what 
 you want to accomplish.  Regardless, at this point I'd say your options for 
 continuing with OpenBSD might be limited to:
 a) go to one of the BSD conferences, locate one of the developers who 
 work on the network stack [this isn't very hard], and ask them; or
 b) pay someone (e.g. maybe reyk@ et al. over at Esdenera Networks, not sure 
 who else would be a candidate) to figure it out for you and, if necessary, 
 fix it.

 -Adam



Re: rdomain with BGP dynamic route

2015-07-30 Thread XU, YANG (YANG)
Adam,

Your  comments and links are very helpful, they made some concepts clear for 
me. Many thanks! 

What I need essentially is VRF function which converts IPv4 prefix to VPNv4 
prefix dynamically. I hope experts can help on this. After spending so much 
time on searching for the answer, sending beer is an easier thing to do. Just 
give me a working example, and beer will be on the way :)

Regards,
-Yang


-Original Message-
From: Adam Thompson [mailto:athom...@athompso.net] 
Sent: Tuesday, July 28, 2015 8:59 PM
To: XU, YANG (YANG) y...@research.att.com
Cc: misc@openbsd.org
Subject: Re: rdomain with BGP dynamic route

I see what you mean.

This, I think, is close to what you're looking for, but I'm not 100% certain of 
how to accomplish exactly what you want:

   nexthop qualify via bgp
   listen on A.B.C.D  ## vrf member address of, say, em1
   rtable 2  ## put vrf interface into rdomain 2 via ifconfig?
   rdomain 2 {
 rd 123:456
 depend on em1
   }
   neighbor VPNCLIENT1 {
 depend on em1
   }

...I don't know how to avoid running a separate instance of bgpd(8) per VRF, 
however.

Given that OpenBSD has, apparently, a working MPLS + LDP implementation, this 
is obviously yet another case where the manual pages contain enough information

Based on jeker's MPLS paper back at EuroBSDCon 2011, it may be the case that 
BGP + VRF really only works work mpe(4).

Ah!  I found someone else's documentation that explains it... you do still need 
to use rdomain0, but you MUST tag the routes.  rdomain0 contains everything, 
including the [possibly overlapping] routes, but with prefixes to keep them 
separate.

See http://firstyear.id.au/entry/21. Also see jeker's explanation (perhaps 
dated) here: 
http://openbsd-archive.7691.n7.nabble.com/Using-RDomain-setup-with-pf-4-and-bgpd-8-td42066.html.

(Also check out http://lmgtfy.com/?q=openbsd+bgp+vrf. Admittedly, the fourth or 
fifth result _is_ this thread :-/.)

Failing that, as I can't tell for certain if it does what you want, wait for 
Claudio, Henning, or whoever else is working on it now to figure out how to 
make it work better!  I hear sending them beer sometimes helps...

-Adam




On 07/24/2015 08:07 PM, XU, YANG (YANG) wrote:
 Adam,

 I really appreciate your reply. I read bgpd.conf and see rdomain can only 
 define network as explicit, static or connected. In my case, I need to import 
 dynamic prefix from BGP session. Right now all prefix learned from BGP goes 
 to rdomain 0.  I want to put prefix learned from BGP into the rdomain I 
 specify.

 Thanks,
 -Yang
 
 From: Adam Thompson [athom...@athompso.net]
 Sent: 24 July 2015 20:33
 To: XU, YANG  (YANG)
 Subject: Re: rdomain with BGP dynamic route

 On 2015-07-24 06:47 AM, XU, YANG (YANG) wrote:
 Let me describe it in another way. Can I create a new rdomain as a VRF and 
 use the rdomain to import/export customer's prefix through BGP?

 I will greatly appreciate it if you can provide any information. I have seen 
 some information online, but prefix is either from static configuration or 
 connected network. In my case, I need to support dynamic routes from BGP in 
 VRF.
 Short answer: yes.

 See man bgpd.conf(5):

 ROUTING DOMAIN CONFIGURATION
 bgpd(8) supports the setup and distribution of Virtual Private Networks.
 It is possible to import and export prefixes between routing domains.
 Each routing domain is specified by an rdomain section, which allows 
 properties to be set specifically for that rdomain:
 rdomain 1 {
   descr a rdomain
   rd 65002:1
   import-target rt 65002:42
   export-target rt 65002:42
   network 192.168.1/24
   depend on mpe0
 }

 --
 -Adam Thompson
athom...@athompso.net



Re: rdomain with BGP dynamic route

2015-07-30 Thread Adam Thompson

On 07/30/2015 10:26 AM, XU, YANG (YANG) wrote:

Adam,

Your  comments and links are very helpful, they made some concepts clear for 
me. Many thanks!

What I need essentially is VRF function which converts IPv4 prefix to VPNv4 
prefix dynamically. I hope experts can help on this. After spending so much 
time on searching for the answer, sending beer is an easier thing to do. Just 
give me a working example, and beer will be on the way :)

Regards,
-Yang


After that clarification, I understand even less than I did before of 
what you want to accomplish.  Regardless, at this point I'd say your 
options for continuing with OpenBSD might be limited to:
a) go to one of the BSD conferences, locate one of the developers who 
work on the network stack [this isn't very hard], and ask them; or
b) pay someone (e.g. maybe reyk@ et al. over at Esdenera Networks, not 
sure who else would be a candidate) to figure it out for you and, if 
necessary, fix it.


-Adam



Re: rdomain with BGP dynamic route

2015-07-28 Thread Adam Thompson

I see what you mean.

This, I think, is close to what you're looking for, but I'm not 100% 
certain of how to accomplish exactly what you want:


  nexthop qualify via bgp
  listen on A.B.C.D  ## vrf member address of, say, em1
  rtable 2  ## put vrf interface into rdomain 2 via ifconfig?
  rdomain 2 {
rd 123:456
depend on em1
  }
  neighbor VPNCLIENT1 {
depend on em1
  }

...I don't know how to avoid running a separate instance of bgpd(8) per 
VRF, however.


Given that OpenBSD has, apparently, a working MPLS + LDP implementation, 
this is obviously yet another case where the manual pages contain enough 
information


Based on jeker's MPLS paper back at EuroBSDCon 2011, it may be the case 
that BGP + VRF really only works work mpe(4).


Ah!  I found someone else's documentation that explains it... you do 
still need to use rdomain0, but you MUST tag the routes.  rdomain0 
contains everything, including the [possibly overlapping] routes, but 
with prefixes to keep them separate.


See http://firstyear.id.au/entry/21. Also see jeker's explanation 
(perhaps dated) here: 
http://openbsd-archive.7691.n7.nabble.com/Using-RDomain-setup-with-pf-4-and-bgpd-8-td42066.html.


(Also check out http://lmgtfy.com/?q=openbsd+bgp+vrf. Admittedly, the 
fourth or fifth result _is_ this thread :-/.)


Failing that, as I can't tell for certain if it does what you want, wait 
for Claudio, Henning, or whoever else is working on it now to figure out 
how to make it work better!  I hear sending them beer sometimes helps...


-Adam




On 07/24/2015 08:07 PM, XU, YANG (YANG) wrote:

Adam,

I really appreciate your reply. I read bgpd.conf and see rdomain can only 
define network as explicit, static or connected. In my case, I need to import 
dynamic prefix from BGP session. Right now all prefix learned from BGP goes to 
rdomain 0.  I want to put prefix learned from BGP into the rdomain I specify.

Thanks,
-Yang

From: Adam Thompson [athom...@athompso.net]
Sent: 24 July 2015 20:33
To: XU, YANG  (YANG)
Subject: Re: rdomain with BGP dynamic route

On 2015-07-24 06:47 AM, XU, YANG (YANG) wrote:

Let me describe it in another way. Can I create a new rdomain as a VRF and use 
the rdomain to import/export customer's prefix through BGP?

I will greatly appreciate it if you can provide any information. I have seen 
some information online, but prefix is either from static configuration or 
connected network. In my case, I need to support dynamic routes from BGP in VRF.

Short answer: yes.

See man bgpd.conf(5):

ROUTING DOMAIN CONFIGURATION
bgpd(8) supports the setup and distribution of Virtual Private Networks.
It is possible to import and export prefixes between routing domains.
Each routing domain is specified by an rdomain section, which allows
properties to be set specifically for that rdomain:
rdomain 1 {
  descr a rdomain
  rd 65002:1
  import-target rt 65002:42
  export-target rt 65002:42
  network 192.168.1/24
  depend on mpe0
}

--
-Adam Thompson
   athom...@athompso.net




Re: rdomain with BGP dynamic route

2015-07-27 Thread BARDOU Pierre
Hello,

I think this is what I tried a while ago, which is not possible.
Cf 
http://openbsd-archive.7691.n7.nabble.com/Multi-VRF-bgpd-no-MPLS-td248639.html

Bgpd.conf(5) says : Currently the routing table must belong to the default 
routing domain

--
Cordialement,
Pierre BARDOU

-Message d'origine-
De : XU, YANG (YANG) [mailto:y...@research.att.com] 
Envoyé : dimanche 26 juillet 2015 14:28
À : misc@openbsd.org
Objet : Re: rdomain with BGP dynamic route

Thanks for the info. I read the rdomain configuration section. My problem is 
how to put prefix learned dynamically from a BGP neighbor to a specific rdomain 
(not default rdomain 0). Sadly, I still don't know if that's possible. 

Regards,
-Yang



From: owner-m...@openbsd.org [owner-m...@openbsd.org] On Behalf Of Alexander 
Salmin [alexan...@salmin.biz]
Sent: 25 July 2015 17:36
To: misc@openbsd.org
Subject: Re: rdomain with BGP dynamic route

Hey,

man 5 bgpd.conf

See section Routing Domain Configuration and parameters export-target and 
import-target. I suspect that is what you want.

Alexander Salmin

On 2015-07-24 13:47, XU, YANG (YANG) wrote:
 Let me describe it in another way. Can I create a new rdomain as a VRF and 
 use the rdomain to import/export customer's prefix through BGP?

 I will greatly appreciate it if you can provide any information. I have seen 
 some information online, but prefix is either from static configuration or 
 connected network. In my case, I need to support dynamic routes from BGP in 
 VRF.

 Thanks,
 -Yang



 
 From: owner-m...@openbsd.org [owner-m...@openbsd.org] On Behalf Of XU, 
 YANG  (YANG)
 Sent: 23 July 2015 08:06
 To: misc@openbsd.org
 Subject: rdomain with BGP dynamic route

 Hi all,

 I am configuring OpenBSD bgpd so that it can relay the routes learned from 
 customer BGP servers to a route reflector (RR). Customer BGP servers only 
 speak IPv4 BGP, so my OpenBSD bgpd needs to add different route-distinguisher 
 and route-target to the dynamic routes learned from each customer BGP 
 neighbor before forwarding to RR. As I understand, I should be able to use 
 rdomain to implement this. What I really need conceptually is to attach a BGP 
 neighbor to a rdomain, so that dynamic routes learned from that BGP neighbor 
 are added to the specified rdomain.  But I failed to find a way to do this in 
 OpenBSD. Does anyone know if this is possible and give me an BGP configure 
 example?

 Many thanks in advance,

 -Yang



Re: rdomain with BGP dynamic route

2015-07-27 Thread XU, YANG (YANG)
Pierre,

Thanks for forwarding the information to me. Yes, what you tried was related, 
especially the overlapping addresses of clients. What I want to do is to assign 
different RD to different VRF routes learned dynamically from clients. Based on 
what I heard and read so far, I just assume it's not doable. 

Thanks again,
-Yang

-Original Message-
From: BARDOU Pierre [mailto:bardo...@mipih.fr] 
Sent: Monday, July 27, 2015 8:47 AM
To: XU, YANG (YANG) y...@research.att.com; misc@openbsd.org
Subject: RE: rdomain with BGP dynamic route

Hello,

I think this is what I tried a while ago, which is not possible.
Cf 
http://openbsd-archive.7691.n7.nabble.com/Multi-VRF-bgpd-no-MPLS-td248639.html

Bgpd.conf(5) says : Currently the routing table must belong to the default 
routing domain

--
Cordialement,
Pierre BARDOU

-Message d'origine-
De : XU, YANG (YANG) [mailto:y...@research.att.com] Envoyé : dimanche 26 
juillet 2015 14:28 À : misc@openbsd.org Objet : Re: rdomain with BGP dynamic 
route

Thanks for the info. I read the rdomain configuration section. My problem is 
how to put prefix learned dynamically from a BGP neighbor to a specific rdomain 
(not default rdomain 0). Sadly, I still don't know if that's possible. 

Regards,
-Yang



From: owner-m...@openbsd.org [owner-m...@openbsd.org] On Behalf Of Alexander 
Salmin [alexan...@salmin.biz]
Sent: 25 July 2015 17:36
To: misc@openbsd.org
Subject: Re: rdomain with BGP dynamic route

Hey,

man 5 bgpd.conf

See section Routing Domain Configuration and parameters export-target and 
import-target. I suspect that is what you want.

Alexander Salmin

On 2015-07-24 13:47, XU, YANG (YANG) wrote:
 Let me describe it in another way. Can I create a new rdomain as a VRF and 
 use the rdomain to import/export customer's prefix through BGP?

 I will greatly appreciate it if you can provide any information. I have seen 
 some information online, but prefix is either from static configuration or 
 connected network. In my case, I need to support dynamic routes from BGP in 
 VRF.

 Thanks,
 -Yang



 
 From: owner-m...@openbsd.org [owner-m...@openbsd.org] On Behalf Of XU, 
 YANG  (YANG)
 Sent: 23 July 2015 08:06
 To: misc@openbsd.org
 Subject: rdomain with BGP dynamic route

 Hi all,

 I am configuring OpenBSD bgpd so that it can relay the routes learned from 
 customer BGP servers to a route reflector (RR). Customer BGP servers only 
 speak IPv4 BGP, so my OpenBSD bgpd needs to add different route-distinguisher 
 and route-target to the dynamic routes learned from each customer BGP 
 neighbor before forwarding to RR. As I understand, I should be able to use 
 rdomain to implement this. What I really need conceptually is to attach a BGP 
 neighbor to a rdomain, so that dynamic routes learned from that BGP neighbor 
 are added to the specified rdomain.  But I failed to find a way to do this in 
 OpenBSD. Does anyone know if this is possible and give me an BGP configure 
 example?

 Many thanks in advance,

 -Yang



Re: rdomain with BGP dynamic route

2015-07-26 Thread XU, YANG (YANG)
Thanks for the info. I read the rdomain configuration section. My problem is 
how to put prefix learned dynamically from a BGP neighbor to a specific rdomain 
(not default rdomain 0). Sadly, I still don't know if that's possible. 

Regards,
-Yang



From: owner-m...@openbsd.org [owner-m...@openbsd.org] On Behalf Of Alexander 
Salmin [alexan...@salmin.biz]
Sent: 25 July 2015 17:36
To: misc@openbsd.org
Subject: Re: rdomain with BGP dynamic route

Hey,

man 5 bgpd.conf

See section Routing Domain Configuration and parameters
export-target and import-target. I suspect that is what you want.

Alexander Salmin

On 2015-07-24 13:47, XU, YANG (YANG) wrote:
 Let me describe it in another way. Can I create a new rdomain as a VRF and 
 use the rdomain to import/export customer's prefix through BGP?

 I will greatly appreciate it if you can provide any information. I have seen 
 some information online, but prefix is either from static configuration or 
 connected network. In my case, I need to support dynamic routes from BGP in 
 VRF.

 Thanks,
 -Yang



 
 From: owner-m...@openbsd.org [owner-m...@openbsd.org] On Behalf Of XU, YANG  
 (YANG)
 Sent: 23 July 2015 08:06
 To: misc@openbsd.org
 Subject: rdomain with BGP dynamic route

 Hi all,

 I am configuring OpenBSD bgpd so that it can relay the routes learned from 
 customer BGP servers to a route reflector (RR). Customer BGP servers only 
 speak IPv4 BGP, so my OpenBSD bgpd needs to add different route-distinguisher 
 and route-target to the dynamic routes learned from each customer BGP 
 neighbor before forwarding to RR. As I understand, I should be able to use 
 rdomain to implement this. What I really need conceptually is to attach a BGP 
 neighbor to a rdomain, so that dynamic routes learned from that BGP neighbor 
 are added to the specified rdomain.  But I failed to find a way to do this in 
 OpenBSD. Does anyone know if this is possible and give me an BGP configure 
 example?

 Many thanks in advance,

 -Yang



Re: rdomain with BGP dynamic route

2015-07-25 Thread Alexander Salmin

Hey,

man 5 bgpd.conf

See section Routing Domain Configuration and parameters 
export-target and import-target. I suspect that is what you want.


Alexander Salmin

On 2015-07-24 13:47, XU, YANG (YANG) wrote:

Let me describe it in another way. Can I create a new rdomain as a VRF and use 
the rdomain to import/export customer's prefix through BGP?

I will greatly appreciate it if you can provide any information. I have seen 
some information online, but prefix is either from static configuration or 
connected network. In my case, I need to support dynamic routes from BGP in VRF.

Thanks,
-Yang




From: owner-m...@openbsd.org [owner-m...@openbsd.org] On Behalf Of XU, YANG  
(YANG)
Sent: 23 July 2015 08:06
To: misc@openbsd.org
Subject: rdomain with BGP dynamic route

Hi all,

I am configuring OpenBSD bgpd so that it can relay the routes learned from 
customer BGP servers to a route reflector (RR). Customer BGP servers only speak 
IPv4 BGP, so my OpenBSD bgpd needs to add different route-distinguisher and 
route-target to the dynamic routes learned from each customer BGP neighbor 
before forwarding to RR. As I understand, I should be able to use rdomain to 
implement this. What I really need conceptually is to attach a BGP neighbor to 
a rdomain, so that dynamic routes learned from that BGP neighbor are added to 
the specified rdomain.  But I failed to find a way to do this in OpenBSD. Does 
anyone know if this is possible and give me an BGP configure example?

Many thanks in advance,

-Yang




Re: rdomain with BGP dynamic route

2015-07-24 Thread XU, YANG (YANG)
Let me describe it in another way. Can I create a new rdomain as a VRF and use 
the rdomain to import/export customer's prefix through BGP?

I will greatly appreciate it if you can provide any information. I have seen 
some information online, but prefix is either from static configuration or 
connected network. In my case, I need to support dynamic routes from BGP in 
VRF. 

Thanks,
-Yang




From: owner-m...@openbsd.org [owner-m...@openbsd.org] On Behalf Of XU, YANG  
(YANG)
Sent: 23 July 2015 08:06
To: misc@openbsd.org
Subject: rdomain with BGP dynamic route

Hi all,

I am configuring OpenBSD bgpd so that it can relay the routes learned from 
customer BGP servers to a route reflector (RR). Customer BGP servers only speak 
IPv4 BGP, so my OpenBSD bgpd needs to add different route-distinguisher and 
route-target to the dynamic routes learned from each customer BGP neighbor 
before forwarding to RR. As I understand, I should be able to use rdomain to 
implement this. What I really need conceptually is to attach a BGP neighbor to 
a rdomain, so that dynamic routes learned from that BGP neighbor are added to 
the specified rdomain.  But I failed to find a way to do this in OpenBSD. Does 
anyone know if this is possible and give me an BGP configure example?

Many thanks in advance,

-Yang



rdomain with BGP dynamic route

2015-07-23 Thread XU, YANG (YANG)
Hi all,

I am configuring OpenBSD bgpd so that it can relay the routes learned from 
customer BGP servers to a route reflector (RR). Customer BGP servers only speak 
IPv4 BGP, so my OpenBSD bgpd needs to add different route-distinguisher and 
route-target to the dynamic routes learned from each customer BGP neighbor 
before forwarding to RR. As I understand, I should be able to use rdomain to 
implement this. What I really need conceptually is to attach a BGP neighbor to 
a rdomain, so that dynamic routes learned from that BGP neighbor are added to 
the specified rdomain.  But I failed to find a way to do this in OpenBSD. Does 
anyone know if this is possible and give me an BGP configure example?

Many thanks in advance,
 
-Yang