Cấu Hình-BGP
Cấu Hình-BGP
Cấu Hình-BGP
----------Step 2: OSPF-------
=====R2=====
router os 1
network 192.168.23.0 0.0.0.255 a 0
network 2.2.2.2 0.0.0.0 a 0
exit
=====R3=====
router os 1
network 192.168.23.0 0.0.0.255 a 0
network 192.168.34.0 0.0.0.255 a 0
network 3.3.3.3 0.0.0.0 a 0
exit
=====R4=====
router os 1
network 192.168.34.0 0.0.0.255 a 0
network 4.4.4.4 0.0.0.0 a 0
exit
---------STep 3: BGP-------
======R1=====
router bgp 10
neighbor 2.2.2.2 remote-as 234
neighbor 2.2.2.2 update-source l1
neighbor 2.2.2.2 ebgp-multihop 2
network 10.10.10.10 mask 255.255.255.255
exit
======R2=====
router bgp 234
neighbor 1.1.1.1 remote-as 10
neighbor 1.1.1.1 update-source l2
neighbor 1.1.1.1 ebgp-multihop
neighbor 3.3.3.3 remote-as 234
neighbor 3.3.3.3 update-source l2
neighbor 4.4.4.4 remote-as 234
neighbor 4.4.4.4 update-source l2
neighbor 3.3.3.3 next-hop-self
neighbor 4.4.4.4 next-hop-self
exit
======R3=====
router bgp 234
neighbor 2.2.2.2 remote-as 234
neighbor 2.2.2.2 update-source l3
neighbor 4.4.4.4 remote-as 234
neighbor 4.4.4.4 update-source l3
end
clear ip bgp 2.2.2.2 soft in
======R4========
router bgp 234
neighbor 5.5.5.5 remote-as 50
neighbor 5.5.5.5 update-source l4
neighbor 5.5.5.5 disable-conected-check
neighbor 3.3.3.3 remote-as 234
neighbor 3.3.3.3 update-source l4
neighbor 2.2.2.2 remote-as 234
neighbor 2.2.2.2 update-source l4
end
clear ip bgp 2.2.2.2 soft in
======R5=====
router bgp 50
neighbor 4.4.4.4 remote-as 234
neighbor 4.4.4.4 update-source l5
neighbor 4.4.4.4 disable-conected-check (Hoac dung ebgp-multihop) )
network 50.50.50.50 mask 255.255.255.255
exit