• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 关于我们

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

目录

04-IS-IS典型配置举例

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

04-IS-IS典型配置举例


1  简介

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

2  配置前提

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

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

3  配置举例

3.1  组网需求

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

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

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

·     当总部的网关设备Device C IS-IS协议进程重启时,原有的通信不中断。

图1 IS-IS配置组网图

 

3.2  配置思路

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

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

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

·     为了保证Device C IS-IS协议进程重启时,原有的通信不中断,需要在Device C上使能IS-IS协议的GR(Graceful Restart,平滑重启)能力。

3.3  适用产品及版本

表1 适用产品及版本

产品

软件版本

S12500R

Release 5210及以上版本

 

3.4  配置注意事项

·     在设备平滑重启过程中,请勿变更拓扑,否则可能导致路由黑洞。

·     缺省情况下,本设备的接口处于ADM(Administratively Down)状态,请根据实际需要在对应接口视图下使用undo shutdown命令开启接口

3.5  配置步骤

3.5.1  Device A的配置

# 配置接口HundredGigE1/0/1地址。

<DeviceA> system-view

[DeviceA] interface HundredGigE 1/0/1

[DeviceA-HundredGigE1/0/1] ip address 192.168.1.1 24

[DeviceA-HundredGigE1/0/1] undo shutdown

[DeviceA-HundredGigE1/0/1] quit

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

# 配置IS-IS基本功能。

[DeviceA] isis 1

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

[DeviceA-isis-1] network-entity 10.1921.6800.1001.00

[DeviceA-isis-1] quit

[DeviceA] interface HundredGigE 1/0/1

[DeviceA–HundredGigE1/0/1] isis enable 1

[DeviceA–HundredGigE1/0/1] quit

[DeviceA] interface HundredGigE 1/0/2

[DeviceA–HundredGigE1/0/2] isis enable 1

[DeviceA–HundredGigE1/0/2] quit

3.5.2  Device B的配置

# 配置接口HundredGigE1/0/1的IP地址。

<DeviceB> system-view

[DeviceB] interface HundredGigE 1/0/1

[DeviceB-HundredGigE1/0/1] ip address 192.168.2.1 24

[DeviceB-HundredGigE1/0/1] quit

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

# 配置IS-IS基本功能。

[DeviceB] isis 1

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

[DeviceB-isis-1] network-entity 10.1921.6800.2001.00

[DeviceB-isis-1] quit

[DeviceB] interface HundredGigE 1/0/1

[DeviceB–HundredGigE1/0/1] isis enable 1

[DeviceB–HundredGigE1/0/1] quit

[DeviceB] interface HundredGigE 1/0/2

[DeviceB–HundredGigE1/0/2] isis enable 1

[DeviceB–HundredGigE1/0/2] quit

3.5.3  Device C的配置

# 配置接口HundredGigE1/0/1的IP地址。

<DeviceC> system-view

[DeviceC] interface HundredGigE 1/0/1

[DeviceC-HundredGigE1/0/1] ip address 192.168.1.2 24

[DeviceC-HundredGigE1/0/1] quit

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

# 配置IS-IS基本功能。

[DeviceC] isis 1

[DeviceC-isis-1] network-entity 10.1921.6801.0001.00

[DeviceC-isis-1] quit

[DeviceC] interface HundredGigE 1/0/30

[DeviceC–HundredGigE1/0/3] isis enable 1

[DeviceC–HundredGigE1/0/3] quit

[DeviceC] interface HundredGigE 1/0/1

[DeviceC–HundredGigE1/0/1] isis enable 1

[DeviceC–HundredGigE1/0/1] quit

[DeviceC] interface HundredGigE 1/0/2

[DeviceC–HundredGigE1/0/2] isis enable 1

[DeviceC–HundredGigE1/0/2] quit

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

[DeviceC] ip prefix-list 1 permit 10.100.1.0 24

[DeviceC] isis 1

[DeviceC] address-family ipv4

[DeviceC-isis-1-ipv4] import-route isis level-1 into level-2 filter-policy prefix-list 1

[DeviceC-isis-1-ipv4] quit

# 使能IS-IS协议的GR能力。

[DeviceC-isis-1] graceful-restart

[DeviceC-isis-1] quit

3.5.4  Device D的配置

# 配置接口HundredGigE1/0/1的IP地址。

<DeviceD> system-view

[DeviceD] interface HundredGigE 1/0/1

[DeviceD-HundredGigE1/0/1] ip address 192.168.10.2 24

[DeviceD-HundredGigE1/0/1] quit

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

# 配置IS-IS基本功能。

[DeviceD] isis 1

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

[DeviceD-isis-1] network-entity 20.1921.6802.0001.00

[DeviceD-isis-1] quit

[DeviceD] interface HundredGigE1/0/1

[DeviceD–HundredGigE1/0/1] isis enable 1

