WWW.XUEXIZU.COM
IPA-task packet002:BGP选路原则
实验二:BGP选路原则
实验目标:调试和观察BGP的选路原则 实验TOP:
物理拓扑
天津汤姆一通互联网技术训练中心
WWW.XUEXIZU.COM
逻辑拓扑
基本配置: R1 !
hostname R1 !
no ip domain lookup !
interface Loopback0
ip address 1.1.1.1 255.255.255.0 !
interface Loopback10
ip address 10.10.10.10 255.255.255.0 ip ospf network point-to-point !
interface Ethernet0/0
ip address 10.1.1.1 255.255.255.0 !
interface Serial1/0
ip address 12.1.1.1 255.255.255.0 serial restart-delay 0
天津汤姆一通互联网技术训练中心
WWW.XUEXIZU.COM
clock rate 64000 !
interface Serial2/0
ip address 13.1.1.1 255.255.255.0 serial restart-delay 0 !
router ospf 10 router-id 1.1.1.1
log-adjacency-changes
network 10.1.1.0 0.0.0.255 area 0 network 10.10.10.0 0.0.0.255 area 0 network 12.1.1.0 0.0.0.255 area 0 network 13.1.1.0 0.0.0.255 area 0 !
router bgp 1
no synchronization bgp router-id 1.1.1.1
bgp log-neighbor-changes
network 1.1.1.0 mask 255.255.255.0 neighbor 10.1.1.4 remote-as 345 neighbor 12.1.1.2 remote-as 2 neighbor 13.1.1.3 remote-as 345 no auto-summary !
ip classless
no ip http server
no ip http secure-server ! !
line con 0
exec-timeout 0 0 logging synchronous line aux 0 line vty 0 4 ! end R2 !
hostname R2 !
天津汤姆一通互联网技术训练中心
WWW.XUEXIZU.COM
no ip domain lookup ! !
interface Loopback0
ip address 2.2.2.2 255.255.255.0 !
interface Loopback10
ip address 20.20.20.20 255.255.255.0 ip ospf network point-to-point !
interface Ethernet0/0 no ip address shutdown !
interface Serial1/0
ip address 24.1.1.2 255.255.255.0 serial restart-delay 0 clock rate 64000 !
interface Serial2/0
ip address 12.1.1.2 255.255.255.0 serial restart-delay 0 !
router ospf 10 router-id 2.2.2.2
log-adjacency-changes
network 12.1.1.0 0.0.0.255 area 0 network 20.20.20.0 0.0.0.255 area 0 network 24.1.1.0 0.0.0.255 area 0 !
router bgp 2
no synchronization bgp router-id 2.2.2.2
bgp log-neighbor-changes
network 2.2.2.0 mask 255.255.255.0 neighbor 12.1.1.1 remote-as 1 neighbor 24.1.1.4 remote-as 345 no auto-summary !
ip classless
no ip http server
no ip http secure-server ! !
天津汤姆一通互联网技术训练中心
WWW.XUEXIZU.COM
! ! !
line con 0
exec-timeout 0 0 logging synchronous line aux 0 line vty 0 4 ! end R3 !
hostname R3 !
no ip domain lookup ! !
interface Loopback0
ip address 3.3.3.3 255.255.255.0 !
interface Loopback10
ip address 30.30.30.30 255.255.255.0 ip ospf network point-to-point !
interface Ethernet0/0 no ip address shutdown !
interface Serial1/0
ip address 13.1.1.3 255.255.255.0 serial restart-delay 0 clock rate 64000 !
interface Serial2/0
ip address 35.1.1.3 255.255.255.0 serial restart-delay 0 !
router ospf 10 router-id 3.3.3.3
log-adjacency-changes
天津汤姆一通互联网技术训练中心