You are on page 1of 8

Experiment 6

BORDER GATEWAY PROTOCAL


Aim: Configure peering between R1, R2, R3, R4 with the below configuration
i. Peering to be established using the loop 0 ip address x.0.0.1 of every router.
ii. Make use that the authentication is established between all the peers and they should use
password “sjce123”
iii. The peering should established only if the routers runs BGPv4.
iv. Use minimum commands as possible (peer group).
v. Configure BGP as OSPF area to provide reusability between loopbacks.
vi. Advertise only LAN between only in BGP.

Tool Used: GNS3


Given network:

Figure 1

Procedure:
 Connection were made as per given network in Figure 1.
 IPv4 address is assigned to all the ports of routers.
 The IPv4 address with gateway address is assigned to hosts.
Assign IP address to PCs:
IP address 10.0.0.2, 20.0.0.2, 40.0.0.2, 30.0.0.2 were assigned to PC1, PC2, PC3 and PC4
respectively.
Assign IP address to routers:
Router 1:
Router > enable
Router #config terminal
Router(config) # int f0
Router(config-if) # ip address 20.0.0.1 255.0.0.0
Router(config-if) # no shut
Router(config-if) # int s0
Router(config-if) # ip address 1.1.1.2 255.255.255.252
Router(config-if) # no shut
Router(config-if) # int s1
Router(config-if) # ip address 2.2.2.1 255.255.255.252
Router(config-if) # no shut
Router(config-if) # int loopback0
Router(config-if) #ip address 12.0.0.1 255.0.0.0
Router(config-if) #no shut
Router(config_if)#exit
Router 2:
Router > enable
Router #config terminal
Router(config) # int f0
Router(config-if) # ip address 10.0.0.1 255.0.0.0
Router(config-if) # no shut
Router(config-if) # int s0
Router(config-if) # ip address 1.1.1.1 255.255.255.252
Router(config-if) # no shut
Router(config-if) # int s1
Router(config-if) # ip address 4.4.4.2 255.255.255.252
Router(config-if) # no shut
Router(config-if) # int loopback0
Router(config-if) #ip address 10.0.0.1 255.0.0.0
Router(config-if) #no shut
Router(config_if)#exit
Router 3:
Router > enable
Router #config terminal
Router(config) # int f0
Router(config-if) # ip address 40.0.0.1 255.0.0.0
Router(config-if) # no shut
Router(config-if) # int s0
Router(config-if) # ip address 3.3.3.2 255.255.255.252
Router(config-if) # no shut
Router(config-if) # int s1
Router(config-if) # ip address 4.4.4.1 255.255.255.252
Router(config-if) # no shut
Router(config-if) # int loopback0
Router(config-if) #ip address 14.0.0.1 255.0.0.0
Router(config-if) #no shut
Router(config_if)#exit
Router 4:
Router > enable
Router #config terminal
Router(config) # int f0
Router(config-if) # ip address 30.0.0.1 255.0.0.0
Router(config-if) # no shut
Router(config-if) # int s1
Router(config-if) # ip address 2.2.2.2 255.255.255.252
Router(config-if) # no shut
Router(config_if)#exit
Router(config-if) # int s0
Router(config-if) # ip address 3.3.3.1 255.255.255.252
Router(config-if) # no shut
Router(config-if) # int loopback0
Router(config-if) #ip address 13.0.0.1 255.0.0.0
Router(config-if) #no shut
Router(config_if)#exit

To configure IBGP routing:


