beautypg.com

74 network – CANOGA PERKINS 9175 Command Reference User Manual

Page 294

background image

CanogaOS Command Reference

16-49

Command Mode

Router mode

Usage

Use this command to specify a weight value to all routes learned from a neighbor. The route with the highest

weight gets preference when there are other routes on the network.

Unlike the local-preference attribute, the weight attribute is relevant only to the local router.

The weights assigned using the set weight command overrides the weights assigned using this command.

Examples

Switch# configure terminal

Switch(config)# router bgp 12

Switch(config-router)# neighbor 10.10.10.10 weight 60

16.74 network

Use this command to specify the networks to be advertised by the BGP routing process. A unicast network

address without a mask is accepted if it falls into the natural boundary of its class. A class-boundary mask is

derived if the address matches its natural class-boundary.

Use the no form of this command to remove a network route entry.

Command Syntax

[no] network A.B.C.D

A.B.C.D IP prefix , e.g., 35.0.0.0

[no] network A.B.C.D route-map WORD

A.B.C.D IP prefix , e.g., 35.0.0.0

WORD Name of the route map

Command Mode

Router mode and IPv4-Unicast Address-family mode

Examples

The following example illustrates a Class-A address configured as a network route. The natural Class-A

network prefix mask length of 8 will be internally derived, that is, 2.0.0.0/8.

Switch(config)#router bgp 1

Switch(config-router)#network 2.0.0.0

Switch#show run

!

router bgp 1

no synchronization

network 1.0.0.0

!

The following example illustrates a network address which does not fall into its