29.5.5 Configuration of BGP4 + advertised route generation
- <Structure of this section>
(1) List of configuration commands
The following tables list the commands used to configure BGP4 + advertised route generation.
Command name |
Description |
---|---|
network |
Specifies the generation of a BGP4+ advertised route. |
(2) Configuring BGP4 + advertised route generation
- Points to note
-
To generate BGP4+ advertised routes, use the network configuration command. To filter the generated routes, specify local in the match route-type command in the route-map.
Command examples
-
(config)# router bgp 65531
(config-router)# bgp router-id 192.168.1.100
(config-router)# neighbor 3ffe:172:16:2::2 remote-as 65532
(config-router)# neighbor 3ffe:192:168:2::2 remote-as 65531
Configure the BGP4+ peers.
-
(config-router)# address-family ipv6
Places the router in config-router-af (ipv6) mode.
-
(config-router-af)# network 3ffe:192:169:10::/64
(config-router-af)# exit
Generates a BGP4+ advertised route for 3ffe:192:169:10::/64 when a route 3ffe:192:169:10::/64 is registered in the routing table.
-
(config)# route-map ADV_NET permit 10
(config-route-map)# match route-type local
(config-route-map)# exit
Specifies the generated BGP4+ advertised routes.
-
(config)# route-map ADV_NET deny 20
(config-route-map)# match protocol bgp
(config-route-map)# exit
Specifies the BGP protocol.
-
(config)# router bgp 65531
(config-router)# address-family ipv6
(config-router-af)# neighbor 3ffe:172:16:2::2 route-map ADV_NET out
(config-router-af)# exit
Specifies that generated BGP4+ advertised routes only are to be advertised to the peer whose remote peer address is 3ffe:172:16:2::2 (learned BGP4+ routes are not advertised).
-
(config)# route-map DENY_NET deny 10
(config-route-map)# match route-type local
(config-route-map)# exit
Specifies the generated BGP4+ advertised routes.
-
(config)# router bgp 65531
(config-router)# address-family ipv6
(config-router-af)# neighbor 3ffe:192:168:2::2 route-map DENY_NET out
Specifies that the generated BGP4+ advertised routes are not to be advertised to the peer whose remote peer address is 3ffe:192:168:2::2.
-
(config-router-af)# neighbor 3ffe:172:16:2::2 activate
(config-router-af)# neighbor 3ffe:192:168:2::2 activate
Enables the IPv6 address family.
(3) Reflecting filter settings in operation
- Points to note
-
The example below shows how to use the clear ipv6 bgp operation command to apply filter settings to generated BGP4+ advertised routes.
Command examples
-
# clear ipv6 bgp * out
Applies the route filter to BGP4+ advertised routes.