一
.
缺省用户名和密码
admin
12345
?/p>
.
创建
VLAN
config
//
进入配置模式?/p>
vlan10,12,17,20,30-416,579,601-700,801,921,1000-1050,1201-1224,1301-1324,1401-1424
?/p>
3999
//
批量创建
VLAN
interface vlan 4000
//
单独创建
VLAN
ip address 172.31.20.237/24
//
?/p>
vlan
添加
IP
ip route-static 0.0.0.0 0.0.0.0
172.31.20.254 //config
模式下缺省路由配?/p>
write file//
保存当前所有配?/p>
?/p>
.
端口配置
Interface gi 1/0/1 to gi 1/0/48
批量进入端口
S7800-08
?/p>
config-eth1)#no shutdown
//
启用端口
S7800-08
?/p>
config)#interface gigaethernet 6/0/1
//
进入端口
gigaethernet 6/0/1
S7800-08
?/p>
config-ge6/0/1)#alias huangtan8220
//
设置端口描述
1)
access
模式?/p>
port link-type access
?/p>
port default vlan 10
//access
模式
2)
trunk
模式?/p>
port link-type trunk
?/p>
port trunk allow-pass vlan 10
?/p>
12
//trunk
模式
3)
hybrid
模式?/p>
port
link-type
hybrid
?/p>
port
hybrid
vlan30-416
?/p>
1000-1050tagged
?/p>
port
hybrid
vlan
3999
untagged//hybird
模式,内层标?/p>
tag
,外层标
untag(
解标
)
建议端口使用
hybrid
模式,端口默认为
hybrid
模式?/p>
1.Port hybrid vlan 400 tag
//
更改端口?/p>
tag
模式
2.Port hybrid vlan 399 untag
//
更改端口?/p>
untag
模式,并在下一条中配置
pvid
Port hybrid pvid 399
?/p>
.
启用
QinQ
S7800-08
?/p>
config)#translation-vlan 1 outer-vlan 30/524 add outer 2008
//
规则
1
:如果是内标?/p>
30-524
的数据,添加外标
2008
,前提是端口必须先透传
30/524VLAN
,下行口
S7800-08
?/p>
config-ge6/0/1)#join translation-vlan 1 in
//
在端口下应用
S7800-08
?/p>
config-ge6/0/1)#port hybrid vlan 2008 untag
S7800-08
?/p>
config-ge6/0/1)#exit
//
退出至上一层配置界?/p>
上行口:
S7800-08
?/p>
config-ge8/0/1)#port hybrid vlan 2008 tag//
只透传
2008VLAN
--------------------------------------------------------------
?/p>
基于接口?/p>
QinQ
配置,对比中兴设备的配置比较案例?/p>
vlan qinq session-no 1 customer-port fei_1/13 uplink-port gei_2/1 in-vlan 2013 untag helper-vlan 3999
-----
translation-vlan 1 outer-vlan 2013 add outer 3999
//
中兴设备和烽火设备的
vlan
翻译规则命令比较
interface fei_1/13
---------
interface gigaethernet 6/0/1
//
进入端口?/p>
join translation-vlan 1 in
//
在端口下应用之前建立的翻译规?/p>
description XSX_ShuiYueSi_DSLAM2_MA5600
-------
aliasXSX_ShuiYueSi_DSLAM2_MA5600
//
端口描述
switchport mode hybrid
---------
port link-type hybrid
switchport hybrid native vlan 254
--------
port hybrid pvid 254
switchport hybrid vlan 2013 tag
---------
port hybrid vlan 2013 tag