配置IS-IS IPv6的基本功能示例

点击学习精彩网络技术老师:华为HCIA和HCIP数通eNSP实战视频课、华三、锐捷、WLAN、IPv6等全套视频课程

介绍IS-IS IPv6基本功能的配置过程,包括全局使能IPv6、在各接口配置IPv6地址并使能IPv6、配置IS-IS基本功能并使能IPv6。

组网需求

图1所示:

NEDeviceA、DeviceB、DeviceC和DeviceD属于同一自治系统,要求它们之间通过IS-IS协议达到IPv6网络互连的目的。

DeviceA、DeviceB和DeviceC属于区域10,DeviceD属于区域20。

DeviceA和DeviceB是Level-1设备,DeviceC是Level-1-2设备,DeviceD是Level-2设备。

图1 配置IS-IS的IPv6特性基本功能组网图

设备名称

接口

IP地址

DeviceA

GE0/1/0

2001:db8:1::2/64

DeviceB

GE0/1/0

2001:db8:2::2/64

DeviceC

GE0/1/0

2001:db8:1::1/64

GE0/2/0

2001:db8:2::1/64

GE0/3/0

2001:db8:3::1/64

DeviceD

GE0/1/0

2001:db8:3::2/64

GE0/2/0

2001:db8:4::1/64

配置思路

采用如下的思路配置IS-IS IPv6的基本功能:

使能各NE的IPv6转发能力,配置各接口的IPv6地址。

在各NE上使能IS-IS,配置Level级别,指定网络实体。

数据准备

为完成此配置例,需准备如下的数据:

DeviceA、DeviceB、DeviceC和DeviceD各接口的IPv6地址。

DeviceA、DeviceB、DeviceC和DeviceD的区域号。

DeviceA、DeviceB、DeviceC和DeviceD的级别。

操作步骤
  1. 使能IPv6转发能力,配置各接口的IPv6地址,以DeviceA为例,其他NE的配置过程相同,不再赘述

<HUAWEI> system-view

[~HUAWEI] sysname DeviceA

[*HUAWEI] commit

[~DeviceA] interface gigabitethernet 0/1/0

[~DeviceA-GigabitEthernet0/1/0] ipv6 enable

[*DeviceA-GigabitEthernet0/1/0] ipv6 address 2001:db8:1::2 64

[*DeviceA-GigabitEthernet0/1/0] commit

  1. 配置IS-IS

# 配置DeviceA。

[~DeviceA] isis 1

[*DeviceA-isis-1] is-level level-1

[*DeviceA-isis-1] network-entity 10.0000.0000.0001.00

[*DeviceA-isis-1] ipv6 enable topology ipv6

[*DeviceA-isis-1] quit

[*DeviceA] interface gigabitethernet 0/1/0

[*DeviceA-GigabitEthernet0/1/0] isis ipv6 enable 1

[*DeviceA-GigabitEthernet0/1/0] commit

[~DeviceA-GigabitEthernet0/1/0] quit

# 配置DeviceB。

[~DeviceB] isis 1 

[*DeviceB-isis-1] is-level level-1

[*DeviceB-isis-1] network-entity 10.0000.0000.0002.00

[*DeviceB-isis-1] ipv6 enable topology ipv6

[*DeviceB-isis-1] quit

[*DeviceB] interface gigabitethernet 0/1/0

[*DeviceB-GigabitEthernet0/1/0] isis ipv6 enable 1

[*DeviceB-GigabitEthernet0/1/0] commit

[~DeviceB-GigabitEthernet0/1/0] quit

# 配置DeviceC。

[~DeviceC] isis 1

[*DeviceC-isis-1] network-entity 10.0000.0000.0003.00

[*DeviceC-isis-1] ipv6 enable topology ipv6

[*DeviceC-isis-1] quit

[*DeviceC] interface gigabitethernet 0/1/0

[*DeviceC-GigabitEthernet0/1/0] isis ipv6 enable 1

[*DeviceC-GigabitEthernet0/1/0] quit

[*DeviceC] interface gigabitethernet 0/2/0

[*DeviceC-GigabitEthernet0/2/0] isis ipv6 enable 1

[*DeviceC-GigabitEthernet0/2/0] quit

[*DeviceC] interface gigabitethernet 0/3/0

[*DeviceC-GigabitEthernet0/3/0] isis ipv6 enable 1

[*DeviceC-GigabitEthernet0/3/0] isis circuit-level level-1-2