Router 2:
Router(config) # router bgp 500
Router(config-router)# neighbor SJCE peer group
Router(config-router)# neighbor SJCE remote 500
Router(config-router)# neighbor SJCE update source loopback 0
Router(config-router)# neighbor SJCE password SJCE123
Router(config-router)# neighbor SJCE ver 4
Router(config-router)# no sync
Router(config-router)# no auto-summary
Router(config-router)# neighbor 12.0.0.1 peer SJCE
Router(config-router)# neighbor 13.0.0.1 peer SJCE
Router(config-router)# neighbor 14.0.0.1 peer SJCE
Router(config-router)# network 10.0.0.0
Router(config-router)#exit
Router(config)#router ospf 500
Router(config-router)#network 10.0.0.0 0.255.255.255 area 0
Router(config-router)#network 1.0.0.0 0.0.0.3 area 0
Router(config-router)#network 4.0.0.0 0.0.0.3 area 0
Router(config-router)#network 11.0.0.0 0.255.255.255 area 0
Router(config-router)#exit
Router 1:
Router(config) # router bgp 500
Router(config-router)# neighbor SJCE peer group
Router(config-router)# neighbor SJCE remote 500
Router(config-router)# neighbor SJCE update source loopback 0
Router(config-router)# neighbor SJCE password SJCE123
Router(config-router)# neighbor SJCE ver 4
Router(config-router)# no sync
Router(config-router)# no auto-summary
Router(config-router)# neighbor 11.0.0.1 peer SJCE
Router(config-router)# neighbor 13.0.0.1 peer SJCE
Router(config-router)# neighbor 14.0.0.1 peer SJCE
Router(config-router)# network 20.0.0.0
Router(config-router)#exit
Router(config)#router ospf 500
Router(config-router)#network 20.0.0.0 0.255.255.255 area 0
Router(config-router)#network 1.0.0.0 0.0.0.3 area 0
Router(config-router)#network 2.0.0.0 0.0.0.3 area 0
Router(config-router)#network 12.0.0.0 0.255.255.255 area 0
Router(config-router)#exit
Router 2:
Router(config) # router bgp 500
Router(config-router)# neighbor SJCE peer group
Router(config-router)# neighbor SJCE remote 500
Router(config-router)# neighbor SJCE update source loopback 0
Router(config-router)# neighbor SJCE password SJCE123
Router(config-router)# neighbor SJCE ver 4
Router(config-router)# no sync
Router(config-router)# no auto-summary
Router(config-router)# neighbor 12.0.0.1 peer SJCE
Router(config-router)# neighbor 11.0.0.1 peer SJCE
Router(config-router)# neighbor 14.0.0.1 peer SJCE
Router(config-router)# network 30.0.0.0
Router(config-router)#exit
Router(config)#router ospf 500
Router(config-router)#network 30.0.0.0 0.255.255.255 area 0
Router(config-router)#network 2.0.0.0 0.0.0.3 area 0
Router(config-router)#network 3.0.0.0 0.0.0.3 area 0
Router(config-router)#network 13.0.0.0 0.255.255.255 area 0
Router(config-router)#exit

Router 4:
Router(config) # router bgp 500
Router(config-router)# neighbor SJCE peer group
Router(config-router)# neighbor SJCE remote 500
Router(config-router)# neighbor SJCE update source loopback 0
Router(config-router)# neighbor SJCE password SJCE123
Router(config-router)# neighbor SJCE ver 4
Router(config-router)# no sync
Router(config-router)# no auto-summary
Router(config-router)# neighbor 12.0.0.1 peer SJCE
Router(config-router)# neighbor 13.0.0.1 peer SJCE
Router(config-router)# neighbor 11.0.0.1 peer SJCE
Router(config-router)# network 10.0.0.0
Router(config)#router ospf 500
Router(config-router)#network 40.0.0.0 0.255.255.255 area 0
Router(config-router)#network 3.0.0.0 0.0.0.3 area 0
Router(config-router)#network 4.0.0.0 0.0.0.3 area 0
Router(config-router)#network 14.0.0.0 0.255.255.255 area 0
Router(config-router)#exit

Result:

Network 1 – Results
Inference

 The given network was build up in the tool GNS3.


 Number of instructions that were to be given for configuring the network was reduced.
 The use of password in bgp version 4 enabled the encryption of the packets.
 BGP is mainly used as a connection in between the autonomous systems.
 Loop back address is configured which comes into picture when the physical link of the
network goes down hence helping in routing the network.

You might also like