• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

04-三层技术-IP路由配置举例

目录

04-IPv6 IS-IS典型配置举例

本章节下载 04-IPv6 IS-IS典型配置举例  (289.36 KB)

04-IPv6 IS-IS典型配置举例


1  简介

本文档介绍IPv6 IS-IS配置举例。

2  配置前提

本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。

本文档假设您已了解IPv6 IS-IS特性。

3  配置举例

3.1  组网需求

图1所示,某公司总部和分部使用IPv6 IS-IS路由协议进行互联。公司总部内为市场部(Mkt dept.)和财务部(F&A dept.)设置了独立的网络。该公司的合作伙伴使用的是OSPFv3路由协议。现要求:

·     公司总部内市场部和财务部可以通信;并通过配置路由渗透功能,实现总部与分部间,市场部与分部可以正常通信,财务部与分部无法通信,且分部无法查看到财务部的路由信息。

·     将合作伙伴的OSPFv3路由引入公司分部的网络中,并保证市场部与合作伙伴可以通信。

图1 IPv6 IS-IS配置组网图

 

 

3.2  配置思路

·     为了实现公司总部内市场部和财务部的相互通信,在area 10区域部署Level-1路由器。

·     为了使公司总部内财务部和公司分部不能相互通信,且公司分部无法查看财务部的路由,需要通过在Switch C上配置IS-IS路由渗透并引用地址前缀列表来实现Level-1区域只将3001:1::/64网段的路由信息向Level-2发布。

·     为了实现公司总部内市场部与合作伙伴的网络互通,需要在Switch D的IS-IS进程中引入OSPF进程的路由,并在OSPF进程中引入IS-IS进程的路由。

3.3  适用产品及版本

表1 适用产品及版本

产品

软件版本

S6550X-HI系列

Release 1116及以上版本、Release 1213P01及以上版本

S6880系列

Release 1116及以上版本、Release 1213P01及以上版本

S9820-8M

Release 1116及以上版本、Release 1213P01及以上版本

S5580X-HI系列

Release 1213P01及以上版本

S5580X-EI系列

Release 1213P01及以上版本

S5580S-EI系列

Release 1213P01及以上版本

S9855系列

Release 9126及以上版本

S9825系列

Release 9126及以上版本

 

3.4  配置步骤

3.4.1  Switch A的配置

# 配置接口Vlan-interface 11的IPv6地址。

<SwitchA> system-view

[SwitchA] interface vlan-interface 11

[SwitchA-Vlan-interface11] ipv6 address 2001:1::1 64

[SwitchA-Vlan-interface11] quit

# 请参考以上方法配置3.1  图1Switch A的其它接口的IPv6地址,具体配置过程略。

# 配置IS-IS基本功能。

[SwitchA] isis 1

[SwitchA-isis-1] is-level level-1

[SwitchA-isis-1] network-entity 10.3001.0001.0001.00

[SwitchA-isis-1] address-family ipv6

[SwitchA-isis-1-ipv6] quit

[SwitchA-isis-1] quit

[SwitchA] interface vlan-interface 11

[SwitchA–vlan-interface 11] isis ipv6 enable 1

[SwitchA–vlan-interface 11] quit

[SwitchA] interface vlan-interface 100

[SwitchA–Vlan-interface100] isis ipv6 enable 1

[SwitchA–Vlan-interface100] quit

3.4.2  Switch B的配置

# 配置接口Vlan-interface 12的IPv6地址。

<SwitchB> system-view

[SwitchB] interface vlan-interface 12

[SwitchB-Vlan-interface12] ipv6 address 2001:2::1 64

[SwitchB-Vlan-interface12] quit

# 请参考以上方法配置3.1  图1中Switch B的其它接口的IPv6地址,具体配置过程略。

# 配置IS-IS基本功能。

[SwitchB] isis 1

[SwitchB-isis-1] is-level level-1

[SwitchB-isis-1] network-entity 10.3001.0002.0001.00

[SwitchB-isis-1] address-family ipv6

[SwitchB-isis-1-ipv6] quit

[SwitchB-isis-1] quit

[SwitchB] interface vlan-interface 12

[SwitchB–Vlan-interface12] isis ipv6 enable 1

[SwitchB–Vlan-interface12] quit

[SwitchB] interface vlan-interface 200

[SwitchB–Vlan-interface 200] isis ipv6 enable 1

[SwitchB–Vlan-interface 200] quit

3.4.3  Switch C的配置

# 配置接口Vlan-interface11的IPv6地址。

<SwitchC> system-view

[SwitchC] interface vlan-interface 11

[SwitchC-Vlan-interface11] ipv6 address 2001:1::2 64

[SwitchC-Vlan-interface11] quit

# 请参考以上方法配置3.1  图1中Switch C的其它接口的IPv6地址,具体配置过程略。

# 配置IS-IS基本功能。

[SwitchC] isis 1

[SwitchC-isis-1] is-level level-1

[SwitchC-isis-1] network-entity 10.2001.0010.0001.00