[*DeviceC-GigabitEthernet0/3/0] commit

[~DeviceC-GigabitEthernet0/3/0] quit

# 配置DeviceD。

[~DeviceD] isis 1 

[*DeviceD-isis-1] is-level level-2

[*DeviceD-isis-1] network-entity 20.0000.0000.0004.00

[*DeviceD-isis-1] ipv6 enable topology ipv6

[*DeviceD-isis-1] quit

[*DeviceD] interface gigabitethernet 0/1/0

[*DeviceD-GigabitEthernet0/1/0] isis ipv6 enable 1

[*DeviceD-GigabitEthernet0/1/0] quit

[*DeviceD] interface gigabitethernet 0/2/0

[*DeviceD-GigabitEthernet0/2/0] isis ipv6 enable 1

[*DeviceD-GigabitEthernet0/2/0] commit

[~DeviceD-GigabitEthernet0/2/0] quit

  1. 验证配置结果

# 显示DeviceA的IS-IS路由表。可以看到DeviceA上有到达Level-1区域各网段的路由。

[~DeviceA] display isis route

                         Route information for ISIS(1)

                         -----------------------------

                        ISIS(1) Level-1 Forwarding Table

                        --------------------------------

IPV6 Dest.         ExitInterface                 NextHop                  Cost         Flags

----------------------------------------------------------------------------------------

 ::/0              GigabitEthernet0/1/0          FE80::A83E:0:3ED2:1      10           A/-/-

 2001:db8:1::/64   GigabitEthernet0/1/0          Direct                   10           D/L/-

 2001:db8:2::/64   GigabitEthernet0/1/0          FE80::A83E:0:3ED2:1      20           A/-/-

     Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut,

                                 U-Up/Down Bit Set

     Protect Type: L-Link Protect, N-Node Protect

# 显示DeviceC的IS-IS邻居的详细信息。

[~DeviceC] display isis peer verbose

                       Peer information for ISIS(1)                            

  System Id        Interface            Circuit Id       State  HoldTime   Type    PRI

------------------------------------------------------------------------------------------

0000.0000.0001   GigabitEthernet0/1/0   0000000001        Up     24s        L1     --

  MT IDs supported     : 0(UP)

  Local MT IDs         : 0

  Area Address(es)     : 10

  Peer IPv6 Address(es): FE80::996B:0:9419:1

  Peer IPv6 GlbAddr(es): 2001:db8:1::2/64

  Uptime               : 00h00m15s

  Peer Up Time         : 2020-06-08 01:41:57

  Adj Protocol         : IPV6

  Restart Capable      : YES

  Suppressed Adj       : NO

  Peer System ID       : 0000.0000.0001

0000.0000.0002 GigabitEthernet0/2/0            0000000001        Up   28s      L1       --

  Local MT IDs         : 0

  Area Address(es)     : 10

  Peer IPv6 Address(es): FE80::DC40:0:47A9:1

  Peer IPv6 GlbAddr(es): 2001:db8:2::2/64

  Uptime               : 00h00m15s

  Peer Up Time         : 2020-06-08 01:41:57

  Adj Protocol         : IPV6

  Restart Capable      : YES

  Suppressed Adj       : NO

  Peer System ID       : 0000.0000.0002

0000.0000.0004 GigabitEthernet0/3/0            0000000001        Up   24s      L2       --

  Local MT IDs         : 0

  Area Address(es)     : 20

  Peer IPv6 Address(es): FE80::F81D:0:1E24:2

  Peer IPv6 GlbAddr(es): 2001:db8:3::2/64

  Uptime               : 00h00m15s

  Peer Up Time         : 2020-06-08 01:41:57

  Adj Protocol         : IPV6

  Restart Capable      : YES

  Suppressed Adj       : NO

  Peer System ID       : 0000.0000.0004

Total Peer (s): 3

# 显示DeviceC的IS-IS LSDB的详细信息。

[~DeviceC] display isis lsdb verbose

                        Database information for ISIS(1)

                        --------------------------------

                          Level-1 Link State Database

LSPID                 Seq Num      Checksum      Holdtime      Length  ATT/P/OL

-------------------------------------------------------------------------------

0000.0000.0001.00-00  0x0000000c   0x4e06        1117          113     0/0/0

 SOURCE       0000.0000.0001.00

 NLPID        IPV6

 AREA ADDR    10

 INTF ADDR V6 2001:db8:1::2

 Topology     Standard

 NBR  ID      0000.0000.0003.00  COST: 10

 IPV6         2001:db8:1::/64                       COST: 10

