network

Syntax

network <IPV4/MASK> [route-map <ROUTE-MAP-NAME>]

no network <IPV4/MASK> [route-map <ROUTE-MAP-NAME>]

Description

Specifies the networks to be advertised by the Border Gateway Protocol (BGP) routing processes.

The no form of this command removes an entry from the routing table.

Command context

config-router

Parameters

ipv4/mask

Specifies the network with mask. For example: 1.1.1.1/24

route-map <ROUTE-MAP-NAME>

Optional parameter. Specifies a route-map to apply to the prefixes advertised by this specific network statement.

Authority

Administrators

Usage

  • This command is used to advertise prefixes currently installed in the routing table into the BGP table.

  • Use the route-map keyword to apply the specified route map to network advertisements. The mask length as configured in the network statement must match the mask length of prefixes in the routing table.

Examples

switch(config-router)# network 11.11.11.0/24
switch(config-router)# no network 11.11.11.0/24