华为路由器ISIS基本配置实例.docx
《华为路由器ISIS基本配置实例.docx》由会员分享,可在线阅读,更多相关《华为路由器ISIS基本配置实例.docx(14页珍藏版)》请在冰点文库上搜索。
华为路由器ISIS基本配置实例
华为路由器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设备。
图1IS-IS基本配置组网图
S-switch
接口
对应的VLANIF
IP地址
S-switch-A
GE0/0/1
VLANIF10
10.1.1.2/24
S-switch-B
GE0/0/1
VLANIF20
10.1.2.2/24
S-switch-C
GE0/0/1
VLANIF10
10.1.1.1/24
S-switch-C
GE0/0/2
VLANIF20
10.1.2.1/24
S-switch-C
GE0/0/3
VLANIF30
192.168.0.1/24
S-switch-D
GE0/0/1
VLANIF30
192.168.0.2/24
S-switch-D
GE0/0/2
VLANIF40
172.16.1.1/24
配置思路
采用如下的思路配置IS-IS的基本功能:
1.配置各物理接口所属的VLAN。
2.配置各VLANIF接口的IP地址。
3.在各S-switch上运行IS-IS进程,指定网络实体,配置level级别。
4.查看各S-switch的IS-IS数据库信息及路由表信息。
数据准备
为完成此配置例,需准备如下的数据:
∙各接口所属的VLANID,具体数据如图1所示。
∙各VLANIF接口的IP地址,具体数据如图1所示。
∙四台S-switch的systemid、级别和所属区域号。
▪S-switch-A的systemid0000.0000.0001,区域号Area10,为Level-1设备。
▪S-switch-B的systemid0000.0000.0002,区域号Area10,为Level-1设备。
▪S-switch-C的systemid0000.0000.0003,区域号Area10,为Level-1-2设备。
▪S-switch-D的systemid0000.0000.0004,区域号Area20,为Level-2设备。
配置步骤
1.配置各接口所属的VLANID(略)
2.配置各VLANIF接口的IP地址(略)
3.在各S-switch上运行IS-IS进程,指定网络实体,配置level级别
#配置S-switch-A。
[S-switch-A]isis1
[S-switch-A-isis-1]is-levellevel-1
[S-switch-A-isis-1]network-entity10.0000.0000.0001.00
[S-switch-A-isis-1]quit
#配置S-switch-B。
[S-switch-B]isis1
[S-switch-B-isis-1]is-levellevel-1
[S-switch-B-isis-1]network-entity10.0000.0000.0002.00
[S-switch-B-isis-1]quit
#配置S-switch-C。
[S-switch-C]isis1
[S-switch-C-isis-1]network-entity10.0000.0000.0003.00
[S-switch-C-isis-1]quit
#配置S-switch-D。
[S-switch-D]isis1
[S-switch-D-isis-1]is-levellevel-2
[S-switch-D-isis-1]network-entity20.0000.0000.0004.00
[S-switch-D-isis-1]quit
4.在各接口上使能IS-IS进程,使能IS-ISsmall-hello。
#配置S-switch-A。
[S-switch-A]interfacevlanif10
[S-switch-A-Vlanif10]isisenable1
[S-switch-A-Vlanif10]quit
#配置S-switch-B。
[S-switch-B]interfacevlanif20
[S-switch-B-Vlanif20]isisenable1
[S-switch-B-Vlanif20]quit
#配置S-switch-C。
[S-switch-C]interfacevlanif10
[S-switch-C-Vlanif10]isisenable1
[S-switch-C-Vlanif10]quit
[S-switch-C]interfacevlanif20
[S-switch-C-Vlanif20]isisenable1
[S-switch-C-Vlanif20]quit
[S-switch-C]interfacevlanif30
[S-switch-C-Vlanif30]isisenable1
[S-switch-C-Vlanif30]quit
#配置S-switch-D。
[S-switch-D]interfacevlanif30
[S-switch-D-Vlanif30]isisenable1
[S-switch-D-Vlanif30]quit
[S-switch-D]interfacevlanif40
[S-switch-D-Vlanif40]isisenable1
[S-switch-D-Vlanif40]quit
5.验证配置结果
#查看各S-switch的IS-ISLSDB信息。
[S-switch-A]displayisislsdb
DatabaseinformationforISIS
(1)
--------------------------------
Level-1LinkStateDatabase
LSPIDSeqNumChecksumHoldtimeLengthATT/P/OL
-------------------------------------------------------------------------
0000.0000.0001.00-00*0x000000060xbf7d649680/0/0
0000.0000.0002.00-000x000000030xef4d545680/0/0
0000.0000.0003.00-000x000000080x33405821111/0/0
0000.0000.0003.01-000x000000040xa7dd582550/0/0
0000.0000.0003.02-000x000000020xc0c4524550/0/0
*(InTLV)-LeakingRoute,*(ByLSPID)-SelfLSP,+-SelfLSP(Extended),
ATT-Attached,P-Partition,OL-Overload
[S-switch-B]displayisislsdb
DatabaseinformationforISIS
(1)
--------------------------------
Level-1LinkStateDatabase
LSPIDSeqNumChecksumHoldtimeLengthATT/P/OL
-------------------------------------------------------------------------
0000.0000.0001.00-000x000000060xbf7d642680/0/0
0000.0000.0002.00-00*0x000000030xef4d538680/0/0
0000.0000.0003.00-000x000000080x33405741111/0/0
0000.0000.0003.01-000x000000040xa7dd582550/0/0
0000.0000.0003.02-000x000000020xc0c4524550/0/0
*(InTLV)-LeakingRoute,*(ByLSPID)-SelfLSP,+-SelfLSP(Extended),
ATT-Attached,P-Partition,OL-Overload
[S-switch-C]displayisislsdb
DatabaseinformationforISIS
(1)
--------------------------------
Level-1LinkStateDatabase
LSPIDSeqNumChecksumHoldtimeLengthATT/P/OL
-------------------------------------------------------------------------
0000.0000.0001.00-000x000000060xbf7d638680/0/0
0000.0000.0002.00-000x000000030xef4d533680/0/0
0000.0000.0003.00-00*0x000000080x33405691111/0/0
0000.0000.0003.01-00*0x000000050xa7dd569550/0/0
0000.0000.0003.02-00*0x000000030xc0c4569550/0/0
*(InTLV)-LeakingRoute,*(ByLSPID)-SelfLSP,+-SelfLSP(Extended),
ATT-Attached,P-Partition,OL-Overload
Level-2LinkStateDatabase
LSPIDSeqNumChecksumHoldtimeLengthATT/P/OL
-------------------------------------------------------------------------
0000.0000.0003.00-00*0x000000080x55bb6501000/0/0
0000.0000.0003.03-00*0x000000030xef91650550/0/0
0000.0000.0004.00-000x000000050x651629840/0/0
*(InTLV)-LeakingRoute,*(ByLSPID)-SelfLSP,+-SelfLSP(Extended),
ATT-Attached,P-Partition,OL-Overload
[S-switch-D]displayisislsdb
DatabaseinformationforISIS
(1)
--------------------------------
Level-2LinkStateDatabase
LSPIDSeqNumChecksumHoldtimeLengthATT/P/OL
-------------------------------------------------------------------------
0000.0000.0003.00-000x000000080x55bb6441000/0/0
0000.0000.0003.03-000x000000030xef91644550/0/0
0000.0000.0004.00-00*0x000000050x651624840/0/0
*(InTLV)-LeakingRoute,*(ByLSPID)-SelfLSP,+-SelfLSP(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]displayisisroute
RouteinformationforISIS
(1)
-----------------------------
ISIS
(1)Level-1ForwardingTable
--------------------------------
IPV4DestinationIntCostExtCostExitInterfaceNextHopFlags
-------------------------------------------------------------------------
0.0.0.0/010NULLVlanif1010.1.1.1A/-/-/-
10.1.1.0/2410NULLVlanif10DirectD/-/L/-
10.1.2.0/2420NULLVlanif1010.1.1.1A/-/-/-
192.168.0.0/2420NULLVlanif1010.1.1.1A/-/-/-
Flags:
D-Direct,A-AddedtoURT,L-AdvertisedinLSPs,S-IGPShortcut,
U-Up/DownBitSet
[S-switch-C]displayisisroute
RouteinformationforISIS
(1)
-----------------------------
ISIS
(1)Level-1ForwardingTable
--------------------------------
IPV4DestinationIntCostExtCostExitInterfaceNextHopFlags
-------------------------------------------------------------------------
10.1.1.0/2410NULLVlanif10DirectD/-/L/-
10.1.2.0/2410NULLVlanif20DirectD/-/L/-
192.168.0.0/2410NULLVlanif30DirectD/-/L/-
Flags:
D-Direct,A-AddedtoURT,L-AdvertisedinLSPs,S-IGPShortcut,
U-Up/DownBitSet
ISIS
(1)Level-2ForwardingTable
--------------------------------
IPV4DestinationIntCostExtCostExitInterfaceNextHopFlags
-------------------------------------------------------------------------
10.1.1.0/2410NULLVlanif10DirectD/-/L/-
10.1.2.0/2410NULLVlanif20DirectD/-/L/-
192.168.0.0/2410NULLVlanif30DirectD/-/L/-
172.16.0.0/1620NULLVlanif40192.168.0.2A/-/-/-
Flags:
D-Direct,A-AddedtoURT,L-AdvertisedinLSPs,S-IGPShortcut,
U-Up/DownBitSet
[S-switch-D]displayisisroute
RouteinformationforISIS
(1)
-----------------------------
ISIS
(1)Level-2ForwardingTable
--------------------------------
IPV4DestinationIntCostExtCostExitInterfaceNextHopFlags
-------------------------------------------------------------------------
192.168.0.0/2410NULLVlanif30DirectD/-/L/-
10.1.1.0/2420NULLVlanif30192.168.0.1A/-/-/-
10.1.2.0/2420NULLVlanif30192.168.0.1A/-/-/-
172.16.0.0/1610NULLVlanif40DirectA/-/-/-
Flags:
D-Direct,A-AddedtoURT,L-AdvertisedinLSPs,S-IGPShortcut,
U-Up/DownBitSet
配置文件
∙S-switch-A的配置文件
#
sysnameS-switch-A
#
vlanbatch10
#
isis1
is-levellevel-1
network-entity10.0000.0000.0001.00
#
interfaceVlanif10
ipaddress10.1.1.2255.255.255.0
isisenable1
#
interfaceGigabitEthernet0/0/1
porttrunkallow-passvlan10
#
return
∙S-switch-B的配置文件
#
sysnameS-switch-B
#
vlanbatch20
#
isis1
is-levellevel-1
network-entity10.0000.0000.0002.00
#
interfaceVlanif20
ipaddress10.1.2.2255.255.255.0
isisenable1
#
interfaceGigabitEthernet0/0/1
porttrunkallow-passvlan20
#
return
∙S-switch-C的配置文件
#
sysnameS-switch-C
#
vlanbatch102030
#
isis1
network-entity10.0000.0000.0003.00
#
interfaceVlanif10
ipaddress10.1.1.1255.255.255.0
isisenable1
#
interfaceVlanif20
ipaddress10.1.2.1255.255.255.0
isisenable1
#
interfaceVlanif30
ipaddress192.168.0.1255.255.255.0
isisenable1
#
interfaceGigabitEthernet0/0/1
porttrunkallow-passvlan10
#
interfaceGigabitEthernet0/0/2
porttrunkallow-passvlan20
#
interfaceGigabitEthernet0/0/3
porttrunkallow-passvlan30
#
return
∙S-switch-D的配置文件
#
sysnameS-switch-D
#
vlanbatch3040
#
isis1
is-levellevel-2
network-entity20.0000.0000.0004.00
#
interfaceVlanif30
ipaddress192.168.0.2255.255.255.0
isisenable1
#
interfaceVlanif40
ipaddress172.16.1.1255.255.0.0
isisenable1
#
interfaceGigabitEthernet0/0/1
porttrunkallow-passvlan30
#
interfaceGigabitEthernet0/0/2
porttrunkallow-passvlan40
#
Return