[SwitchC-isis-1] address-family ipv6

[SwitchC-isis-1-ipv6] quit

[SwitchC-isis-1] quit

[SwitchC] interface vlan-interface 10

[SwitchC–Vlan-interface10] isis ipv6 enable 1

[SwitchC–Vlan-interface10] quit

[SwitchC] interface vlan-interface 11

[SwitchC–Vlan-interface11] isis ipv6 enable 1

[SwitchC–Vlan-interface11] quit

[SwitchC] interface vlan-interface 12

[SwitchC–Vlan-interface12] isis ipv6 enable 1

[SwitchC–Vlan-interface12] quit

# 配置IPv6 IS-IS路由渗透,并引用名为1的地址前缀列表,实现Level-1区域只将3001:1::/64网段的路由信息向Level-2发布。

[SwitchC] ipv6 prefix-list 1 permit 3001:1:: 64

[SwitchC] isis 1

[SwitchC] address-family ipv6

[SwitchC-isis-1-ipv6] import-route isisv6 level-1 into level-2 filter-policy prefix-list 1

[SwitchC-isis-1-ipv6] quit

[SwitchC-isis-1] quit

3.4.4  Switch D的配置

# 配置接口Vlan-interface10的IPv6地址。

<SwitchD> system-view

[SwitchD] interface vlan-interface 10

[SwitchD-Vlan-interface10] ipv6 address 2001:10::2 64

[SwitchD-Vlan-interface10] quit

# 请参考以上方法配置3.1  图1中Switch D的其它接口的IPv6地址,具体配置过程略。

# 配置IPv6 IS-IS基本功能。

[SwitchD] isis 1

[SwitchD-isis-1] is-level level-2

[SwitchD-isis-1] network-entity 20.2001.0020.0001.00

[SwitchD-isis-1] address-family ipv6

[SwitchD-isis-1-ipv6] quit

[SwitchD-isis-1] quit

[SwitchD] interface vlan-interface 10

[SwitchD–Vlan-interface10] isis ipv6 enable 1

[SwitchD–Vlan-interface10] quit

[SwitchD] interface vlan-interface 20

[SwitchD–Vlan-interface20] isis ipv6 enable 1

[SwitchD–Vlan-interface20] quit

# 配置OSPFv3基本功能。

[SwitchD] ospfv3

[SwitchD-ospfv3-1] router-id 4.4.4.4

[SwitchD-ospfv3-1] quit

[SwitchD] interface vlan-interface 20

[SwitchD–Vlan-interface20] ospfv3 1 area 0

[SwitchD–Vlan-interface20] quit

# 配置IPv6 IS-IS进程引入OSPFv3进程的路由和直连路由。

[SwitchD] isis 1

[SwitchD] address-family ipv6

[SwitchD-isis-1-ipv6] import-route ospfv3

[SwitchD-isis-1-ipv6] import-route direct

[SwitchD-isis-1-ipv6] quit

[SwitchD-isis-1] quit

# 配置OSPFv3进程引入IPv6 IS-IS进程的路由和直连路由。

[SwitchD] ospfv3 1

[SwitchD-ospfv3-1] import-route isisv6 1

[SwitchD-ospfv3-1] import-route direct

3.4.5  Switch E的配置

# 配置接口Vlan-interface20的IPv6地址。

<SwitchE> system-view

[SwitchE] interface vlan-interface20

[SwitchE-Vlan-interface12] ipv6 address 2001:20::2 64

[SwitchE-Vlan-interface12] quit

# 请参考以上方法配置3.1  图1中Switch E的其它接口的IPv6地址,具体配置过程略。

# 配置OSPFv3基本功能。

[SwitchE] ospfv3

[SwitchE-ospfv3-1] router-id 5.5.5.5

[SwitchE-ospfv3-1] quit

[SwitchE] interface vlan-interface 20

[SwitchE–Vlan-interface 20] ospfv3 1 area 0

[SwitchE–Vlan-interface 20] quit

[SwitchE] interface vlan-interface 300

[SwitchE–Vlan-interface 300] ospfv3 1 area 0

[SwitchE–Vlan-interface 300] quit

3.5  验证配置

(1)     在Switch D上查看IPv6 IS-IS路由表,可以查看到市场部(3001:1::/64)的路由,无法查看到财务部(3001:2::/64)的路由,说明公司分部只能与市场部通信。

[SwitchD] display isis route ipv6

 

                         Route information for IS-IS(1)

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

 

                         Level-2 IPv6 Forwarding Table

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

 

 Destination : 2001:10::                               PrefixLen: 64

 Flag        : D/L/-                                   Cost     : 10

 Next Hop    : Direct                                  Interface: Vlan10

 

 Destination : 2001:1::                                PrefixLen: 64

 Flag        : R/-/-                                   Cost     : 20

 Next Hop    : FE80::7625:8AFF:FE02:4D13               Interface: Vlan10

 

 Destination : 2001:2::                                PrefixLen: 64

 Flag        : R/-/-                                   Cost     : 20

 Next Hop    : FE80::7625:8AFF:FE02:4D13               Interface: Vlan10

 

 Destination : 3001:1::                                PrefixLen: 64

 Flag        : R/-/-                                   Cost     : 30

 Next Hop    : FE80::7625:8AFF:FE02:4D13               Interface: Vlan10

 

      Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set

