• 產品與解決方案
  • 行業解決方案
  • 服務
  • 支持
  • 合作夥伴
  • 關於我們

05-三層技術-IP路由配置舉例

目錄

05-H3C_IS-IS配置舉例

本章節下載 05-H3C_IS-IS配置舉例  (209.00 KB)

05-H3C_IS-IS配置舉例

H3C IS-IS配置舉例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

資料版本:6W100-20200330

產品版本:Release 7585P05

 

Copyright © 2020 bobty下载软件 版權所有,保留一切權利。

非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部,並不得以任何形式傳播。

除bobty下载软件 的商標外,本手冊中出現的其它公司的商標、產品標識及商品名稱,由各自權利人擁有。

本文檔中的信息可能變動,恕不另行通知。



1  簡介

本文檔介紹IS-IS配置舉例。

2  配置前提

本文檔中的配置均是在實驗室環境下進行的配置和驗證,配置前設備的所有參數均采用出廠時的缺省配置。如果您已經對設備進行了配置,為了保證配置效果,請確認現有配置和以下舉例中的配置不衝突。

本文檔假設您已了解IS-IS特性。

3  配置舉例

3.1  組網需求

圖1所示,某公司總部和分部使用IS-IS路由協議進行互聯。公司總部內為市場部(Mkt dept.)和財務部(F&A dept.)設置了獨立的網絡。該公司的合作夥伴使用的是OSPF路由協議。現要求:

·            Switch A和Switch B性能相對較低,盡量使其處理較少的數據信息。

·            公司總部內市場部和財務部可以通信;並通過配置路由滲透功能,實現總部與分部間,市場部與分部可以正常通信,財務部與分部無法通信,且分部無法查看到財務部的路由信息。

·            將合作夥伴的OSPF路由引入公司分部的網絡中,並保證市場部與合作夥伴可以通信。

·            當總部的網關設備Switch C IS-IS協議進程重啟時,原有的通信不中斷。

圖1 IS-IS配置組網圖

 

3.2  配置思路

·            為了降低Switch A和Switch B運行壓力,將其部署為Level-1路由器,僅處理公司總部area 10區域內的數據信息。

·            為了使公司總部內財務部和公司分部不能相互通信,且公司分部無法查看財務部的路由,需要通過在Switch C上配置IS-IS路由滲透並引用地址前綴列表來實現Level-1區域隻將10.100.1.0/24網段的路由信息向Level-2發布。

·            為了實現公司總部內市場部與合作夥伴的網絡互通,需要在Switch D的IS-IS進程中引入OSPF進程的路由,並在OSPF進程中引入IS-IS進程的路由。

·            為了保證Switch C IS-IS協議進程重啟時,原有的通信不中斷,需要在Switch C上使能IS-IS協議的GR(Graceful Restart,平滑重啟)能力。

3.3  配置注意事項

在設備平滑重啟過程中,請勿變更拓撲,否則可能導致路由黑洞。

3.4  配置步驟

3.4.1  Switch A的配置

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

<SwitchA> system-view

[SwitchA] interface vlan-interface 11

[SwitchA-Vlan-interface11] ip address 192.168.1.1 24

[SwitchA-Vlan-interface11] quit

# 請參考以上方法配置圖1中Switch A的其它接口的IP地址,具體配置過程略。

# 配置IS-IS基本功能。

[SwitchA] isis 1

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

[SwitchA-isis-1] network-entity 10.1921.6800.1001.00

[SwitchA-isis-1] quit

[SwitchA] interface vlan-interface 11

[SwitchA–Vlan-interface11] isis enable 1

[SwitchA–Vlan-interface11] quit

[SwitchA] interface vlan-interface 100

[SwitchA–Vlan-interface100] isis enable 1

[SwitchA–Vlan-interface100] quit

3.4.2  Switch B的配置

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

<SwitchB> system-view

[SwitchB] interface vlan-interface 12

[SwitchB-Vlan-interface12] ip address 192.168.2.1 24

[SwitchB-Vlan-interface12] quit

# 請參考以上方法配置圖1中Switch B的其它接口的IP地址,具體配置過程略。

