Configuration Guide Vol. 3


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.

Table 29-13: List of configuration commands

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

  1. (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.

  2. (config-router)# address-family ipv6

    Places the router in config-router-af (ipv6) mode.

  3. (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.

  4. (config)# route-map ADV_NET permit 10

    (config-route-map)# match route-type local

    (config-route-map)# exit

    Specifies the generated BGP4+ advertised routes.

  5. (config)# route-map ADV_NET deny 20

    (config-route-map)# match protocol bgp

    (config-route-map)# exit

    Specifies the BGP protocol.

  6. (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).

  7. (config)# route-map DENY_NET deny 10

    (config-route-map)# match route-type local

    (config-route-map)# exit

    Specifies the generated BGP4+ advertised routes.

  8. (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.

  9. (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

  1. # clear ipv6 bgp * out

    Applies the route filter to BGP4+ advertised routes.