当前位置:网站首页>案例分享:QinQ基本组网配置
案例分享:QinQ基本组网配置
2022-07-01 18:43:00 【微思xmws】
配置需求
公司A的两个分支机构Site 1和Site 2通过运营商网络进行通信,该公司各业务使用的VLAN为VLAN 10~70;公司B的两个分支机构Site 3和Site 4也通过运营商网络进行通信,该公司各业务使用的VLAN为VLAN 30~90。
PE 1和PE 2为运营商网络的边缘设备,且二者通过TPID值为0x8200的运营商网络设备进行连接。
通过配置,利用运营商提供的VLAN 100使公司A的两个分支机构之间实现互通,利用运营商提供的VLAN 200使公司B的两个分支机构之间实现互通。
组网图

图1-3 QinQ配置组网图
配置步骤
(1)配置PE 1
# 配置端口GigabitEthernet1/0/1为Trunk端口,且允许VLAN 100和VLAN 10~70的报文通过。
<PE1> system-view
[PE1] interface gigabitethernet 1/0/1
[PE1-GigabitEthernet1/0/1] port link-type trunk
[PE1-GigabitEthernet1/0/1] port trunk permit vlan 100 10 to 70
# 配置端口GigabitEthernet1/0/1的PVID为VLAN 100。
[PE1-GigabitEthernet1/0/1] port trunk pvid vlan 100
# 开启端口GigabitEthernet1/0/1的QinQ功能。
[PE1-GigabitEthernet1/0/1] qinq enable
[PE1-GigabitEthernet1/0/1] quit
# 配置端口GigabitEthernet1/0/2为Trunk端口,且允许VLAN 100和VLAN 200的报文通过。
[PE1] interface gigabitethernet 1/0/2
[PE1-GigabitEthernet1/0/2] port link-type trunk
[PE1-GigabitEthernet1/0/2] port trunk permit vlan 100 200
# 在端口GigabitEthernet1/0/2上配置外层VLAN Tag的TPID值为0x8200。
[PE1-GigabitEthernet1/0/2] qinq ethernet-type service-tag 8200
[PE1-GigabitEthernet1/0/2] quit
# 配置端口GigabitEthernet1/0/3为Trunk端口,且允许VLAN 200和VLAN 30~90的报文通过。
[PE1] interface gigabitethernet 1/0/3
[PE1-GigabitEthernet1/0/3] port link-type trunk
[PE1-GigabitEthernet1/0/3] port trunk permit vlan 200 30 to 90
# 配置端口GigabitEthernet1/0/3的PVID为VLAN 200。
[PE1-GigabitEthernet1/0/3] port trunk pvid vlan 200
# 开启端口GigabitEthernet1/0/3的QinQ功能。
[PE1-GigabitEthernet1/0/3] qinq enable
[PE1-GigabitEthernet1/0/3] qui
(2)配置PE 2
# 配置端口GigabitEthernet1/0/1为Trunk端口,且允许VLAN 200和VLAN 30~90的报文通过。
<PE2> system-view
[PE2] interface gigabitethernet 1/0/1
[PE2-GigabitEthernet1/0/1] port link-type trunk
[PE2-GigabitEthernet1/0/1] port trunk permit vlan 200 30 to 90
# 配置端口GigabitEthernet1/0/1的PVID为VLAN 200。
[PE2-GigabitEthernet1/0/1] port trunk pvid vlan 200
# 开启端口GigabitEthernet1/0/1的QinQ功能。
[PE2-GigabitEthernet1/0/1] qinq enable
[PE2-GigabitEthernet1/0/1] quit
# 配置端口GigabitEthernet1/0/2为Trunk端口,且允许VLAN 100和VLAN 200的报文通过。
[PE2] interface gigabitethernet 1/0/2
[PE2-GigabitEthernet1/0/2] port link-type trunk
[PE2-GigabitEthernet1/0/2] port trunk permit vlan 100 200
# 在端口GigabitEthernet1/0/2上配置外层VLAN Tag的TPID值为0x8200。
[PE2-GigabitEthernet1/0/2] qinq ethernet-type service-tag 8200
[PE2-GigabitEthernet1/0/2] quit
# 配置端口GigabitEthernet1/0/3为Trunk端口,且允许VLAN 100和VLAN 10~70的报文通过。
[PE2] interface gigabitethernet 1/0/3
[PE2-GigabitEthernet1/0/3] port link-type trunk
[PE2-GigabitEthernet1/0/3] port trunk permit vlan 100 10 to 70
# 配置端口GigabitEthernet1/0/3的PVID为VLAN 100。
[PE2-GigabitEthernet1/0/3] port trunk pvid vlan 100
# 开启端口GigabitEthernet1/0/3的QinQ功能。
[PE2-GigabitEthernet1/0/3] qinq enable
[PE2-GigabitEthernet1/0/3] qui
(3)配置公共网络设备
配置运营商网络中PE 1到PE 2之间路径上的设备端口都允许VLAN 100和VLAN 200的报文携带VLAN Tag通过,且这些端口的MTU值至少为1504字节。
边栏推荐
- Summary of the core steps in the life cycle of beans
- Database foundation: select basic query statement
- Cache problems after app release
- How to use the low code platform of the Internet of things for personal settings?
- June issue | antdb database participated in the preparation of the "Database Development Research Report" and appeared on the list of information technology and entrepreneurship industries
- Lake shore optimag superconducting magnet system om series
- 宝,运维100+服务器很头疼怎么办?用行云管家!
- 苹果产品在日本全面涨价,iPhone13涨19%
- nacos配置文件发布失败,请检查参数是否正确的解决方案
- Love business in Little Red Book
猜你喜欢

Games202 operation 0 - environment building process & solving problems encountered

洞态在某互联⽹⾦融科技企业的最佳落地实践
![[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?](/img/66/674a06d8e45a31ae879b81554ef373.png)
[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?

网易游戏,激进出海

制造业SRM管理系统供应商全方位闭环管理,实现采购寻源与流程高效协同

毕业季 | 华为专家亲授面试秘诀:如何拿到大厂高薪offer?

Chinese and English instructions human soluble advanced glycation end products receptor (sRAGE) ELISA Kit

CDGA|从事通信行业,那你应该考个数据管理证书

Netease games, radical going to sea

2. Create your own NFT collections and publish a Web3 application to show them start and run your local environment
随机推荐
How to realize the applet in its own app to realize continuous live broadcast
[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?
Cache problems after app release
生鲜行业B2B电商平台解决方案,提高企业交易流程标准化和透明度
Lake Shore M91快速霍尔测量仪
lefse分析
华为联机对战服务玩家掉线重连案例总结
Lean thinking: source, pillar, landing. I understand it after reading this article
6月刊 | AntDB数据库参与编写《数据库发展研究报告》 亮相信创产业榜单
ES6数组方法find()、findIndex()的总结「建议收藏」
2020, the regular expression for mobile phone verification of the latest mobile phone number is continuously updated
Intensive cultivation of channels for joint development Fuxin and Weishi Jiajie held a new product training conference
June issue | antdb database participated in the preparation of the "Database Development Research Report" and appeared on the list of information technology and entrepreneurship industries
Team up to learn! 14 days of Hongmeng equipment development "learning, practicing and testing" practical camp, free of charge!
SuperOptiMag 超导磁体系统 — SOM、SOM2 系列
Lumiprobe free radical analysis h2dcfda instructions
nacos配置文件发布失败,请检查参数是否正确的解决方案
js找出数字在数组中下一个相邻的元素
Leetcode203 remove linked list elements
【pytorch记录】模型的分布式训练DataParallel、DistributedDataParallel