PREV NEXT INDEX

Avici Systems Inc.


network


Specifies a list of networks advertised as originating in this autonomous system.

Syntax: [no] network network-number [mask network-mask][route-map map-name]

network-number

IP address of the network number in dotted decimal notation. The router advertises this network as originating in the local autonomous system.

network-mask

Network mask.

map-name

Identifies a route-map and applies the specified route map to routes advertised by the network command.

Description: In general, you do not want to redistribute your IGP routes into BGP. Instead, list the networks in your autonomous system using network command and your networks are advertised. Such 'local' networks are directly connected or learned via an IGP.

Use the network command to specify that a network is local to this autonomous system. Use the command multiple times to specify additional networks as originating in this autonomous system. The network(s) you specify must be known to this router and may be learned from dynamic routing, connected routes or static route sources.

Use the mask keyword to identify a network mask. The mask identifies the number of bits in the IP address used as the subnet address.

The bits in the subnet mask and the IP address have a one-to-one correspondence. Bits in the subnet mask are set to 1 if the corresponding bit in the IP address is treated as part of the extended prefix number. For example, to use the entire third octet of the IP address 130.5.5.25 as a subnet number, you specify a subnet mask of 255.255.255.0:

Table 4-2. Bits In Network Subnet mask 
Address Network-prefix Subnet Number Host Number

IP Address:
130.5.5.25

10000010

.00000101

.00000101

.00011001

Mask: 255.255.255.0

11111111

.11111111

.11111111

.00000000

<-- extended network -->

Use the route-map keyword to apply the specified route map to network advertisements.

Route maps consist of a list of match and set commands. The match commands specify match criteria and the set commands specify the action taken if the match criteria are met. You can use the route-map option to modify routing information contained in routing updates. See route-map in the "Routing and Forwarding Policy Commands" chapter for a full list of match and set commands.

Use the no network command to delete an entry.

Factory Default: No networks specified.

Command Mode: Router configuration.

Example 1: In the following example, the network command configures network 10.5.0.0 to originate in this router. The network address is advertised in BGP updates:

router(config)#router bgp 120

router(config-router)#network 10.5.0.0

Example 2: In the following example:

router(config)#route-map ISP4_SETATT permit 10

router(config-route-map)#set weight 45

router(config-route-map)#set community 71

router(config-route-map)#set metric 5

router(config-route-map)#end

router(config)#router bgp 120

router(config-router)#network 10.5.0.0 route-map ISP4_SETATT

Network 10.5.0.0 is advertised as originating in this autonomous system with a weight of 45, a community attribute of 71 and a metric of 5.

Example 3: In the following example, the network command configures the router to advertise network 10.5.1.0.0/16. The /16 indicates that this is a supernet and only the first two octets of the network address are advertised.

router(config)#router bgp 120

router(config-router)#network 10.5.0.0 mask 255.255.0.0

Related Commands: router bgp
router bgp
ip route
show ip bgp
show ip bgp summary


PREV NEXT INDEX

Copyright © 2004 Avici Systems Inc.
Avici® and TSR® is a registered trademark of Avici Systems Inc.
IPriori™, Composite Links™, SSR™, QSR, and NSR® are trademarks of Avici Systems Inc.

   Source File Name: BGP_Nd.fm
    HTML File Name: BGP_Nd48.html
    Last Updated: 05/10/04 at 16:36:55

Please email suggestions and comments to: doc@avici.com