(2)     在Switch C上查看IPv6 IS-IS路由表,可以看到3001:200::1/64的路由,并且在Switch A上可以ping通3001:200::1,说明市场部与合作伙伴可以正常通信。

# 查看Switch C上的IPv6 IS-IS路由表。

[SwitchC] display isis route ipv6 level-2

 

                         Route information for IS-IS(1)

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

 

                         Level-2 IPv6 Forwarding Table

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

 

 Destination : 2001:10::                               PrefixLen: 64

 Flag        : D/L/-                                   Cost     : 10

 Next Hop    : Direct                                  Interface: Vlan10

 

 Destination : 2001:1::                                PrefixLen: 64

 Flag        : D/L/-                                   Cost     : 10

 Next Hop    : Direct                                  Interface: Vlan11

 

 

 Destination : 2001:2::                                PrefixLen: 64

 Flag        : D/L/-                                   Cost     : 10

 Next Hop    : Direct                                  Interface: Vlan12

 

 Destination : 2001:20::                               PrefixLen: 64

 Flag        : R/L/-                                   Cost     : 20

 Next Hop    : FE80::BAAF:67FF:FE30:3304               Interface: Vlan10

 

 Destination : 3001:200::                              PrefixLen: 64

 Flag        : R/-/-                                   Cost     : 20

 Next Hop    : FE80::BAAF:67FF:FE30:3304               Interface: Vlan10

 

      Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set

# 从Switch A ping 3001:200::1。

[SwitchA] ping ipv6 –a 3001:1::1 3001:200::1

Ping6(56 data bytes) 3001:1::1 --> 3001:200::1, press CTRL_C to break

56 bytes from 3001:200::1, icmp_seq=0 hlim=63 time=7.230 ms

56 bytes from 3001:200::1, icmp_seq=1 hlim=63 time=3.449 ms

56 bytes from 3001:200::1, icmp_seq=2 hlim=63 time=2.779 ms

56 bytes from 3001:200::1, icmp_seq=3 hlim=63 time=2.652 ms

56 bytes from 3001:200::1, icmp_seq=4 hlim=63 time=2.558 ms

 

--- Ping6 statistics for 3001:200::1 ---

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/std-dev = 2.558/3.734/7.230/1.776 ms

3.6  配置文件

·     Switch A:

#

isis 1

 is-level level-1

 network-entity 10.3001.0001.0001.00

 #

 address-family ipv6 unicast

#

vlan 11

#

vlan 100

#

interface Vlan-interface11

 isis ipv6 enable 1

 ipv6 address 2001:1::1/64

#

interface Vlan-interface100

 isis ipv6 enable 1

 ipv6 address 3001:1::1/64

#

·     Switch B:

#

isis 1

 is-level level-1

 network-entity 10.3001.0002.0001.00

 #

 address-family ipv6 unicast

#

vlan 12

#

vlan 200

#

interface Vlan-interface12

 isis ipv6 enable 1

 ipv6 address 2001:2::1/64

#

interface Vlan-interface200

 isis ipv6 enable 1

 ipv6 address 3001:2::1/64

#

·     Switch C:

#

isis 1

 network-entity 10.2001.0010.0001.00

 #

 address-family ipv6 unicast

  import-route isisv6 level-1 into level-2 filter-policy prefix-list 1

#

vlan 11 to 13

#

interface Vlan-interface11

 isis ipv6 enable 1

 ipv6 address 2001:1::2/64

#

interface Vlan-interface12

 isis ipv6 enable 1

 ipv6 address 2001:2::2/64

#

interface Vlan-interface13

 isis ipv6 enable 1

 ipv6 address 2001:10::1/64

#

 ipv6 prefix-list 1 index 10 permit 3001:1:: 64

#

·     Switch D:

#

isis 1

 is-level level-2

 network-entity 20.2001.0020.0001.00

 #

 address-family ipv6 unicast

  import-route direct

  import-route ospfv3 1

#

ospfv3 1

 router-id 4.4.4.4

 area 0.0.0.0

 import-route direct

 import-route isisv6 1

#

vlan 10

#

vlan 20

#

interface Vlan-interface10

 isis ipv6 enable 1

 ipv6 address 2001:10::2/64

#

interface Vlan-interface20

 ospfv3 1 area 0.0.0.0

 ipv6 address 2001:20::1/64

#

·     Switch E:

#

ospfv3 1

 router-id 5.5.5.5

 area 0.0.0.0

#

vlan 20

#

vlan 300

#

interface Vlan-interface20

 ospfv3 1 area 0

 ipv6 address 2001:20::2/64

#

interface Vlan-interface300

 ospfv3 1 area 0

 ipv6 address 3001:200::1/64

#

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们