background image
Hands-on Lab
Hands-on Lab
n this lab, we will demonstrate a very simple configuration of BGP over
three routers in two autonomous systems using information found in the
graphic below:
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.
RouterA#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
RouterA(config)#router bgp 3
RouterA(config-router)#network mask
RouterA(config-router)#neighbor remote-as 2
RouterA(config-router)#neighbor remote-as 1
RouterA(config-router)#neighbor weight 10
AS 3
AS 2
AS 1
Copyright ©2001 SYBEX , Inc., Alameda, CA