< Free Open Study > |
8-35 neighbor { ip-address peer- group - name } weight default-weightSyntax Description:
Purpose: The weight attribute has meaning only to the local router. By default, advertisements received from BGP neighbors have their weight attribute set to 0. This command sets all routes learned from a particular neighbor to the default weight used in the command. Cisco IOS Software Release: 10.0. Peer group support was added in Release 11.0. Configuration Example: Setting the Route Weight for the Local RouterThe following configuration sets the weight of all routes learned from neighbor 10.1.1.2 to 451: Router A interface Serial0 ip address 10.1.1.1 255.255.255.252 ! router bgp 1 neighbor 10.1.1.2 remote-as 2 neighbor 10.1.1.2 weight 451 __________________________________________________________________________ Router B interface Loopback0 ip address 172.16.0.1 255.255.255.0 ! interface Loopback1 ip address 172.16.1.1 255.255.255.0 ! interface Loopback2 ip address 172.16.2.1 255.255.255.0 ! interface Loopback3 ip address 172.16.3.1 255.255.255.0 ! interface Serial0 ip address 10.1.1.2 255.255.255.252 clockrate 64000 ! router bgp 2 network 172.16.0.0 mask 255.255.255.0 network 172.16.1.0 mask 255.255.255.0 network 172.16.2.0 mask 255.255.255.0 network 172.16.3.0 mask 255.255.255.0 neighbor 10.1.1.1 remote-as 1 VerificationVerify the setting of the weight attribute by examining the BGP table on Router A: rtrA# show ip bgp BGP table version is 6, local router ID is 172.17.1.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 172.16.0.0/24 10.1.1.2 0 451 2 i *> 172.16.1.0/24 10.1.1.2 0 451 2 i *> 172.16.2.0/24 10.1.1.2 0 451 2 i *> 172.16.3.0/24 10.1.1.2 0 451 2 i Troubleshooting
|
< Free Open Study > |