38-H3C MSR係列路由器 IPv6手動隧道+OSPFv3功能的典型配置舉例
本章節下載: 38-H3C MSR係列路由器 IPv6手動隧道+OSPFv3功能的典型配置舉例 (231.44 KB)
H3C MSR係列路由器
IPv6手動隧道+OSPFv3功能配置舉例
Copyright © 2024 bobty下载软件 版權所有,保留一切權利。
非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部,並不得以任何形式傳播。
除bobty下载软件 的商標外,本手冊中出現的其它公司的商標、產品標識及商品名稱,由各自權利人擁有。
本文檔中的信息可能變動,恕不另行通知。
本文檔介紹了IPv6手動隧道+OSPFv3功能組合的典型配置舉例。
本文檔適用於使用Comware V7軟件版本的MSR係列路由器,如果使用過程中與產品實際情況有差異,請參考相關產品手冊,或以設備實際情況為準。
本文檔中的配置均是在實驗室環境下進行的配置和驗證,配置前設備的所有參數均采用出廠時的缺省配置。如果您已經對設備進行了配置,為了保證配置效果,請確認現有配置和以下舉例中的配置不衝突。
本文假設您已了解IPv6手動隧道和OSPFv3相關特性。
如圖1所示,某公司總部和分支機構的網絡均為IPv6網絡,Device A為公司總部網關,Device B和Device C分別為分支機構Branch 1和Branch 2的網關。要求在總部與各分支機構之間建立IPv6手動隧道,通過隧道使總部與各分支機構可以穿越IPv4網絡實現互訪;同時,配置OSPFv3協議使網關上存在通過Tunnel接口到達目的IPv6地址的轉發路由,並實現分支機構與分支機構之間能夠通過總部互訪。
IP地址 |
IP地址 |
||||
Device A |
GE1/0/1 |
20.1.1.1/24 |
Device B |
GE1/0/1 |
30.1.1.1/24 |
|
GE1/0/2 |
2001::1/64 |
|
GE1/0/2 |
5001::1/64 |
|
Tunnel1 |
3001::1/64 |
|
Tunnel1 |
3001::2/64 |
|
Tunnel2 |
4001::1/64 |
|
|
|
Device C |
GE1/0/1 |
40.1.1.1/24 |
|
|
|
|
GE1/0/2 |
6001::1/64 |
|
|
|
|
Tunnel2 |
4001::2/64 |
|
|
|
本配置舉例是在MSR3610-X1路由器Release 6749版本上進行配置和驗證的。
配置之前,請確保網關設備之間IPv4報文路由可達。
# 配置接口GigabitEthernet1/0/1的IP地址。
<DeviceA> system-view
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] ip address 20.1.1.1 24
[DeviceA-GigabitEthernet1/0/1] quit
# 請參考以上方法配置圖1中Device A其它接口的IP地址,配置步驟這裏省略。
# 創建模式為IPv6 over IPv4手動隧道的接口Tunnel1。
[DeviceA] interface tunnel 1 mode ipv6-ipv4
# 配置Tunnel1接口的IPv6地址。
[DeviceA-Tunnel1] ipv6 address 3001::1/64
# 配置Tunnel1接口的源接口為GigabitEthernet1/0/1(封裝後的IPv4報文頭中的源IP地址為配置的源接口的IP地址)。
[DeviceA-Tunnel1] source gigabitethernet 1/0/1
# 配置Tunnel1接口的目的端地址(封裝後的IPv4報文頭中的目的IP地址為配置的目的端地址)。
[DeviceA-Tunnel1] destination 30.1.1.1
[DeviceA-Tunnel1] quit
# 創建模式為IPv6 over IPv4手動隧道的接口Tunnel2。
[DeviceA] interface tunnel 2 mode ipv6-ipv4
# 配置Tunnel2接口的IPv6地址。
[DeviceA-Tunnel2] ipv6 address 4001::1/64
# 配置Tunnel2接口的源接口為GigabitEthernet1/0/1。
[DeviceA-Tunnel2] source gigabitethernet 1/0/1
# 配置Tunnel2接口的目的端地址。
[DeviceA-Tunnel2] destination 40.1.1.1
[DeviceA-Tunnel2] quit
# 配置接口GigabitEthernet1/0/1的IP地址。
<DeviceB> system-view
[DeviceB] interface gigabitethernet 1/0/1
[DeviceB-GigabitEthernet1/0/1] ip address 30.1.1.1 24
[DeviceB-GigabitEthernet1/0/1] quit
# 請參考以上方法配置圖1中Device B其它接口的IP地址,配置步驟這裏省略。
# 創建模式為IPv6 over IPv4手動隧道的接口Tunnel1。
[DeviceB] interface tunnel 1 mode ipv6-ipv4
# 配置Tunnel1接口的IPv6地址。
[DeviceB-Tunnel1] ipv6 address 3001::2/64
# 配置Tunnel1接口的源接口為GigabitEthernet1/0/1(封裝後的IPv4報文頭中的源IP地址為配置的源接口的IP地址)。
[DeviceB-Tunnel1] source gigabitethernet 1/0/1
# 配置Tunnel1接口的目的端地址(封裝後的IPv4報文頭中的目的IP地址為配置的目的端地址)。
[DeviceB-Tunnel1] destination 20.1.1.1
[DeviceB-Tunnel1] quit
¡ 配置Device C
# 配置接口GigabitEthernet1/0/1的IP地址。
<DeviceC> system-view
[DeviceC] interface gigabitethernet 1/0/1
[DeviceC-GigabitEthernet1/0/1] ip address 40.1.1.1 24
[DeviceC-GigabitEthernet1/0/1] quit
# 請參考以上方法配置圖1中Device C其它接口的IP地址,配置步驟這裏省略。
# 創建模式為IPv6 over IPv4手動隧道的接口Tunnel2。
[DeviceC] interface tunnel 2 mode ipv6-ipv4
# 配置Tunnel2接口的IPv6地址。
[DeviceC-Tunnel2] ipv6 address 4001::2/64
# 配置Tunnel2接口的源接口為GigabitEthernet1/0/1(封裝後的IPv4報文頭中的源IP地址為配置的源接口的IP地址)。
[DeviceC-Tunnel2] source gigabitethernet 1/0/1
# 配置Tunnel2接口的目的端地址(封裝後的IPv4報文頭中的目的IP地址為配置的目的端地址)。
[DeviceC-Tunnel2] destination 20.1.1.1
[DeviceC-Tunnel2] quit
(2) 配置OSPFv3
¡ 配置Device A
# 配置Device A的Router ID為1.1.1.1。
[DeviceA] ospfv3 1
[DeviceA-ospfv3-1] router-id 1.1.1.1
[DeviceA-ospfv3-1] quit
# 在Tunnel1上開啟OSPFv3
[DeviceA] interface Tunnel 1
[DeviceA-Tunnel1] ospfv3 1 area 0
[DeviceA-Tunnel1] quit
# 在Tunnel2上開啟OSPFv3
[DeviceA] interface Tunnel 2
[DeviceA-Tunnel2] ospfv3 1 area 0
[DeviceA-Tunnel2] quit
# 在GigabitEthernet1/0/2上開啟OSPFv3
[DeviceA] interface gigabitethernet 1/0/2
[DeviceA-GigabitEthernet1/0/2] ospfv3 1 area 0
[DeviceA-GigabitEthernet1/0/2] quit
¡ 配置Device B
# 配置Device B的Router ID為2.2.2.2。
[DeviceB] ospfv3 1
[DeviceB-ospfv3-1] router-id 2.2.2.2
[DeviceB-ospfv3-1] quit
# 在Tunnel1上開啟OSPFv3
[DeviceB] interface Tunnel 1
[DeviceB-Tunnel1] ospfv3 1 area 0
[DeviceB-Tunnel1] quit
# 在GigabitEthernet1/0/2上開啟OSPFv3
[DeviceB] interface gigabitethernet 1/0/2
[DeviceB-GigabitEthernet1/0/2] ospfv3 1 area 0
[DeviceB-GigabitEthernet1/0/2] quit
¡ 配置Device C
# 配置Device C的Router ID為3.3.3.3。
[DeviceC] ospfv3 1
[DeviceC-ospfv3-1] router-id 3.3.3.3
[DeviceC-ospfv3-1] quit
# 在Tunnel2上開啟OSPFv3
[DeviceC] interface Tunnel 2
[DeviceC-Tunnel2] ospfv3 1 area 0
[DeviceC-Tunnel2] quit
# 在GigabitEthernet1/0/2上開啟OSPFv3
[DeviceC] interface gigabitethernet 1/0/2
[DeviceC-GigabitEthernet1/0/2] ospfv3 1 area 0
[DeviceC-GigabitEthernet1/0/2] quit
Pinging 2001::3
from 5001::3 with 32 bytes of data:
Reply from 2001::3: bytes=32 time=13ms
Reply from 2001::3: bytes=32 time=1ms
Reply from 2001::3: bytes=32 time=1ms
Reply from 2001::3: bytes=32 time<1ms
Ping statistics for 2001::3:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 13ms, Average = 3ms
# 從PC2上可以ping通PC3。
D:\>ping6 -s 5001::3 6001::3
Pinging 6001::3
from 6001::3 with 32 bytes of data:
Reply from 6001::3: bytes=32 time=13ms
Reply from 6001::3: bytes=32 time=1ms
Reply from 6001::3: bytes=32 time=1ms
Reply from 6001::3: bytes=32 time<1ms
Ping statistics for 6001::3:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 13ms, Average = 3ms
· Device A
#
ospfv3 1
router-id 1.1.1.1
area 0.0.0.0
#
interface GigabitEthernet1/0/1
ip address 20.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ospfv3 1 area 0.0.0.0
ipv6 address 2001::1/64
#
interface Tunnel1 mode ipv6-ipv4
ospfv3 1 area 0.0.0.0
source GigabitEthernet1/0/1
destination 30.1.1.1
ipv6 address 3001::1/64
#
interface Tunnel2 mode ipv6-ipv4
ospfv3 1 area 0.0.0.0
source GigabitEthernet1/0/1
destination 40.1.1.1
ipv6 address 4001::1/64
#
· Device B
#
ospfv3 1
router-id 2.2.2.2
area 0.0.0.0
#
interface GigabitEthernet1/0/1
ip address 30.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ospfv3 1 area 0.0.0.0
ipv6 address 5001::1/64
#
interface Tunnel1 mode ipv6-ipv4
ospfv3 1 area 0.0.0.0
source GigabitEthernet1/0/1
destination 20.1.1.1
ipv6 address 3001::2/64
#
· Device C
#
ospfv3 1
router-id 3.3.3.3
area 0.0.0.0
#
interface GigabitEthernet1/0/1
ip address 40.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/2
ospfv3 1 area 0.0.0.0
ipv6 address 6001::1/64
#
interface Tunnel2 mode ipv6-ipv4
ospfv3 1 area 0.0.0.0
source GigabitEthernet1/0/1
destination 20.1.1.1
ipv6 address 4001::2/64
#
· 《H3C MSR 係列路由器 配置指導(V7)》中的“三層技術-IP業務配置指導”
· 《H3C MSR 係列路由器 命令參考(V7)》中的“三層技術-IP業務命令參考”
· 《H3C MSR 係列路由器 配置指導(V7)》中的“三層技術-IP路由配置指導”
· 《H3C MSR 係列路由器 命令參考(V7)》中的“三層技術-IP路由命令參考”
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!