VLAN-VPN典型配置
VLAN-VPN配置過程如下:
一 組網(wǎng)需求:
要求Switch A和Switch C所連接的用戶網(wǎng)絡(luò)之間能夠互通非VLAN 10的報文。
二 組網(wǎng)圖:
Switch A、Switch C為S3900交換機,Switch B為其他廠商的交換機(假設(shè)采用的TPID值為0x9100)。
三 配置步驟:
H3C 3100-SI 5100 3600 5600系列交換機VLAN-VPN典型配置
Switch A的配置
1.配置Switch A的端口Ethernet1/0/2的TPID值為0x9100,端口屬于VLAN 10
- <SwitchA> system-view
- [SwitchA] vlan 10
- [SwitchA-vlan10] quit
- [SwitchA] interface Ethernet1/0/2
- [SwitchA-Ethernet1/0/2] vlan-vpn tpid 9100
- [SwitchA-Ethernet1/0/2] port link-type trunk
- [SwitchA-Ethernet1/0/2] port trunk permit vlan 10
2.配置Switch A的端口Ethernet1/0/1為VLAN-VPN端口,端口屬于VLAN 10
- [SwitchA] interface Ethernet1/0/1
- [SwitchA-Ethernet1/0/1] port access vlan 10
- [SwitchA-Ethernet1/0/1]stp disable
- [SwitchA-Ethernet1/0/1]undo NTDP enable
- [SwitchA-Ethernet1/0/1] vlan-vpn enable
- [SwitchA-Ethernet1/0/1] quit
配置Switch B
由于Switch B為其他廠商的設(shè)備,此處只介紹一下配置要求:將Switch B的端口Ethernet3/1/1和Ethernet3/1/2配置為Trunk端口,且都屬于VLAN 10。
3.補充說明:
報文從Switch A=>Switch C的轉(zhuǎn)發(fā)過程如下:
來自用戶私網(wǎng)側(cè)的報文進入Switch A的端口Ethernet1/0/1后,由于此端口為VLAN-VPN端口,報文外層被打上了端口缺省的VLAN Tag(VLAN ID為10),然后轉(zhuǎn)發(fā)至Ethernet1/0/2。
由于Ethernet1/0/2配置了VLAN-VPN TPID,交換機將報文外層VLAN Tag中的TPID值改為用戶設(shè)定值0x9100,然后發(fā)送到公網(wǎng)網(wǎng)絡(luò)。
報文進入公網(wǎng)中Switch B的端口Ethernet1/0/1。Switch B將該報文在VLAN 10內(nèi)轉(zhuǎn)發(fā),從Switch B的端口Ethernet1/0/2發(fā)送到另一側(cè)的用戶網(wǎng)絡(luò),進入Switch C的端口Ethernet1/0/2。Switch C將該報文在VLAN 10內(nèi)轉(zhuǎn)發(fā),發(fā)送至端口Ethernet1/0/1。由于端口Ethernet1/0/1為Access端口,交換機去掉報文的外層VLAN Tag,恢復(fù)原來的報文。
反方向的轉(zhuǎn)發(fā)過程相同。
VLAN-VPN配置要點:如果端口上使能了GVRP, GMRP, NTDP, STP, 802.1X, MAC-authentication和IRF,則不能使能VLAN-VPN
【編輯推薦】
- 基于端口的VLAN典型配置指導
- 交換機配置基礎(chǔ):VLAN接口動態(tài)獲取IP地址配置
- 交換機配置基礎(chǔ):交換機VLAN接口靜態(tài)IP地址配置
- 中低端交換機典型配置之交換機基于端口VLAN應(yīng)用配置