华为路由器IS-IS基本配置实例
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
华为路由器IS-IS基本配置实例
组网需求
如图1所示:
•S-switch-A、S-switch-B、S-switch-C和S-switch-D属于同一自治系统,要求他们之间通过IS-IS协议达到IP网络互连的目的。
•S-switch-A、S-switch-B和S-switch-C的区域号是10,S-switch-D的区域号是20。
•S-switch-A和S-switch-B是Level-1设备,S-switch-C是Level-1-2设备,S-switch-D是Level-2设备。
图1 IS-IS基本配置组网图
S-switch接口对应的VLANIF IP地址
S-switch-A GE 0/0/1VLANIF 1010.1.1.2/24
S-switch-B GE 0/0/1VLANIF 2010.1.2.2/24
S-switch-C GE 0/0/1VLANIF 1010.1.1.1/24
配置思路
采用如下的思路配置IS-IS的基本功能:
1.配置各物理接口所属的VLAN。
2.配置各VLANIF接口的IP地址。
3.在各S-switch上运行IS-IS进程,指定网络实体,配置level级别。
4.查看各S-switch的IS-IS数据库信息及路由表信息。
数据准备
为完成此配置例,需准备如下的数据:
•各接口所属的VLAN ID,具体数据如图1所示。
•各VLANIF接口的IP地址,具体数据如图1所示。
•四台S-switch的system id、级别和所属区域号。
▪S-switch-A的system id 0000.0000.0001,区域号Area10,为Level-1设备。
▪S-switch-B的system id 0000.0000.0002,区域号Area10,为Level-1设备。
▪S-switch-C的system id 0000.0000.0003,区域号Area10,为Level-1-2设备。
▪S-switch-D的system id 0000.0000.0004,区域号Area20,为Level-2设备。
配置步骤
1.配置各接口所属的VLAN ID(略)
2.配置各VLANIF接口的IP地址(略)
3. 在各S-switch上运行IS-IS进程,指定网络实体,配置level级别
# 配置S-switch-A。
[S-switch-A] isis 1
[S-switch-A-isis-1] is-level level-1
[S-switch-A-isis-1] network-entity 10.0000.0000.0001.00
[S-switch-A-isis-1] quit
# 配置S-switch-B。
[S-switch-B] isis 1
[S-switch-B-isis-1] is-level level-1
[S-switch-B-isis-1] network-entity 10.0000.0000.0002.00
[S-switch-B-isis-1] quit
# 配置S-switch-C。
[S-switch-C] isis 1
[S-switch-C-isis-1] network-entity 10.0000.0000.0003.00
[S-switch-C-isis-1] quit
# 配置S-switch-D。
[S-switch-D] isis 1
[S-switch-D-isis-1] is-level level-2
[S-switch-D-isis-1] network-entity 20.0000.0000.0004.00
[S-switch-D-isis-1] quit
4. 在各接口上使能IS-IS进程,使能IS-IS small-hello。
# 配置S-switch-A。
[S-switch-A] interface vlanif 10
[S-switch-A-Vlanif10] isis enable 1
[S-switch-A-Vlanif10] quit
# 配置S-switch-B。
[S-switch-B] interface vlanif 20
[S-switch-B-Vlanif20] isis enable 1
[S-switch-B-Vlanif20] quit
# 配置S-switch-C。
[S-switch-C] interface vlanif 10
[S-switch-C-Vlanif10] isis enable 1
[S-switch-C-Vlanif10] quit
[S-switch-C] interface vlanif 20
[S-switch-C-Vlanif20] isis enable 1
[S-switch-C-Vlanif20] quit
[S-switch-C] interface vlanif 30
[S-switch-C-Vlanif30] isis enable 1
[S-switch-C-Vlanif30] quit
# 配置S-switch-D。
[S-switch-D] interface vlanif 30
[S-switch-D-Vlanif30] isis enable 1
[S-switch-D-Vlanif30] quit
[S-switch-D] interface vlanif 40
[S-switch-D-Vlanif40] isis enable 1
[S-switch-D-Vlanif40] quit
5. 验证配置结果
# 查看各S-switch的IS-IS LSDB信息。
[S-switch-A] display isis lsdb
Database information for ISIS(1)
--------------------------------
Level-1 Link State Database
LSPID Seq Num Checksum Holdtime Length
ATT/P/OL
-------------------------------------------------------------------------
0000.0000.0001.00-00* 0x00000006 0xbf7d 649 68
0/0/0
0000.0000.0002.00-00 0x00000003 0xef4d 545 68 0/0/0 0000.0000.0003.00-00 0x00000008 0x3340 582 111 1/0/0 0000.0000.0003.01-00 0x00000004 0xa7dd 582 55 0/0/0 0000.0000.0003.02-00 0x00000002 0xc0c4 524 55 0/0/0
*(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended),
ATT-Attached, P-Partition, OL-Overload
[S-switch-B] display isis lsdb
Database information for ISIS(1)
--------------------------------
Level-1 Link State Database
LSPID Seq Num Checksum Holdtime Length ATT/P/OL
------------------------------------------------------------------------- 0000.0000.0001.00-00 0x00000006 0xbf7d 642 68
0/0/0
0000.0000.0002.00-00* 0x00000003 0xef4d 538 68
0/0/0
0000.0000.0003.00-00 0x00000008 0x3340 574 111
1/0/0
0000.0000.0003.01-00 0x00000004 0xa7dd 582 55
0/0/0
0000.0000.0003.02-00 0x00000002 0xc0c4 524 55
0/0/0
*(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended),
ATT-Attached, P-Partition, OL-Overload
[S-switch-C] display isis lsdb
Database information for ISIS(1)
--------------------------------
Level-1 Link State Database
LSPID Seq Num Checksum Holdtime Length
ATT/P/OL
------------------------------------------------------------------------- 0000.0000.0001.00-00 0x00000006 0xbf7d 638 68
0/0/0
0000.0000.0002.00-00 0x00000003 0xef4d 533 68
0/0/0
0000.0000.0003.00-00* 0x00000008 0x3340 569 111 1/0/0 0000.0000.0003.01-00* 0x00000005 0xa7dd 569 55 0/0/0 0000.0000.0003.02-00* 0x00000003 0xc0c4 569 55 0/0/0
*(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended),
ATT-Attached, P-Partition, OL-Overload
Level-2 Link State Database
LSPID Seq Num Checksum Holdtime Length
ATT/P/OL
------------------------------------------------------------------------- 0000.0000.0003.00-00* 0x00000008 0x55bb 650 100 0/0/0 0000.0000.0003.03-00* 0x00000003 0xef91 650 55 0/0/0
0000.0000.0004.00-00 0x00000005 0x651 629 84
0/0/0
*(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended),
ATT-Attached, P-Partition, OL-Overload
[S-switch-D] display isis lsdb
Database information for ISIS(1)
--------------------------------
Level-2 Link State Database
LSPID Seq Num Checksum Holdtime Length
ATT/P/OL
------------------------------------------------------------------------- 0000.0000.0003.00-00 0x00000008 0x55bb 644 100
0/0/0
0000.0000.0003.03-00 0x00000003 0xef91 644 55
0/0/0
0000.0000.0004.00-00* 0x00000005 0x651 624 84 0/0/0
*(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended),
ATT-Attached, P-Partition, OL-Overload
# 查看各S-switch的IS-IS路由信息。
Level-1设备的路由表中应该有一条缺省路由,且下一跳为Level-1-2设备,Level-2设备应该有所有Level-1和Level-2的路由。
[S-switch-A] display isis route
Route information for ISIS(1)
-----------------------------
ISIS(1) Level-1 Forwarding Table
--------------------------------
IPV4 Destination IntCost ExtCost ExitInterface NextHop Flags
------------------------------------------------------------------------- 0.0.0.0/0 10 NULL Vlanif10 10.1.1.1
A/-/-/-
10.1.1.0/24 10 NULL Vlanif10 Direct D/-/L/-
10.1.2.0/24 20 NULL Vlanif10 10.1.1.1 A/-/-/-
192.168.0.0/24 20 NULL Vlanif10 10.1.1.1 A/-/-/-
Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut, U-Up/Down Bit Set
[S-switch-C] display isis route
Route information for ISIS(1)
-----------------------------
ISIS(1) Level-1 Forwarding Table
--------------------------------
IPV4 Destination IntCost ExtCost ExitInterface NextHop Flags
------------------------------------------------------------------------- 10.1.1.0/24 10 NULL Vlanif10 Direct D/-/L/-
10.1.2.0/24 10 NULL Vlanif20 Direct D/-/L/-
192.168.0.0/24 10 NULL Vlanif30 Direct D/-/L/-
Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut, U-Up/Down Bit Set
ISIS(1) Level-2 Forwarding Table
--------------------------------
IPV4 Destination IntCost ExtCost ExitInterface NextHop Flags
------------------------------------------------------------------------- 10.1.1.0/24 10 NULL Vlanif10 Direct D/-/L/-
10.1.2.0/24 10 NULL Vlanif20 Direct D/-/L/-
192.168.0.0/24 10 NULL Vlanif30 Direct D/-/L/-
172.16.0.0/16 20 NULL Vlanif40 192.168.0.2
A/-/-/-
Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut, U-Up/Down Bit Set
[S-switch-D] display isis route
Route information for ISIS(1)
-----------------------------
ISIS(1) Level-2 Forwarding Table
--------------------------------
IPV4 Destination IntCost ExtCost ExitInterface NextHop
Flags
-------------------------------------------------------------------------
192.168.0.0/24 10 NULL Vlanif30 Direct D/-/L/-
10.1.1.0/24 20 NULL Vlanif30 192.168.0.1
A/-/-/-
10.1.2.0/24 20 NULL Vlanif30 192.168.0.1
A/-/-/-
172.16.0.0/16 10 NULL Vlanif40 Direct A/-/-/-
Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut, U-Up/Down Bit Set
配置文件
•S-switch-A的配置文件
#
sysname S-switch-A
#
vlan batch 10
#
isis 1
is-level level-1
network-entity 10.0000.0000.0001.00
#
interface Vlanif10
ip address 10.1.1.2 255.255.255.0
isis enable 1
#
interface GigabitEthernet0/0/1
port trunk allow-pass vlan 10
#
return
•S-switch-B的配置文件
#
sysname S-switch-B
#
vlan batch 20
#
isis 1
is-level level-1
network-entity 10.0000.0000.0002.00
#
interface Vlanif20
ip address 10.1.2.2 255.255.255.0
isis enable 1
#
interface GigabitEthernet0/0/1
port trunk allow-pass vlan 20
#
return
•S-switch-C的配置文件
#
sysname S-switch-C
vlan batch 10 20 30
#
isis 1
network-entity 10.0000.0000.0003.00
#
interface Vlanif10
ip address 10.1.1.1 255.255.255.0
isis enable 1
#
interface Vlanif20
ip address 10.1.2.1 255.255.255.0
isis enable 1
#
interface Vlanif30
ip address 192.168.0.1 255.255.255.0
isis enable 1
#
interface GigabitEthernet0/0/1
port trunk allow-pass vlan 10
#
interface GigabitEthernet0/0/2
port trunk allow-pass vlan 20
#
interface GigabitEthernet0/0/3
port trunk allow-pass vlan 30
#
return
•S-switch-D的配置文件
sysname S-switch-D
#
vlan batch 30 40
#
isis 1
is-level level-2
network-entity 20.0000.0000.0004.00 #
interface Vlanif30
ip address 192.168.0.2 255.255.255.0 isis enable 1
#
interface Vlanif40
ip address 172.16.1.1 255.255.0.0
isis enable 1
#
interface GigabitEthernet0/0/1
port trunk allow-pass vlan 30
#
interface GigabitEthernet0/0/2
port trunk allow-pass vlan 40
#
Return。