0000.0000.0002.00-00  0x00000009   0x738c        1022          83      0/0/0

 SOURCE       0000.0000.0002.00

 NLPID        IPV6

 AREA ADDR    10

 INTF ADDR V6 2001:db8:2::2

 Topology     Standard

 NBR  ID      0000.0000.0003.00  COST: 10

 IPV6         2001:db8:2::/64                       COST: 10

0000.0000.0003.00-00* 0x00000020   0x6b10        771           140     1/0/0

 SOURCE       0000.0000.0003.00

 NLPID        IPV6

 AREA ADDR    10

 INTF ADDR V6 2001:db8:3::1

 INTF ADDR V6 2001:db8:2::1

 INTF ADDR V6 2001:db8:1::1

 Topology     Standard

 NBR  ID      0000.0000.0002.00  COST: 10

 NBR  ID      0000.0000.0001.00  COST: 10

 IPV6         2001:db8:2::/64                       COST: 10

 IPV6         2001:db8:1::/64                       COST: 10

Total LSP(s): 5

  *(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* 0x00000017   0x61b4        771           157     0/0/0

 SOURCE       0000.0000.0003.00

 NLPID        IPV6

 AREA ADDR    10

 INTF ADDR V6 2001:db8:3::1

 INTF ADDR V6 2001:db8:2::1

 INTF ADDR V6 2001:db8:1::1

 Topology     Standard

 NBR  ID      0000.0000.0004.00  COST: 10

 IPV6         2001:db8:3::/64                       COST: 10

 IPV6         2001:db8:2::/64                       COST: 10

 IPV6         2001:db8:1::/64                       COST: 10

0000.0000.0004.00-00  0x0000000b   0x6dfa        1024          124     0/0/0

 SOURCE       0000.0000.0004.00

 NLPID        IPV6

 AREA ADDR    20

 INTF ADDR V6 2001:db8:3::2

 INTF ADDR V6 2001:db8:4::1

 Topology     Standard

 NBR  ID      0000.0000.0003.00  COST: 10

 NBR  ID      0000.0000.0005.00  COST: 10

 IPV6         2001:db8:3::/64                         COST: 10

 IPV6         2001:db8:4::/64                         COST: 10

Total LSP(s): 3

  *(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended),

          ATT-Attached, P-Partition, OL-Overload

配置文件

DeviceA的配置文件

#

sysname DeviceA

#

isis 1

 is-level level-1

 ipv6 enable topology ipv6

 network-entity 10.0000.0000.0001.00

#

interface GigabitEthernet0/1/0

 undo shutdown

 ipv6 enable

 ipv6 address 2001:db8:1::2/64

 isis ipv6 enable 1

#

return

DeviceB的配置文件

#

sysname DeviceB

#

isis 1

 is-level level-1

 ipv6 enable topology ipv6

 network-entity 10.0000.0000.0002.00

#

interface GigabitEthernet0/1/0

 undo shutdown

 ipv6 enable

 ipv6 address 2001:db8:2::2/64

 isis ipv6 enable 1

#

return

DeviceC的配置文件

#

sysname DeviceC

#

isis 1

 ipv6 enable topology ipv6

 network-entity 10.0000.0000.0003.00

#

interface GigabitEthernet0/1/0

 undo shutdown

 ipv6 enable

 ipv6 address 2001:db8:1::1/64

 isis ipv6 enable 1

#

interface GigabitEthernet0/2/0

 undo shutdown

 ipv6 enable

 ipv6 address 2001:db8:2::1/64

 isis ipv6 enable 1

#

interface GigabitEthernet0/3/0

 undo shutdown

 ipv6 enable

 ipv6 address 2001:db8:3::1/64

 isis ipv6 enable 1

 isis circuit-level level-1-2

#

return

DeviceD的配置文件

#

sysname DeviceD

#

isis 1

 is-level level-2

 ipv6 enable topology ipv6

 network-entity 20.0000.0000.0004.00

#

interface GigabitEthernet0/1/0

 undo shutdown

 ipv6 enable

 ipv6 address 2001:db8:3::2/64

 isis ipv6 enable 1

#

interface GigabitEthernet0/2/0

 ipv6 enable

 ipv6 address 2001:db8:4::1/64

 isis ipv6 enable 1

#

return

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

精彩网络技术

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值