实验拓扑
实验需求
全网通
实验思路
- 配置IP地址
- 启用ISIS协议
- 配置is-is路由器角色
实验步骤
配置IP地址
以R3为例
<Huawei>sys
[Huawei]sys r3
[r3]int l0
[r3-LoopBack0]ip address 3.3.3.3 32
[r3-LoopBack0]int g0/0/0
[r3-GigabitEthernet0/0/0]ip address 23.1.1.2 24
[r3-GigabitEthernet0/0/0]int g0/0/1
[r3-GigabitEthernet0/0/1]ip address 34.1.1.1 24
查看接口以及测试连通性
<r3>dis ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 1
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 23.1.1.2/24 up up
GigabitEthernet0/0/1 34.1.1.1/24 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack0 3.3.3.3/32 up up(s)
NULL0 unassigned up up(s)
<r3>ping 34.1.1.2
PING 34.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 34.1.1.2: bytes=56 Sequence=1 ttl=255 time=50 ms
Reply from 34.1.1.2: bytes=56 Sequence=2 ttl=255 time=20 ms
Reply from 34.1.1.2: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 34.1.1.2: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 34.1.1.2: bytes=56 Sequence=5 ttl=255 time=30 ms
--- 34.1.1.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/30/50 ms
启用ISIS协议
以R1为例:
[R1]isis 1
[R1-isis-1]network-entity 49.0002.1111.1111.1111.00
[R1-isis-1]q
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]isis enable 1
[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]isis enable 1
[R1-GigabitEthernet0/0/0]int l0
[R1-LoopBack0]isis enable 1
[R1-LoopBack0]q
测试:
[R1]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 25 Routes : 27
Destination/Mask Proto Pre Cost Flags NextHop Interface
1.1.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack0
2.2.2.2/32 ISIS-L1 15 10 D 12.1.1.2 GigabitEthernet
0/0/1
3.3.3.3/32 ISIS-L2 15 20 D 12.1.1.2 GigabitEthernet
0/0/1
4.4.4.4/32 ISIS-L2 15 30 D 12.1.1.2 GigabitEthernet
0/0/1
5.5.5.5/32 ISIS-L2 15 40 D 18.1.1.2 GigabitEthernet
0/0/0
ISIS-L2 15 40 D 12.1.1.2 GigabitEthernet
0/0/1
6.6.6.6/32 ISIS-L2 15 30 D 18.1.1.2 GigabitEthernet
0/0/0
7.7.7.7/32 ISIS-L2 15 20 D 18.1.1.2 GigabitEthernet
0/0/0
8.8.8.8/32 ISIS-L1 15 10 D 18.1.1.2 GigabitEthernet
0/0/0
12.1.1.0/24 Direct 0 0 D 12.1.1.1 GigabitEthernet
0/0/1
12.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
12.1.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
18.1.1.0/24 Direct 0 0 D 18.1.1.1 GigabitEthernet
0/0/0
18.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
18.1.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
23.1.1.0/24 ISIS-L1 15 20 D 12.1.1.2 GigabitEthernet
0/0/1
34.1.1.0/24 ISIS-L2 15 30 D 12.1.1.2 GigabitEthernet
0/0/1
45.1.1.0/24 ISIS-L2 15 40 D 12.1.1.2 GigabitEthernet
0/0/1
46.1.1.0/24 ISIS-L2 15 40 D 18.1.1.2 GigabitEthernet
0/0/0
ISIS-L2 15 40 D 12.1.1.2 GigabitEthernet
0/0/1
56.1.1.0/24 ISIS-L2 15 40 D 18.1.1.2 GigabitEthernet
0/0/0
67.1.1.0/24 ISIS-L2 15 30 D 18.1.1.2 GigabitEthernet
0/0/0
78.1.1.0/24 ISIS-L1 15 20 D 18.1.1.2 GigabitEthernet
0/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
配置is-is路由器角色
将R1、R8、R5设置为level 1
将R7设置为 level 2
以r1为例:
[R1]isis 1
[R1-isis-1]is-level level-1