# 配置IS-IS基本功能。

[SwitchB] isis 1

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

[SwitchB-isis-1] network-entity 10.1921.6800.2001.00

[SwitchB-isis-1] quit

[SwitchB] interface vlan-interface 12

[SwitchB–Vlan-interface12] isis enable 1

[SwitchB–Vlan-interface12] quit

[SwitchB] interface vlan-interface 200

[SwitchB–Vlan-interface 200] isis enable 1

[SwitchB–Vlan-interface 200] quit

3.4.3  Switch C的配置

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

<SwitchC> system-view

[SwitchC] interface vlan-interface 11

[SwitchC-Vlan-interface11] ip address 192.168.1.2 24

[SwitchC-Vlan-interface11] quit

# 請參考以上方法配置圖1中Switch C的其它接口的IP地址,具體配置過程略。

# 配置IS-IS基本功能。

[SwitchC] isis 1

[SwitchC-isis-1] network-entity 10.1921.6801.0001.00

[SwitchC-isis-1] quit

[SwitchC] interface vlan-interface 10

[SwitchC–Vlan-interface10] isis enable 1

[SwitchC–Vlan-interface10] quit

[SwitchC] interface vlan-interface 11

[SwitchC–Vlan-interface11] isis enable 1

[SwitchC–Vlan-interface11] quit

[SwitchC] interface vlan-interface 12

[SwitchC–Vlan-interface12] isis enable 1

[SwitchC–Vlan-interface12] quit

# 配置IS-IS路由滲透,並引用名為1的地址前綴列表,實現Level-1區域隻將10.100.1.0/24網段的路由信息向Level-2發布。

[SwitchC] ip prefix-list 1 permit 10.100.1.0 24

[SwitchC] isis 1

[SwitchC-isis-1] address-family ipv4

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

[SwitchC-isis-1-ipv4] quit

# 使能IS-IS協議的GR能力。

[SwitchC-isis-1] graceful-restart

[SwitchC-isis-1] quit

3.4.4  Switch D的配置

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

<SwitchD> system-view

[SwitchD] interface vlan-interface 10

[SwitchD- Vlan-interface10] ip address 192.168.10.2 24

[SwitchD- Vlan-interface10] quit

# 請參考以上方法配置圖1中Switch D的其它接口的IP地址,具體配置過程略。

# 配置IS-IS基本功能。

[SwitchD] isis 1

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

[SwitchD-isis-1] network-entity 20.1921.6802.0001.00

[SwitchD-isis-1] quit

[SwitchD] interface vlan-interface 10

[SwitchD–Vlan-interface10] isis enable 1

[SwitchD–Vlan-interface10] quit

[SwitchD] interface vlan-interface 20

[SwitchD–Vlan-interface20] isis enable 1

[SwitchD–Vlan-interface20] quit

# 配置OSPF基本功能。

[SwitchD] ospf

[SwitchD-ospf-1] area 0

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

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

[SwitchD-ospf-1] quit

# 配置IS-IS進程引入OSPF進程的路由和直連路由。

[SwitchD] isis 1

[SwitchD-isis-1] address-family ipv4

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

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

[SwitchD-isis-1-ipv4] quit

[SwitchD-isis-1] quit

# 配置OSPF進程引入IS-IS進程的路由和直連路由。

[SwitchD] ospf 1

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

[SwitchD-ospf-1] import-route direct

3.4.5  Switch E的配置

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

<SwitchE> system-view

[SwitchE] interface vlan-interface20

[SwitchE-Vlan-interface12] ip address 192.168.20.2 24

[SwitchE-Vlan-interface12] quit

# 請參考以上方法配置圖1中Switch E的其它接口的IP地址,具體配置過程略。

# 配置OSPF基本功能。

[SwitchE] ospf

[SwitchE-ospf-1] area 0

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

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

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

[SwitchE-ospf-1] quit

3.5  驗證配置

(1)       在Switch D上查看IS-IS路由表,可以查看到市場部(10.100.1.0/24)的路由,無法查看到財務部(10.100.2.0/24)的路由,說明公司分部隻能與市場部通信。

