BGP experiment (1)

BGP experiment (1)

Topology
Insert picture description here

Address configuration first

Then enable IGP (ospf) protocol in AS2
and configure BGP

AS1 and AS2 use ports to establish neighbors

Insert picture description here

Federal R2 and R3 are used in AS2, R4 and R5 are 64512 and 64513 respectively

****************AS2*****************************************************************
bgp 64512
 router-id 2.2.2.2
 confederation id 2
 peer 12.1.1.1 as-number 1 

R2 and R3 build neighbors

peer 3.3.3.3 as-number 64512 
 peer 3.3.3.3 connect-interface LoopBack0
 peer 3.3.3.3 next-hop-local 

Insert picture description here

R23456 uses loopback to establish neighbors

R5-R6 also need to write static routing,
Insert picture description here
Insert picture description here
here you need to pay attention to write static use 32-bit loopback

Declare R1 loopback address, R6 loopback address, here change the loopback ospf network type to broadcast

Then modify the next hop to the local address on R2

  peer 3.3.3.3 next-hop-local 
  peer 4.4.4.4 next-hop-local

Then announce the loopback addresses of R2-R5 on R2 and R5 respectively
Respectively on R3R4
Insert picture description here

The experiment is now complete, check the results

Insert picture description here
Insert picture description here

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_43710889/article/details/109278437