root
Well-Known Member
- Joined
- Dec 31, 2012
- Messages
- 1,153
- Reaction score
- 71
- Points
- 48
I. Sơ đồ
1. Mô hình
2. Yêu cầu
- Thực hiện thiết lập các thiết bị theo mô hình
- Triển khai định tuyến IS-IS để các lớp mạng có thể thấy nhau
II. Triển khai
1. Cấu hình IP
- Trên R1
[TABLE="class: outer_border, width: 500"]
[TR]
[TD]R2(config)#int f0/0
R2(config-if)#ip address 12.12.12.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#int f0/1
R2(config-if)#ip address 23.23.23.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#int loopback0
R2(config-if)#ip address 2.2.2.2 255.255.255.0[/TD]
[/TR]
[/TABLE]
- Trên R3
[TABLE="class: outer_border, width: 500"]
[TR]
[TD]R3(config)#int f0/1
R3(config-if)#ip address 23.23.23.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#int loopback0
R3(config-if)#ip address 3.3.3.3 255.255.255.0[/TD]
[/TR]
[/TABLE]
2. Cấu hình định tuyến IS-IS
- Trên R1: Enable IS-IS trên router và interface
[TABLE="class: outer_border, width: 500"]
[TR]
[TD]R1(config)#router isis
R1(config-router)#net 49.0001.1111.1111.1111.00
R1(config)#int f0/0
R1(config-if)#ip router isis
R1(config-if)#int loopback0
R1(config-if)#ip router isis[/TD]
[/TR]
[/TABLE]
- Trên R2: Tương tự như trên R1
[TABLE="class: outer_border, width: 500"]
[TR]
[TD]R2(config)#router isis
R2(config-router)#net 49.0001.2222.2222.2222.00
R2(config)#int f0/0
R2(config-if)#ip router isis
R2(config-if)#no shutdown
R2(config-if)#int f0/1
R2(config-if)#ip router isis
R2(config-if)#no shutdown
R2(config-if)#int loopback0
R2(config-if)#ip router isis[/TD]
[/TR]
[/TABLE]
- Trên R3
[TABLE="class: outer_border, width: 500"]
[TR]
[TD]R3(config)#router isis
R3(config-router)#net 49.0002.3333.3333.3333.00
R3(config)#int f0/1
R3(config-if)#ip router isis
R3(config-if)#no shutdown
R3(config-if)#int loopback0
R3(config-if)#ip router isis[/TD]
[/TR]
[/TABLE]
3. Kiểm tra
- Kiểm tra bảng định tuyến
[TABLE="class: outer_border, width: 800"]
[TR]
[TD]R1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
i L1 2.2.2.0 [115/20] via 12.12.12.2, FastEthernet0/0
3.0.0.0/24 is subnetted, 1 subnets
i L2 3.3.3.0 [115/30] via 12.12.12.2, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
i L1 23.23.23.0 [115/20] via 12.12.12.2, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
------------------------------------------------------------------------------
R2#sh ip route | begin set
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
i L1 1.1.1.0 [115/20] via 12.12.12.1, FastEthernet0/0
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback0
3.0.0.0/24 is subnetted, 1 subnets
i L2 3.3.3.0 [115/20] via 23.23.23.3, FastEthernet0/1
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
-----------------------------------------------------------------------
R3#sh ip route | begin set
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
i L2 1.1.1.0 [115/30] via 23.23.23.2, FastEthernet0/1
2.0.0.0/24 is subnetted, 1 subnets
i L2 2.2.2.0 [115/20] via 23.23.23.2, FastEthernet0/1
3.0.0.0/24 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Loopback0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
12.0.0.0/24 is subnetted, 1 subnets
i L2 12.12.12.0 [115/20] via 23.23.23.2, FastEthernet0/1
[/TD]
[/TR]
[/TABLE]
- Kiểm tra thông tin CLSN trên Router
[TABLE="class: outer_border, width: 700"]
[TR]
[TD]R2#sh clns neighbors
System Id Interface SNPA State Holdtime Type Protocol
R1 Fa0/0 c200.0f0c.0000 Up 26 L1L2 IS-IS
R3 Fa0/1 c202.150c.0001 Up 8 L2 IS-IS
------------------
R2#sh clns neighbors detail
System Id Interface SNPA State Holdtime Type Protocol
R1 Fa0/0 c200.0f0c.0000 Up 27 L1L2 IS-IS
Area Address(es): 49.0001
IP Address(es): 12.12.12.1*
Uptime: 00:21:08
NSF capable
R3 Fa0/1 c202.150c.0001 Up 7 L2 IS-IS
Area Address(es): 49.0002
IP Address(es): 23.23.23.3*
Uptime: 00:21:07
NSF capable
[/TD]
[/TR]
[/TABLE]
- CLNS ko được thực hiện định tuyến nên nó chỉ hiện thị các kết nối connected
[TABLE="class: outer_border, width: 500"]
[TR]
[TD]R1#sh clns route
Codes: C - connected, S - static, d - DecnetIV
I - ISO-IGRP, i - IS-IS, e - ES-IS
B - BGP, b - eBGP-neighbor
C 49.0001.1111.1111.1111.00 [1/0], Local IS-IS NET
C 49.0001 [2/0], Local IS-IS Area[/TD]
[/TR]
[/TABLE]
- Hiển thị nội dung của IS-IS LSDB
- Hiển thị đường đi tốt nhất trong IS-IS
- Hiển thị các IS-IS neighbor
- Hiện thị bộ tính toán SPF đầy đủ các đường đi cho IS-IS
1. Mô hình
2. Yêu cầu
- Thực hiện thiết lập các thiết bị theo mô hình
- Triển khai định tuyến IS-IS để các lớp mạng có thể thấy nhau
II. Triển khai
1. Cấu hình IP
- Trên R1
[TABLE="class: outer_border, width: 500"]
[TR]
[TD]R1(config)#int f0/0
R1(config-if)#ip address 12.12.12.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#int loopback0
R1(config-if)#ip address 1.1.1.1 255.255.255.0[/TD]
[/TR]
[/TABLE]
- Trên R2[TR]
[TD]R1(config)#int f0/0
R1(config-if)#ip address 12.12.12.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#int loopback0
R1(config-if)#ip address 1.1.1.1 255.255.255.0[/TD]
[/TR]
[/TABLE]
[TABLE="class: outer_border, width: 500"]
[TR]
[TD]R2(config)#int f0/0
R2(config-if)#ip address 12.12.12.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#int f0/1
R2(config-if)#ip address 23.23.23.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#int loopback0
R2(config-if)#ip address 2.2.2.2 255.255.255.0[/TD]
[/TR]
[/TABLE]
[TABLE="class: outer_border, width: 500"]
[TR]
[TD]R3(config)#int f0/1
R3(config-if)#ip address 23.23.23.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#int loopback0
R3(config-if)#ip address 3.3.3.3 255.255.255.0[/TD]
[/TR]
[/TABLE]
- Trên R1: Enable IS-IS trên router và interface
[TABLE="class: outer_border, width: 500"]
[TR]
[TD]R1(config)#router isis
R1(config-router)#net 49.0001.1111.1111.1111.00
R1(config)#int f0/0
R1(config-if)#ip router isis
R1(config-if)#int loopback0
R1(config-if)#ip router isis[/TD]
[/TR]
[/TABLE]
[TABLE="class: outer_border, width: 500"]
[TR]
[TD]R2(config)#router isis
R2(config-router)#net 49.0001.2222.2222.2222.00
R2(config)#int f0/0
R2(config-if)#ip router isis
R2(config-if)#no shutdown
R2(config-if)#int f0/1
R2(config-if)#ip router isis
R2(config-if)#no shutdown
R2(config-if)#int loopback0
R2(config-if)#ip router isis[/TD]
[/TR]
[/TABLE]
[TABLE="class: outer_border, width: 500"]
[TR]
[TD]R3(config)#router isis
R3(config-router)#net 49.0002.3333.3333.3333.00
R3(config)#int f0/1
R3(config-if)#ip router isis
R3(config-if)#no shutdown
R3(config-if)#int loopback0
R3(config-if)#ip router isis[/TD]
[/TR]
[/TABLE]
- Kiểm tra bảng định tuyến
[TABLE="class: outer_border, width: 800"]
[TR]
[TD]R1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
i L1 2.2.2.0 [115/20] via 12.12.12.2, FastEthernet0/0
3.0.0.0/24 is subnetted, 1 subnets
i L2 3.3.3.0 [115/30] via 12.12.12.2, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
i L1 23.23.23.0 [115/20] via 12.12.12.2, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
------------------------------------------------------------------------------
R2#sh ip route | begin set
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
i L1 1.1.1.0 [115/20] via 12.12.12.1, FastEthernet0/0
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback0
3.0.0.0/24 is subnetted, 1 subnets
i L2 3.3.3.0 [115/20] via 23.23.23.3, FastEthernet0/1
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
-----------------------------------------------------------------------
R3#sh ip route | begin set
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
i L2 1.1.1.0 [115/30] via 23.23.23.2, FastEthernet0/1
2.0.0.0/24 is subnetted, 1 subnets
i L2 2.2.2.0 [115/20] via 23.23.23.2, FastEthernet0/1
3.0.0.0/24 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Loopback0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
12.0.0.0/24 is subnetted, 1 subnets
i L2 12.12.12.0 [115/20] via 23.23.23.2, FastEthernet0/1
[/TD]
[/TR]
[/TABLE]
[TABLE="class: outer_border, width: 500"]
[TR]
[TD]R1#sh clns
Global CLNS Information:
2 Interfaces Enabled for CLNS
NET: 49.0001.1111.1111.1111.00
Configuration Timer: 60, Default Holding Timer: 300, Packet Lifetime 64
ERPDU's requested on locally generated packets
Running IS-IS in IP-only mode (CLNS forwarding not allowed)[/TD]
[/TR]
[/TABLE]
- Kiểm tra thông tin các process IS-IS trên Router[TR]
[TD]R1#sh clns
Global CLNS Information:
2 Interfaces Enabled for CLNS
NET: 49.0001.1111.1111.1111.00
Configuration Timer: 60, Default Holding Timer: 300, Packet Lifetime 64
ERPDU's requested on locally generated packets
Running IS-IS in IP-only mode (CLNS forwarding not allowed)[/TD]
[/TR]
[/TABLE]
[TABLE="class: outer_border, width: 500"]
[TR]
[TD]R1#sh clns protocol
IS-IS Router: <Null Tag>
System Id: 1111.1111.1111.00 IS-Type: level-1-2
Manual area address(es):
49.0001
Routing for area address(es):
49.0001
Interfaces supported by IS-IS:
FastEthernet0/0 - IP
Loopback0 - IP
Redistribute:
static (on by default)
Distance for L2 CLNS routes: 110
RRR level: none
Generate narrow metrics: level-1-2
Accept narrow metrics: level-1-2
Generate wide metrics: none
Accept wide metrics: none[/TD]
[/TR]
[/TABLE]
- Hiển thị các neighbor[TR]
[TD]R1#sh clns protocol
IS-IS Router: <Null Tag>
System Id: 1111.1111.1111.00 IS-Type: level-1-2
Manual area address(es):
49.0001
Routing for area address(es):
49.0001
Interfaces supported by IS-IS:
FastEthernet0/0 - IP
Loopback0 - IP
Redistribute:
static (on by default)
Distance for L2 CLNS routes: 110
RRR level: none
Generate narrow metrics: level-1-2
Accept narrow metrics: level-1-2
Generate wide metrics: none
Accept wide metrics: none[/TD]
[/TR]
[/TABLE]
[TABLE="class: outer_border, width: 700"]
[TR]
[TD]R2#sh clns neighbors
System Id Interface SNPA State Holdtime Type Protocol
R1 Fa0/0 c200.0f0c.0000 Up 26 L1L2 IS-IS
R3 Fa0/1 c202.150c.0001 Up 8 L2 IS-IS
------------------
R2#sh clns neighbors detail
System Id Interface SNPA State Holdtime Type Protocol
R1 Fa0/0 c200.0f0c.0000 Up 27 L1L2 IS-IS
Area Address(es): 49.0001
IP Address(es): 12.12.12.1*
Uptime: 00:21:08
NSF capable
R3 Fa0/1 c202.150c.0001 Up 7 L2 IS-IS
Area Address(es): 49.0002
IP Address(es): 23.23.23.3*
Uptime: 00:21:07
NSF capable
[/TD]
[/TR]
[/TABLE]
[TABLE="class: outer_border, width: 500"]
[TR]
[TD]R1#sh clns route
Codes: C - connected, S - static, d - DecnetIV
I - ISO-IGRP, i - IS-IS, e - ES-IS
B - BGP, b - eBGP-neighbor
C 49.0001.1111.1111.1111.00 [1/0], Local IS-IS NET
C 49.0001 [2/0], Local IS-IS Area[/TD]
[/TR]
[/TABLE]
Code:
R1#sh isis database
IS-IS Level-1 Link State Database:
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
R1.00-00 * 0x00000005 0xDD2F 1119 1/0/0
R2.00-00 0x00000005 0x269B 1086 1/0/0
R2.02-00 0x00000002 0x1D37 543 0/0/0
IS-IS Level-2 Link State Database:
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
R1.00-00 * 0x00000005 0xD7AE 1161 0/0/0
R2.00-00 0x00000005 0xC593 1079 0/0/0
R2.02-00 0x00000002 0xAC30 562 0/0/0
R3.00-00 0x00000003 0x0BA6 466 0/0/0
R3.02-00 0x00000002 0x1396 528 0/0/0
Code:
R1#sh isis topology
IS-IS paths to level-1 routers
System Id Metric Next-Hop Interface SNPA
R1 --
R2 10 R2 Fa0/0 c201.0f0c.0
IS-IS paths to level-2 routers
System Id Metric Next-Hop Interface SNPA
R1 --
R2 10 R2 Fa0/0 c201.0f0c.0
R3 20 R2 Fa0/0 c201.0f0c.0
Code:
R1#sh isis neighbors
System Id Type Interface IP Address State Holdtime Circuit Id
R2 L1 Fa0/0 12.12.12.2 UP 9 R2.02
R2 L2 Fa0/0 12.12.12.2 UP 8 R2.02
R1#sh isis neighbors deta
R1#sh isis neighbors detail
System Id Type Interface IP Address State Holdtime Circuit Id
=================================================================
R2 L1 Fa0/0 12.12.12.2 UP 7 R2.02
Area Address(es): 49.0001
SNPA: c201.0f0c.0000
State Changed: 00:29:46
LAN Priority: 64
Format: Phase V
Interface name: FastEthernet0/0
R2 L2 Fa0/0 12.12.12.2 UP 9 R2.02
Area Address(es): 49.0001
SNPA: c201.0f0c.0000
State Changed: 00:29:46
LAN Priority: 64
Format: Phase V
Interface name: FastEthernet0/0
Code:
R1#sh isis spf-log
level 1 SPF log
When Duration Nodes Count First trigger LSP Triggers
00:31:07 8 3 8 R1.00-00 PERIODIC ATTACHFLAG NEWADJ NEWLSP LSPHEADER TLVCONTENT
00:30:57 4 3 1 R1.00-00 LSPHEADER
00:16:09 8 3 1 PERIODIC
00:01:09 8 3 1 PERIODIC
level 2 SPF log
When Duration Nodes Count First trigger LSP Triggers
00:31:09 16 5 8 R1.00-00 PERIODIC NEWADJ NEWLSP TLVCONTENT
00:16:11 8 5 1 PERIODIC
00:01:11 8 5 1 PERIODIC