[DeviceD–HundredGigE1/0/1] quit

[DeviceD] interface HundredGigE 1/0/2

[DeviceD–HundredGigE1/0/2] isis enable 1

[DeviceD–HundredGigE1/0/2] quit

# 配置OSPF基本功能。

[DeviceD] ospf

[DeviceD-ospf-1] area 0

[DeviceD-ospf-1-area-0.0.0.0] network 192.168.20.0 0.0.0.255

[DeviceD-ospf-1-area-0.0.0.0] quit

[DeviceD-ospf-1] quit

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

[DeviceD] isis 1

[DeviceD] address-family ipv4

[DeviceD-isis-1-ipv4] import-route ospf

[DeviceD-isis-1-ipv4] import-route direct

[DeviceD-isis-1-ipv4] quit

[DeviceD-isis-1] quit

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

[DeviceD] ospf 1

[DeviceD-ospf-1] import-route isis 1

[DeviceD-ospf-1] import-route direct

3.5.5  Device E的配置

# 配置接口HundredGigE1/0/1的IP地址。

<DeviceE> system-view

[DeviceE] interface HundredGigE 1/0/1

[DeviceE-HundredGigE1/0/1] ip address 192.168.20.2 24

[DeviceE-HundredGigE1/0/1] quit

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

# 配置OSPF基本功能。

[DeviceE] ospf

[DeviceE-ospf-1] area 0

[DeviceE-ospf-1-area-0.0.0.0] network 192.168.20.0 0.0.0.255

[DeviceE-ospf-1-area-0.0.0.0] network 10.200.1.0 0.0.0.255

[DeviceE-ospf-1-area-0.0.0.0] quit

[DeviceE-ospf-1] quit

3.6  验证配置

(1)     在Device D上查看IS-IS路由表,可以查看到市场部(10.100.1.0/24)的路由,无法查看到财务部(10.100.2.0/24)的路由,说明公司分部只能与市场部通信。

[DeviceD] display isis route

 

                         Route information for IS-IS(1)

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

 

                         Level-2 IPv4 Forwarding Table

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

 

 IPv4 Destination     IntCost    ExtCost ExitInterface   NextHop         Flags

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

 192.168.10.0/24      10         NULL    HGE1/0/1          Direct          D/L/-

 192.168.1.0/24       20         NULL    HGE1/0/1          192.168.10.1    R/-/-

 10.100.1.0/24        30         NULL    HGE1/0/1          192.168.10.1    R/-/-

 192.168.2.0/24       20         NULL    HGE1/0/1          192.168.10.1    R/-/-

 

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

(2)     在Device C上查看IS-IS路由表,可以看到Level-2路由10.200.1.0/24,并且在Device A上可以ping通10.200.1.1,说明市场部与合作伙伴可以正常通信。

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

[DeviceC] display isis route

 

                         Route information for IS-IS(1)

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

 

                         Level-1 IPv4 Forwarding Table

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

 

 IPv4 Destination     IntCost    ExtCost ExitInterface   NextHop         Flags

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

 192.168.10.0/24      10         NULL    HGE1/0/3        Direct          D/L/-

 192.168.1.0/24       10         NULL    HGE1/0/1        Direct          D/L/-

 10.100.1.0/24        20         NULL    HGE1/0/1        192.168.1.1     R/L/-

 10.100.2.0/24        20         NULL    HGE1/0/2        192.168.2.1     R/-/-

 192.168.2.0/24       10         NULL    HGE1/0/2        Direct          D/L/-

 

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

 

                         Level-2 IPv4 Forwarding Table

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

 

 IPv4 Destination     IntCost    ExtCost ExitInterface   NextHop         Flags

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

 192.168.10.0/24      10         NULL    HGE1/0/3        Direct          D/L/-

 10.200.1.0/24        10         0       HGE1/0/3        192.168.10.2    R/-/-

 192.168.20.0/24      10         0       HGE1/0/3        192.168.10.2    R/-/-

 192.168.1.0/24       10         NULL    HGE1/0/1        Direct          D/L/-

 192.168.2.0/24       10         NULL    HGE1/0/2        Direct          D/L/-

 

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

# 从Device A ping 10.200.1.1。

[DeviceA] ping 10.200.1.1

Ping 10.200.1.1 (10.200.1.1): 56 data bytes, press CTRL_C to break

56 bytes from 10.200.1.1: icmp_seq=0 ttl=254 time=1.862 ms

56 bytes from 10.200.1.1: icmp_seq=1 ttl=254 time=2.969 ms

56 bytes from 10.200.1.1: icmp_seq=2 ttl=254 time=1.402 ms

56 bytes from 10.200.1.1: icmp_seq=3 ttl=254 time=1.324 ms

56 bytes from 10.200.1.1: icmp_seq=4 ttl=254 time=1.510 ms

 

