|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
本帖最后由 tangdong 于 2011-12-8 00:36 编辑
我这的主交换26个口,1-24口分别vlan1-vlan24,25-26trunk,vlan端口做成qinq模式,下挂交换机假设都划分vlan1-vlan24,每个口都如此,每个外层vlan下挂24个内层vlan,所以总数就是24x24+24个vlan,为了调试方便,外层vlan也做了pppoe服务,所有内层vlan拨上号的都可以通过服务名寻找到属于哪个外层和内层,方便精确绑定账号和端口的唯一性(需radius支持),先建立个ppp模板,命名为pppoe就行了,可以根据自己具体情况修改!当然交换机肯定要搞好了,华为S2326TP-EI ,中兴ZXR10 2928- :for v from=1 to=24 do= {int vlan add name=("vlan".$v) vlan-id=$v int=lan dis=no}
- :for p from=1 to=24 do={/interface pppoe-server server add interface=("vlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for v from=1 to=24 do= {int vlan add name=("1_cvlan".$v) vlan-id=$v int=vlan1 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("2_cvlan".$v) vlan-id=$v int=vlan2 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("3_cvlan".$v) vlan-id=$v int=vlan3 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("4_cvlan".$v) vlan-id=$v int=vlan4 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("5_cvlan".$v) vlan-id=$v int=vlan5 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("6_cvlan".$v) vlan-id=$v int=vlan6 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("7_cvlan".$v) vlan-id=$v int=vlan7 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("8_cvlan".$v) vlan-id=$v int=vlan8 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("9_cvlan".$v) vlan-id=$v int=vlan9 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("10_cvlan".$v) vlan-id=$v int=vlan10 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("11_cvlan".$v) vlan-id=$v int=vlan11 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("12_cvlan".$v) vlan-id=$v int=vlan12 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("13_cvlan".$v) vlan-id=$v int=vlan13 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("14_cvlan".$v) vlan-id=$v int=vlan14 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("15_cvlan".$v) vlan-id=$v int=vlan15 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("16_cvlan".$v) vlan-id=$v int=vlan16 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("17_cvlan".$v) vlan-id=$v int=vlan17 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("18_cvlan".$v) vlan-id=$v int=vlan18 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("19_cvlan".$v) vlan-id=$v int=vlan19 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("20_cvlan".$v) vlan-id=$v int=vlan20 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("21_cvlan".$v) vlan-id=$v int=vlan21 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("22_cvlan".$v) vlan-id=$v int=vlan22 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("23_cvlan".$v) vlan-id=$v int=vlan23 dis=no}
- :for v from=1 to=24 do= {int vlan add name=("24_cvlan".$v) vlan-id=$v int=vlan24 dis=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("1_cvlan".$p) interface=("1_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("2_cvlan".$p) interface=("2_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("3_cvlan".$p) interface=("3_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("4_cvlan".$p) interface=("4_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("5_cvlan".$p) interface=("5_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("6_cvlan".$p) interface=("6_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("7_cvlan".$p) interface=("7_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("8_cvlan".$p) interface=("8_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("9_cvlan".$p) interface=("9_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("10_cvlan".$p) interface=("10_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("11_cvlan".$p) interface=("11_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("12_cvlan".$p) interface=("12_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("13_cvlan".$p) interface=("13_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("14_cvlan".$p) interface=("14_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("15_cvlan".$p) interface=("15_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("16_cvlan".$p) interface=("16_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("17_cvlan".$p) interface=("17_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("18_cvlan".$p) interface=("18_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("19_cvlan".$p) interface=("19_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("20_cvlan".$p) interface=("20_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("21_cvlan".$p) interface=("21_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("22_cvlan".$p) interface=("22_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("23_cvlan".$p) interface=("23_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
- :for p from=1 to=24 do={/interface pppoe-server server add service-name=("24_cvlan".$p) interface=("24_cvlan".$p) authentication=pap,chap default-profile=pppoe disabled=no}
复制代码 |
-
评分
-
查看全部评分
|