Configuration Guide Vol. 3


13.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 13-19: 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

The example below shows how to generate BGP4 advertised routes by using 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 172.16.2.2 remote-as 65532

    (config-router)# neighbor 192.168.2.2 remote-as 65531

    Configure the BGP4 peers.

  2. (config-router)# network 192.169.10.0/24

    (config-router)# exit

    Generates a BGP4 advertised route for 192.169.10.0/24 if the route is in the routing table.

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

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

    (config-route-map)# exit

    Specifies the generated BGP4 advertised routes.

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

    (config-route-map)# match protocol bgp

    (config-route-map)# exit

    Specifies the BGP protocol.

  5. (config)# router bgp 65531

    (config-router)# neighbor 172.16.2.2 route-map ADV_NET out

    (config-router)# exit

    Specifies that only the generated BGP4 advertised routes are to be announced to the peer whose remote peer address is 172.16.2.2 (i.e., the learned BGP4 route is not announced).

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

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

    (config-route-map)# exit

    Specifies the generated BGP4 advertised routes.

  7. (config)# router bgp 65531

    (config-router)# neighbor 192.168.2.2 route-map DENY_NET out

    (config-router)# exit

    Specifies that the generated BGP4 advertised routes are not to be announced to the peer whose remote peer address is 192.168.2.2.

(3) Reflecting filter settings in operation

Points to note

The example below shows how to use the clear ip bgp operation command to apply filter settings to generated BGP4 advertised routes.

Command examples

  1. # clear ip bgp * out

    Applies the route filter to BGP4 advertised routes.