C114门户论坛百科APPEN| 举报 切换到宽版

亚星游戏官网

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索
查看: 1938|回复: 0

9806Hqinq开局脚本 [复制链接]

军衔等级:

亚星游戏官网-yaxin222  新兵

注册:2011-4-26
发表于 2015-5-11 23:13:38 |显示全部楼层
0/14/4:20
15637113372
68967155
fcc8 975c fe87
宽带:145 外层VLAN 内层100-195
config:                                             
add-vlan 145
vlan 145 5/1-2 tag
add-vlan 100-195
vlan 100-123 1/1-24 untag one-to-one pvc 1
vlan 124-147 2/1-24 untag one-to-one pvc 1
vlan 148-171 3/1-24 untag one-to-one pvc 1
vlan 172-195 4/1-24 untag one-to-one pvc 1

vlan 145  1/1-24 untag pvc 1
vlan 145  2/1-24 untag pvc 1
vlan 145  3/1-24 untag pvc 1
vlan 145  4/1-24 untag pvc 1

interface range adsl  1/1-24
pvid 100-123 one-to-one pvc 1
atm pvc 1 vpi 0 vci 35 common
exit
interface range adsl  2/1-24
pvid 124-147 one-to-one pvc 1
atm pvc 1 vpi 0 vci 35 common
exit
interface range adsl  3/1-24
pvid 148-171 one-to-one pvc 1
atm pvc 1 vpi 0 vci 35 common
exit
interface range adsl  4/1-24
pvid 148-195 one-to-one pvc 1
atm pvc 1 vpi 0 vci 35 common
exit
interface adsl 1/1   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/2   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/3   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/4   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/5   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/6   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/7   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/8   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/9   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/10   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/11   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/12   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/13   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/14   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/15   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/16   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/17   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/18   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/19   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/20   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/21   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/22   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/23   
psvid 145 pvc 1
svlan enable pvc 1
exit
interface adsl 1/24   
psvid 145 pvc 1
svlan enable pvc 1
exit


端口2/1 的内层VALN 为VLAN 50,外层VLAN 为VLAN 100
1. 在全局配置模式下,使用<add-vlan vlan>命令创建VLAN 50,VLAN 100。
9806(config)# add-vlan 50,100
2. 在VLAN 100 中添加上联端口。
9806(config)# vlan 100 5/1 tag
3. 在VLAN100 中添加用户端口。
9806(config)# vlan 100 2/1 untag pvc 1
4. (选配)设置SVLAN 的外层Tag 协议标识STPID。STPID 是四个十六进制的数。
9806(config)# stpid 9100
5. 在端口配置模式下,使用<svlan {enable | disable}>打开或关闭端口SVLAN 功能。
9806(cfg-if-adsl-2/1)# svlan enable pvc 1
6. 在端口配置模式下,使用<pvid vid pvc pvc_id>设置端口的PVID。
9806(cfg-if-adsl-2/1)# pvid 50 pvc 1
7. 在端口配置模式下,使用<psvid vid pvc pvc_id>设置端口的外层VLAN 的PVID。
9806(cfg-if-adsl-2/1)# psvid 100 pvc 1

举报本楼

您需要登录后才可以回帖 登录 | 注册 |

手机版|C114 ( 沪ICP备12002291号-1 )|联系大家 |网站地图  

GMT+8, 2024-9-24 03:25 , Processed in 0.130520 second(s), 15 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部
XML 地图 | Sitemap 地图