BGP experiment (1)
Topology
Address configuration first
Then enable IGP (ospf) protocol in AS2
and configure BGP
AS1 and AS2 use ports to establish neighbors
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
R23456 uses loopback to establish neighbors
R5-R6 also need to write static routing,
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
The experiment is now complete, check the results