is-is+BGP做城域网技术
一.拓扑图。
二.实验步骤。
1.配ip地址。
---------------------------------------R1--------------------------------------
conf t
int fa0/0
ip add 202.106.13.1 255.255.255.0
no shut
int fa0/1
ip add 202.106.14.1 255.255.255.0
no shut
int loo 0
ip add 1.1.1.1 255.255.255.255
no shut
int loo 10
ip add 10.0.0.1 255.255.255.0
no shut
----------------------------------------R2-------------------------------------
conf t
int fa0/0
ip add 202.106.24.2 255.255.255.0
no shut
int fa0/1
ip add 202.106.23.2 255.255.255.0
no shut
int loo 0
ip add 2.2.2.2 255.255.255.255
no shut
----------------------------------------R3-------------------------------------
conf t
int fa0/0
ip add 202.106.13.3 255.255.255.0
no shut
int fa1/0
ip add 202.106.23.3 255.255.255.0
no shut
int fa0/1
ip add 202.106.34.3 255.255.255.0
no shut
int fa2/0
ip add 202.106.35.3 255.255.255.0
no shut
int loo 0
ip add 3.3.3.3 255.255.255.255
no shut
----------------------------------------R4-------------------------------------
conf t
int fa1/0
ip add 202.106.24.4 255.255.255.0
no shut
int fa0/0
ip add 202.106.14.4 255.255.255.0
no shut
int fa0/1
ip add 202.106.34.4 255.255.255.0
no shut
int fa2/0
ip add 202.106.46.4 255.255.255.0
no shut
int loo 0
ip add 4.4.4.4 255.255.255.255
no shut
----------------------------------------R5-------------------------------------
conf t
int fa0/0
ip add 202.106.35.5 255.255.255.0
no shut
int fa0/1
ip add 202.106.56.5 255.255.255.0
no shut
int fa1/0
ip add 202.106.57.5 255.255.255.0
no shut
int loo 0
ip add 5.5.5.5 255.255.255.255
no shut
----------------------------------------R6-------------------------------------
conf t
int fa0/0
ip add 202.106.56.6 255.255.255.0
no shut
int fa0/1
ip add 202.106.46.6 255.255.255.0
no shut
int fa1/0
ip add 202.106.68.6 255.255.255.0
no shut
int loo 0
ip add 6.6.6.6 255.255.255.255
no shut
----------------------------------------R7-------------------------------------
conf t
int fa0/0
ip add 202.106.57.7 255.255.255.0
no shut
int fa0/1
ip add 202.106.78.7 255.255.255.0
no shut
int loo 0
ip add 7.7.7.7 255.255.255.255
no shut
----------------------------------------R8-------------------------------------
conf t
int fa0/0
ip add 202.168.78.8 255.255.255.0
no shut
int fa0/1
ip add 202.106.68.8 255.255.255.0
no shut
int loo 0
ip add 8.8.8.8 255.255.255.255
no shut
int loo 50
ip add 50.0.0.1 255.255.255.0
no shut
2.配置is-is。
----------------------------------------R1-------------------------------------
R1(config)#router isis
R1(config-router)#net 49.0010.0100.1001.00
R1(config-router)#is-type level-2-only
R1(config-router)#ex
R1(config)#int range fa0/0 -1 ,loo 0
R1(config-if-range)#ip router isis
----------------------------------------R2-------------------------------------
R2(config)#router isis
R2(config-router)#net 49.0020.0200.2002.00
R2(config-router)#is-type level-2-only
R2(config-router)#ex
R2(config)#int range fa0/0 -1 , loo 0
R2(config-if-range)#ip router isis
----------------------------------------R3-------------------------------------
R3(config)#router isis
R3(config-router)#net 49.0030.0300.3003.00
R3(config-router)#is-type level-2-only
R3(config-router)#ex
R3(config)#int range fa0/0 -1 , fa1/0 , fa2/0 , loo 0
R3(config-if-range)#ip router isis
----------------------------------------R4-------------------------------------
R4(config)#router isis
R4(config-router)#net 49.0040.0400.4004.00
R4(config-router)#is-type level-2-only
R4(config-router)#ex
R4(config)#int range fa0/0 -1 ,fa1/0 ,fa2/0 ,loo 0
R4(config-if-range)#ip router isis
----------------------------------------R5-------------------------------------
R5(config)#router isis
R5(config-router)#net 49.0050.0500.5005.00
R5(config-router)#is-type level-2-only
R5(config-router)#ex
R5(config)#int range fa0/0 -1 ,fa1/0 , loo 0
R5(config-if-range)#ip router isis
----------------------------------------R6-------------------------------------
R6(config)#router isis
R6(config-router)#net 49.0060.0600.6006.00
R6(config-router)#is-type level-2-only
R6(config-router)#ex
R6(config)#int range fa0/0 -1 ,fa1/0 ,loo 0
R6(config-if-range)#ip router isis
----------------------------------------R7-------------------------------------
R7(config)#router isis
R7(config-router)#net 49.0070.0700.7007.00
R7(config-router)#is-type level-2-only
R7(config-router)#ex
R7(config)#int range fa0/1 , loo 0
R7(config-if-range)#ip router isis
----------------------------------------R8-------------------------------------
R8(config)#router isis
R8(config-router)#net 49.0080.0800.8008.00
R8(config-router)#is-type level-2-only
R8(config-router)#ex
R8(config)#int range fa0/0 , loo 0
R8(config-if-range)#ip router isis
3.配置BGP。----------------------------------------R1-------------------------------------
R1(config)#router bgp 65001
R1(config-router)#bgp router-id 1.1.1.1
R1(config-router)#neighbor 3.3.3.3 remote-as 65001
R1(config-router)#neighbor 3.3.3.3 update-source loo 0
R1(config-router)#neighbor 4.4.4.4 remote-as 65001
R1(config-router)#neighbor 4.4.4.4 update-source loo 0
R1(config-router)#neighbor 5.5.5.5 remote-as 65001
R1(config-router)#neighbor 5.5.5.5 update-source loo 0
R1(config-router)#neighbor 6.6.6.6 remote-as 65001
R1(config-router)#neighbor 6.6.6.6 update-source loo 0
R1(config-router)#network 10.0.0.0 mask 255.255.255.0
----------------------------------------R2-------------------------------------
R2(config)#router bgp 65001
R2(config-router)#bgp router-id 2.2.2.2
R2(config-router)#neighbor 3.3.3.3 remote-as 65001
R2(config-router)#neighbor 3.3.3.3 update-source loopback 0
R2(config-router)#neighbor 4.4.4.4 remote-as 65001
R2(config-router)#neighbor 4.4.4.4 update-source loo 0
R2(config-router)#neighbor 5.5.5.5 remote-as 65001
R2(config-router)#neighbor 5.5.5.5 update-source loo 0
R2(config-router)#neighbor 6.6.6.6 remote-as 65001
R2(config-router)#neighbor 6.6.6.6 update-source loo 0
----------------------------------------R3-------------------------------------
R3(config)#router bgp 65001
R3(config-router)#bgp router-id 3.3.3.3
R3(config-router)#neighbor 1.1.1.1 remote-as 65001
R3(config-router)#neighbor 1.1.1.1 update-source loo 0
R3(config-router)#neighbor 1.1.1.1 route-reflector-client
R3(config-router)#neighbor 2.2.2.2 remote-as 65001
R3(config-router)#neighbor 2.2.2.2 update-source loo 0
R3(config-router)#neighbor 2.2.2.2 route-reflector-client
R3(config-router)#neighbor 4.4.4.4 remote-as 65001
R3(config-router)#neighbor 4.4.4.4 update-source loo 0
R3(config-router)#neighbor 5.5.5.5 remote-as 65001
R3(config-router)#neighbor 5.5.5.5 update-source loo 0
R3(config-router)#neighbor 6.6.6.6 remote-as 65001
R3(config-router)#neighbor 6.6.6.6 update-source loo 0
R3(config-router)#bgp cluster-id 111
----------------------------------------R4-------------------------------------
R4(config)#router bgp 65001
R4(config-router)#bgp router-id 4.4.4.4
R4(config-router)#neighbor 1.1.1.1 remote-as 65001
R4(config-router)#neighbor 1.1.1.1 update-source loopback 0
R4(config-router)#neighbor 1.1.1.1 route-reflector-client
R4(config-router)#neighbor 2.2.2.2 remote-as 65001
R4(config-router)#neighbor 2.2.2.2 update-source loo 0
R4(config-router)#neighbor 2.2.2.2 route-reflector-client
R4(config-router)#neighbor 3.3.3.3 remote-as 65001
R4(config-router)#neighbor 3.3.3.3 update-source loo 0
R4(config-router)#neighbor 5.5.5.5 remote-as 65001
R4(config-router)#neighbor 5.5.5.5 update-source loopback 0
R4(config-router)#neighbor 6.6.6.6 remote-as 65001
R4(config-router)#neighbor 6.6.6.6 update-source loo 0
R4(config-router)#bgp cluster-id 111
----------------------------------------R5-------------------------------------
R5(config)#router bgp 65001
R5(config-router)#bgp router-id 5.5.5.5
R5(config-router)#neighbor 1.1.1.1 remote-as 65001
R5(config-router)#neighbor 1.1.1.1 update-source loo 0
R5(config-router)#neighbor 2.2.2.2 remote-as 65001
R5(config-router)#neighbor 2.2.2.2 update-source loo 0
R5(config-router)#neighbor 3.3.3.3 remote-as 65001
R5(config-router)#neighbor 3.3.3.3 update-source loo 0
R5(config-router)#neighbor 3.3.3.3 route-reflector-client
R5(config-router)#neighbor 4.4.4.4 remote-as 65001
R5(config-router)#neighbor 4.4.4.4 update-source loo 0
R5(config-router)#neighbor 4.4.4.4 route-reflector-client
R5(config-router)#neighbor 6.6.6.6 remote-as 65001
R5(config-router)#neighbor 6.6.6.6 update-source loo 0
R5(config-router)#bgp cluster-id 222
R5(config-router)#neighbor 7.7.7.7 remote-as 65002
R5(config-router)#neighbor 7.7.7.7 update-source loo 0
R5(config-router)#neighbor 1.1.1.1 next-hop-self
R5(config-router)#neighbor 2.2.2.2 next-hop-self
R5(config-router)#neighbor 3.3.3.3 next-hop-self
R5(config-router)#neighbor 7.7.7.7 ebgp-multihop 2
R5(config)#ip route 7.7.7.7 255.255.255.255 202.106.57.7
----------------------------------------R6-------------------------------------
R6(config)#router bgp 65001
R6(config-router)#bgp router-id 6.6.6.6
R6(config-router)#neighbor 1.1.1.1 remote-as 65001
R6(config-router)#neighbor 1.1.1.1 update-source loo 0
R6(config-router)#neighbor 2.2.2.2 remote-as 65001
R6(config-router)#neighbor 2.2.2.2 update-source loo 0
R6(config-router)#neighbor 3.3.3.3 remote-as 65001
R6(config-router)#neighbor 3.3.3.3 update-source loo 0
R6(config-router)#neighbor 3.3.3.3 route-reflector-client
R6(config-router)#neighbor 4.4.4.4 remote-as 65001
R6(config-router)#neighbor 4.4.4.4 update-source loo 0
R6(config-router)#neighbor 4.4.4.4 route-reflector-client
R6(config-router)#neighbor 5.5.5.5 remote-as 65001
R6(config-router)#neighbor 5.5.5.5 update-source loo 0
R6(config-router)#bgp cluster-id 222
R6(config-router)#neighbor 8.8.8.8 remote-as 65002
R6(config-router)#neighbor 8.8.8.8 update-source loo 0
R6(config-router)#neighbor 1.1.1.1 next-hop-self
R6(config-router)#neighbor 2.2.2.2 next-hop-self
R6(config-router)#neighbor 4.4.4.4 next-hop-self
R6(config-router)#neighbor 8.8.8.8 ebgp-multihop 2
R6(config)#ip route 8.8.8.8 255.255.255.255 202.106.68.8
----------------------------------------R7-------------------------------------
R7(config)#router bgp 65002
R7(config-router)#bgp router-id 7.7.7.7
R7(config-router)#neighbor 8.8.8.8 remote-as 65002
R7(config-router)#neighbor 8.8.8.8 update-source loo 0
R7(config-router)#neighbor 5.5.5.5 remote-as 65001
R7(config-router)#neighbor 5.5.5.5 update-source loo 0
R7(config-router)#neighbor 5.5.5.5 ebgp-multihop 2
R7(config)#ip route 5.5.5.5 255.255.255.255 202.106.57.5
----------------------------------------R8-------------------------------------
R8(config)#router bgp 65002
R8(config-router)#bgp router-id 8.8.8
R8(config-router)#neighbor 7.7.7.7 remote-as 65002
R8(config-router)#neighbor 7.7.7.7 update-source loo 0
R8(config-router)#neighbor 6.6.6.6 remote-as 65001
R8(config-router)#neighbor 6.6.6.6 update-source l
R8(config-router)#neighbor 6.6.6.6 ebgp-multihop 2
R8(config-if)#ex
R8(config)#ip route 6.6.6.6 255.255.255.255 202.106.68.6
R8(config-router)#network 50.0.0.0 mask 255.255.255.0
四.拼。
1.在R1上查看BGP邻居关系表。
2.在R1上拼R8的50.0.0.1。
3.在R8上拼R1的10.0.0.1。