[SwitchD] 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    Vlan10          Direct          D/L/-

 192.168.1.0/24       20         NULL    Vlan10          192.168.10.1    R/-/-

 10.100.1.0/24        30         NULL    Vlan10          192.168.10.1    R/-/-

 192.168.2.0/24       20         NULL    Vlan10          192.168.10.1    R/-/-

 

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

(2)       在Switch C上查看IS-IS路由表,可以看到10.200.1.0/24的路由,並且Switch A可以ping通10.200.1.1,說明本公司與合作夥伴可以正常通信。

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

[SwitchC] 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    Vlan10          Direct          D/L/-

 192.168.1.0/24       10         NULL    Vlan11          Direct          D/L/-

 10.100.1.0/24        20         NULL    Vlan11          192.168.1.1     R/L/-

 10.100.2.0/24        20         NULL    Vlan12          192.168.2.1     R/-/-

 192.168.2.0/24       10         NULL    Vlan12          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    Vlan10          Direct          D/L/-

 10.200.1.0/24        10         0       Vlan10          192.168.10.2    R/-/-

 192.168.20.0/24      10         0       Vlan10          192.168.10.2    R/-/-

 192.168.1.0/24       10         NULL    Vlan11          Direct          D/L/-

 192.168.2.0/24       10         NULL    Vlan12          Direct          D/L/-

 

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

# 從Switch A的VLAN接口100 ping 10.200.1.1。

[SwitchA] ping –a 10.1.1.1 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=252 time=1.862 ms

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

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

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

56 bytes from 10.200.1.1: icmp_seq=4 ttl=252 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)       在Switch A上持續ping Switch B,期間在Switch C上重啟IS-IS進程,查看Switch C的IS-IS協議重啟時,通信是否中斷。並使用display isis graceful-restart status命令,可查看Switch C上IS-IS協議的GR狀態。

# 在Switch A上持續ping Switch B。

[SwitchA] 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

……

# 重啟Switch C的IS-IS進程。

<SwitchC> reset isis all graceful-restart

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

# 在Switch A上查看到IS-IS協議重啟時通信未發生中斷。

[SwitchA] 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

# 查看Switch C上IS-IS協議的GR狀態。

[SwitchC] 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.6  配置文件

·            Switch A:

#

isis 1

 is-level level-1

 network-entity 10.1921.6800.1001.00

#

vlan 11

#

vlan 100

#

interface Vlan-interface11

 ip address 192.168.1.1 255.255.255.0

 isis enable 1

#

interface Vlan-interface100

 ip address 10.100.1.1 255.255.255.0

 isis enable 1

#

·            Switch B:

#

isis 1

 is-level level-1

 network-entity 10.1921.6800.2001.00

#

vlan 12

#

vlan 200

#

interface Vlan-interface12

 ip address 192.168.2.1 255.255.255.0

 isis enable 1

#

interface Vlan-interface200

 ip address 10.100.2.1 255.255.255.0

 isis enable 1

#

·            Switch 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

#

vlan 11 to 13

#

interface Vlan-interface11

 ip address 192.168.1.2 255.255.255.0

 isis enable 1

#

interface Vlan-interface12

 ip address 192.168.2.2 255.255.255.0

 isis enable 1

#

interface Vlan-interface13

 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

#

·            Switch 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

#

vlan 10

#

vlan 20

#

interface Vlan-interface10

 ip address 192.168.10.2 255.255.255.0

 isis enable 1

#

interface Vlan-interface20

 ip address 192.168.20.1 255.255.255.0

#

·            Switch 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

#

vlan 20

#

vlan 300

#

interface Vlan-interface20

 ip address 192.168.20.2 255.255.255.0

#

interface Vlan-interface300

 ip address 10.200.1.1 255.255.255.0

#

4  相關資料

·            H3C S10500係列交換機 三層技術-IP路由配置指導-R758X

·            H3C S10500係列交換機 三層技術-IP路由命令參考-R758X

 

不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!

BOB登陆
官網
聯係我們