n this lab, we will demonstrate a very simple configuration of BGP over
three routers in two autonomous systems using information found in the
Let's look at the following objectives:
On each router, enable BGP with its autonomous system number.
Identify the network each resides in.
Identify both of each router's neighbors and the AS they reside in.
Assign the Weight attribute to each neighbor, giving any router in AS 2 a
Weight of 10 and the rest a Weight of 1.
Let's now look at an example of the configuration of all three routers,
which are identified by the hostname on each router.
Enter configuration commands, one per line. End with CNTL/Z.
RouterA(config)#router bgp 3
RouterA(config-router)#network 10.0.0.0 mask 255.255.255.0
RouterA(config-router)#neighbor 126.96.36.199 remote-as 2
RouterA(config-router)#neighbor 172.16.3.254 remote-as 1
RouterA(config-router)#neighbor 188.8.131.52 weight 10
Copyright ©2001 SYBEX , Inc., Alameda, CA