--- Ping statistics for 10.200.1.1 ---

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

round-trip min/avg/max/std-dev = 1.324/1.813/2.969/0.606 ms

(3)     在Device A上持续ping Device B,期间在Device C上重启IS-IS进程,查看Device C的IS-IS协议重启时,通信是否中断。并使用display isis graceful-restart status命令,可查看Device C上IS-IS协议的GR状态。

# 在Device A上持续ping Device B。

[DeviceA] ping -c 10000 10.100.2.1

Ping 10.100.2.1 (10.100.2.1): 56 data bytes, press CTRL_C to break

56 bytes from 10.100.2.1: icmp_seq=0 ttl=254 time=1.185 ms

56 bytes from 10.100.2.1: icmp_seq=1 ttl=254 time=1.087 ms

……

# 重启Device C的IS-IS进程。

<DeviceC> reset isis all graceful-restart

Reset IS-IS process? [Y/N] :y

# 在Device A上查看到IS-IS协议重启时通信未发生中断。

[DeviceA] ping -c 10000 10.100.2.1

Ping 10.100.2.1 (10.100.2.1): 56 data bytes, press CTRL_C to break

56 bytes from 10.100.2.1: icmp_seq=0 ttl=254 time=1.185 ms

56 bytes from 10.100.2.1: icmp_seq=1 ttl=254 time=1.087 ms

56 bytes from 10.100.2.1: icmp_seq=2 ttl=254 time=1.672 ms

56 bytes from 10.100.2.1: icmp_seq=3 ttl=254 time=1.751 ms

56 bytes from 10.100.2.1: icmp_seq=4 ttl=254 time=1.816 ms

56 bytes from 10.100.2.1: icmp_seq=5 ttl=254 time=1.814 ms

# 查看Device C上IS-IS协议的GR状态。

[DeviceC] display isis graceful-restart status

 

                        Restart information for IS-IS(1)

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

Restart status: COMPLETE

Restart phase: Finish

Restart t1: 3, count 10; Restart t2: 60; Restart t3: 300

SA Bit: supported

 

                          Level-1 restart information

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

Total number of interfaces: 3

Number of waiting LSPs: 0

 

                          Level-2 restart information

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

Total number of interfaces: 3

Number of waiting LSPs: 0

3.7  配置文件

·     Device A:

#

isis 1

 is-level level-1

 network-entity 10.1921.6800.1001.00

#

interface HundredGigE1/0/1

 ip address 192.168.1.1 255.255.255.0

 isis enable 1

#

interface HundredGigE1/0/2

 ip address 10.100.1.1 255.255.255.0

 isis enable 1

#

·     Device B:

#

isis 1

 is-level level-1

 network-entity 10.1921.6800.2001.00

#

interface HundredGigE1/0/1

 ip address 192.168.2.1 255.255.255.0

 isis enable 1

#

interface HundredGigE1/0/2

 ip address 10.100.2.1 255.255.255.0

 isis enable 1

#

·     Device C:

#

isis 1

 graceful-restart

 network-entity 10.1921.6801.0001.00

 #

 address-family ipv4 unicast

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

#

interface HundredGigE1/0/1

 ip address 192.168.1.2 255.255.255.0

 isis enable 1

#

interface HundredGigE1/0/2

 ip address 192.168.2.2 255.255.255.0

 isis enable 1

#

interface HundredGigE1/0/3

 ip address 192.168.10.1 255.255.255.0

 isis enable 1

#

 ip prefix-list 1 index 10 permit 10.100.1.0 24

#

·     Device D:

#

isis 1

 is-level level-2

 network-entity 20.1921.6802.0001.00

 #

 address-family ipv4 unicast

  import-route direct

  import-route ospf 1

#

ospf 1

 import-route direct

 import-route isis 1

 area 0.0.0.0

  network 192.168.20.0 0.0.0.255

#

interface HundredGigE1/0/1

 ip address 192.168.10.2 255.255.255.0

 isis enable 1

#

interface HundredGigE1/0/2

 ip address 192.168.20.1 255.255.255.0

#

·     Device E:

#

ospf 1

 area 0.0.0.0

  network 10.200.1.0 0.0.0.255

  network 192.168.20.0 0.0.0.255

#

interface HundredGigE1/0/1

 ip address 192.168.20.2 255.255.255.0

#

interface HundredGigE1/0/2

 ip address 10.200.1.1 255.255.255.0

#

4  相关资料

·     H3C S12500R系列交换路由器 XXX配置指导-R52xx

·     H3C S12500R系列交换路由器 XXX命令参考-R52xx

·     H3C S12500R-48Y8C&S12500R-48C6D交换路由器 XXX配置指导-R52xx

·     H3C S12500R-48Y8C&S12500R-48C6D交换路由器 XXX命令参考-R52xx

 

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

新华三官网
联系我们