background image
Hands-on Lab
309
Hands-on Lab
I
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 10.0.0.0 mask 255.255.255.0
RouterA(config-router)#neighbor 192.16.1.254 remote-as 2
RouterA(config-router)#neighbor 172.16.3.254 remote-as 1
RouterA(config-router)#neighbor 192.16.1.254 weight 10
AS 3
10.1.25.254
AS 2
192.16.1.254
AS 1
172.16.3.254
RouterA
RouterB
RouterC
Copyright ©2001 SYBEX , Inc., Alameda, CA
www.sybex.com