[Xorp-users] BGP network statements
Mike Horn
mhorn@vyatta.com
Mon, 27 Feb 2006 08:16:14 -0800 (PST)
Hi Calum,
Glad to hear that you were able to get your BGP routes working. The best way to advertise a network into BGP is to use a policy that you then apply to the BGP process (XORP is working on adding the capability to apply policies per-peer). For you example here is what should be done:
<<< CREATE STATIC ROUTE >>>
create protocols static route4 10.20.30.0/24 next-hop A.B.C.D
<<< CREATE POLICY >>>
create policy policy-statement REDIST_STATIC term 1 from protocols static
create policy policy-statement REDIST_STATIC term 1 then accept
(if you want to limit the redistribution to *just* the network discussed add:)
create policy policy-statement REDIST_STATIC term 1 from network4 10.20.30.0/24
<<< commit >>>
I prefer to commit before applying to BGP to make sure if there were any issues with the policy that I can fix them first.
commit
<<< APPLY POLICY TO BGP >>>
create protocols bgp export REDIST_STATIC
commit
Let me know if you have any problems with this configuration in your environment.
-mike
----- Original Message -----
From: Calum <caluml@gmail.com>
To: xorp-users@xorp.org
Sent: Saturday, February 25, 2006 5:01:21 AM GMT-0700
Subject: [Xorp-users] BGP network statements
Hello again,
Since I removed that vif statement, my BGP routes have appeared in my
kernel routing table - which is good news :)
However, I can't work out from the docs how to add a network
10.20.30.0/24 route to be advertised.
I would expect it to be something like create protocols bgp network
10.20.30.0/24, or perhaps peer-specific?
Can anyone tell me where this option lives?
Calum
--
http://zapee.com - Linux virtual servers, IPv4+6 web hosting
A80F D3A0 0EFA 23FE@wwwkeys.eu.pgp.net
_______________________________________________
Xorp-users mailing list
Xorp-users@xorp.org
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users