summaryrefslogtreecommitdiff
path: root/docs/routing
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2020-02-12 02:44:31 +0700
committerGitHub <noreply@github.com>2020-02-12 02:44:31 +0700
commit03ce8b420c6036abb5162fad69e1a7af752e5e98 (patch)
tree2345ea18a847a13666b4726e2c4232eb70bcb151 /docs/routing
parent2e1d435ec3ea907e3e4dcf591cc21dd67e6987ae (diff)
parent504cf48bf41685fef28bb34c7e5c79967fe940d7 (diff)
downloadvyos-documentation-03ce8b420c6036abb5162fad69e1a7af752e5e98.tar.gz
vyos-documentation-03ce8b420c6036abb5162fad69e1a7af752e5e98.zip
Merge pull request #206 from ganawaj/bgp-patch-1
Added "address-family" to route-map code example
Diffstat (limited to 'docs/routing')
-rw-r--r--docs/routing/bgp.rst12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/routing/bgp.rst b/docs/routing/bgp.rst
index f1c183dc..2c5e7089 100644
--- a/docs/routing/bgp.rst
+++ b/docs/routing/bgp.rst
@@ -301,8 +301,10 @@ Route filter can be applied using a route-map:
set policy route-map AS65535-OUT rule 10 match ip address prefix-list 'AS65535-OUT'
set policy route-map AS65535-OUT rule 10 match ipv6 address prefix-list 'AS65535-OUT'
set policy route-map AS65535-OUT rule 20 action 'permit'
- set protocols bgp 65534 neighbor 2001:db8::2 route-map export 'AS65535-OUT'
- set protocols bgp 65534 neighbor 2001:db8::2 route-map import 'AS65535-IN'
+ set protocols bgp 65534 neighbor 2001:db8::2 address-family ipv4-unicast route-map export 'AS65535-OUT'
+ set protocols bgp 65534 neighbor 2001:db8::2 address-family ipv4-unicast route-map import 'AS65535-IN'
+ set protocols bgp 65534 neighbor 2001:db8::2 address-family ipv6-unicast route-map export 'AS65535-OUT'
+ set protocols bgp 65534 neighbor 2001:db8::2 address-family ipv6-unicast route-map import 'AS65535-IN'
**Node2:**
@@ -324,8 +326,10 @@ Route filter can be applied using a route-map:
set policy route-map AS65534-OUT rule 10 match ip address prefix-list 'AS65534-OUT'
set policy route-map AS65534-OUT rule 10 match ipv6 address prefix-list 'AS65534-OUT'
set policy route-map AS65534-OUT rule 20 action 'permit'
- set protocols bgp 65535 neighbor 2001:db8::1 route-map export 'AS65534-OUT'
- set protocols bgp 65535 neighbor 2001:db8::1 route-map import 'AS65534-IN'
+ set protocols bgp 65535 neighbor 2001:db8::1 address-family ipv4-unicast route-map export 'AS65534-OUT'
+ set protocols bgp 65535 neighbor 2001:db8::1 address-family ipv4-unicast route-map import 'AS65534-IN'
+ set protocols bgp 65535 neighbor 2001:db8::1 address-family ipv6-unicast route-map export 'AS65534-OUT'
+ set protocols bgp 65535 neighbor 2001:db8::1 address-family ipv6-unicast route-map import 'AS65534-IN'
We could expand on this and also deny link local and multicast in the rule 20
action deny.