声明:本实验参考拓扑来自【王文杰在线文档库】
实验拓扑【下载】
如下拓扑:
实验需求:
-----------------------------------------
# AR1基础配置
sysname AR1
#
interface GigabitEthernet0/0/0
ip address 123.1.1.1 255.255.255.0
-----------------------------------------
# AR2基础配置
sysname AR2
#
interface GigabitEthernet0/0/0
ip address 123.1.1.2 255.255.255.0
-----------------------------------------
# AR3基础配置
sysname AR3
#
interface Serial1/0/0
link-protocol ppp
ip address 34.1.1.3 255.255.255.0
#
interface Serial1/0/1
link-protocol ppp
ip address 35.1.1.3 255.255.255.0
#
interface GigabitEthernet0/0/0
ip address 123.1.1.3 255.255.255.0
-----------------------------------------
# AR4基础配置
sysname AR4
#
interface Serial1/0/0
link-protocol ppp
ip address 34.1.1.4 255.255.255.0
#
interface GigabitEthernet0/0/0
ip address 46.1.1.4 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 45.1.1.4 255.255.255.0
-----------------------------------------
# AR5基础配置
sysname AR5
#
interface Serial1/0/0
link-protocol ppp
ip address 35.1.1.5 255.255.255.0
#
interface GigabitEthernet0/0/0
ip address 56.1.1.5 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 45.1.1.5 255.255.255.0
-----------------------------------------
# AR6基础配置
interface GigabitEthernet0/0/0
ip address 46.1.1.6 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 56.1.1.6 255.255.255.0
#
interface LoopBack0
ip address 192.168.0.1 255.255.255.0
#
interface LoopBack1
ip address 192.168.1.1 255.255.255.0
#
interface LoopBack2
ip address 192.168.2.1 255.255.255.0
#
interface LoopBack3
ip address 192.168.3.1 255.255.255.0
# AR1配置
[AR1]isis 1
[AR1-isis-1]is-level level-1
[AR1-isis-1]net 49.0001.0000.0000.0001.00
[AR1-isis-1]int g0/0/0
[AR1-GigabitEthernet0/0/0]isis enable 1
# AR2配置
[AR2]isis 1
[AR2-isis-1]is-level level-1
[AR2-isis-1]net 49.0001.0000.0000.0002.00
[AR2-isis-1]int g0/0/0
[AR2-GigabitEthernet0/0/0]isis enable 1
# AR3配置
[AR3]isis 1
[AR3-isis-1]is-level level-1
[AR3-isis-1]net 49.0001.0000.0000.0003.00
[AR3-isis-1]int g0/0/0
[AR3-GigabitEthernet0/0/0]isis enable 1
[AR3-GigabitEthernet0/0/0]int s1/0/0
[AR3-Serial1/0/0]isis enable 1
[AR3-Serial1/0/0]int s1/0/1
[AR3-Serial1/0/1]isis enable 1
# AR4配置
[AR4]isis 1
[AR4-isis-1]is-level level-1-2 //默认即为Level-1-2
[AR4-isis-1]net 49.0001.0000.0000.0004.00
[AR4-isis-1]int s1/0/0
[AR4-Serial1/0/0]isis enable 1
[AR4-Serial1/0/0]int g0/0/1
[AR4-GigabitEthernet0/0/1]isis enable 1
[AR4-GigabitEthernet0/0/1]int g0/0/0
[AR4-GigabitEthernet0/0/0]isis enable 1
# AR5配置
[AR5]isis 1
[AR5-isis-1]is-level level-1-2
[AR5-isis-1]net 49.0001.0000.0000.0005.00
[AR5-isis-1]int s1/0/1
[AR5-Serial1/0/1]isis enable 1
[AR5-Serial1/0/1]int g0/0/0
[AR5-GigabitEthernet0/0/0]isis enable 1
[AR5-GigabitEthernet0/0/0]int g0/0/1
[AR5-GigabitEthernet0/0/1]isis enable 1
# AR6配置
[AR6]isis 1
[AR6-isis-1]is-level level-2
[AR6-isis-1]net 49.0002.0000.0000.0006.00
[AR6-isis-1]int g0/0/0
[AR6-GigabitEthernet0/0/0]isis enable 1
[AR6-GigabitEthernet0/0/0]int g0/0/1
[AR6-GigabitEthernet0/0/1]isis enable 1
# AR1配置
[AR1]int g0/0/0
[AR1-GigabitEthernet0/0/0]isis dis-priority 0
# AR2配置
[AR2]int g0/0/0
[AR2-GigabitEthernet0/0/0]isis dis-priority 0
# AR3查看
[AR3]dis isis int g0/0/0 //查看接口是否为DIS
# AR4配置
[AR4]int g0/0/0
[AR4-GigabitEthernet0/0/0]isis circuit-type p2p
# AR5配置
[AR5]int g0/0/0
[AR5-GigabitEthernet0/0/0]isis circuit-type p2p
# AR6配置
[AR6]int g0/0/0
[AR6-GigabitEthernet0/0/0]isis circuit-type p2p
[AR6-GigabitEthernet0/0/0]int g0/0/1
[AR6-GigabitEthernet0/0/1]isis circuit-type p2p
# AR6查看
[AR6]dis isis int //查看是否存在DIS
# AR4配置
[AR4]int s1/0/0
[AR4-Serial1/0/0]isis cost 5
# AR5配置
[AR5]int s1/0/0
[AR5-Serial1/0/0]isis cost 10
# AR6配置
[AR6]int g0/0/0
[AR6-GigabitEthernet0/0/0]isis cost 50
[AR6-GigabitEthernet0/0/0]int g0/0/1
[AR6-GigabitEthernet0/0/1]isis cost 40
# AR6配置
[AR6]isis 1
[AR6-isis-1]import-route direct tag 100 //ISIS引入直连路由,并标记为100
[AR6-isis-1]cost-style wide //修改路由计算模式
# AR1配置
[AR1]isis 1
[AR1-isis-1]cost-style wide //修改路由计算模式
# AR2配置
[AR2]isis 1
[AR2-isis-1]cost-style wide
# AR3配置
[AR3]isis 1
[AR3-isis-1]cost-style wide
# AR4配置
[AR4]isis 1
[AR4-isis-1]cost-style wide
[AR4-isis-1]import-route isis level-2 into level-1 tag 100
# AR5配置
[AR5]isis 1
[AR5-isis-1]cost-style wide
[AR5-isis-1]import-route isis level-2 into level-1 tag 100
# AR4配置
[AR4]int g0/0/1
[AR4-GigabitEthernet0/0/1]isis circuit-level level-1
# AR5配置
[AR5]int g0/0/1
[AR5-GigabitEthernet0/0/1]isis circuit-level level-1
# AR4配置
[AR4]int g0/0/0
[AR4-GigabitEthernet0/0/0]isis authentication-mode simple plain bad-5
# AR5配置
[AR5]int g0/0/0
[AR5-GigabitEthernet0/0/0]isis authentication-mode simple plain bad-5
# AR6配置
[AR6]int g0/0/0
[AR6-GigabitEthernet0/0/0]isis authentication-mode simple plain bad-5
[AR6-GigabitEthernet0/0/0]int g0/0/1
[AR6-GigabitEthernet0/0/1]isis authentication-mode simple plain bad-5
- 重启接口或重启IS-IS进程,IS-IS关系仍可以建立
- 在AR1上可以查到AR6上的明细路由
以上内容均属原创,如有不详或错误,敬请指出。