专线业务接入主要有下面两种情况:
(1)直接通过汇聚交换机接入的专线用户
根据省公司下发的《广东移动IP城域网网络资源分配规范》,Vlan100-699 直接接汇聚交换机的专线用户。因此我们分配测试专线1的vlan为100。具体配置指令为:
SR:
Configure service
ies 10000102 customer 1000 create
description "zhuanxian"
interface "GE-2/1/3:100.0" create//配置三层逻辑接口,全局唯一
description "testzhuanxian1"
address 120.196.136.1/30 //配置测试专线1的网关
sap 2/1/3:100.0 create //配置测试专线1的业务接入口,单层vlan模式
exit
exit
Configure router //发布路由
policy-options
begin
prefix-list "Direct_Route"
prefix 120.196.136.0/30 exact
commit
exit
SW:
[S9312]vlan 100
[S9312-vlan]des testzhuanxian1
[S9312] interface GigabitEthernet11/0/9
[S9312-GigabitEthernet11/0/9]descreption TO- testzhuanxian1
[S9312-GigabitEthernet11/0/9]undo shutdown
[S9312-GigabitEthernet11/0/9]undo negotiation auto
[S9312-GigabitEthernet11/0/9]speed 100 (根据用户实际情况)
[S9312-GigabitEthernet11/0/9]duplex full
[S9312-GigabitEthernet11/0/9]port link-type access
[S9312-GigabitEthernet11/0/9]port access vlan 100
在上联端口放通相应VLAN
[S9312-GigabitEthernet11/0/0]port trunk allow-pass vlan 100
(2)通过OLT接入的专线用户
通过OLT接入的专线用户,根据规范要求,汇聚交换机S9312直接透传VLAN,在OLT上启用QinQ。另外根据《OLT数据配置原则V1[1].0》,Vlan1000-1999 用于QinQ时的外层VLAN,个位为3时表明业务类型为专线。内层VLAN中Vlan100-599 分配给专线用户。因此,我们分配 同一对汇聚交换机S9312下的OLT1的专线的外层vlan为1003,同时要记录OLT维护人员分配给测试专线的内层vlan为100。 具体配置指令为:
SR:
Configure service
ies 10000102 customer 1000 create
description "zhuanxian"
interface "GE-2/1/3:1003.100" create//配置三层逻辑接口,全局唯一
description "testzhuanxian1"
address 120.196.136.1/30 //配置专线1的网关
sap 2/1/3:1003.100 create //配置专线1的业务接入口,单层vlan模式
exit
exit
Configure router //发布路由
policy-options
begin
prefix-list "Direct_Route"
prefix 120.196.136.0/30 exact
commit
exit
SW(主):
[S9312]vlan 1003
[S9312-vlan]des testzhuanxian1
[S9312] interface GigabitEthernet11/0/2
[S9312-GigabitEthernet11/0/2]descreption TO-OLT1
[S9312-GigabitEthernet11/0/2]undo shutdown
[S9312-GigabitEthernet11/0/2]undo negotiation auto
[S9312-GigabitEthernet11/0/2]speed 1000
[S9312-GigabitEthernet11/0/2]duplex full
[S9312-GigabitEthernet11/0/2] port link-type trunk
[S9312-GigabitEthernet11/0/2] port trunk allow-pass vlan 1003
在上联端口放通相应VLAN
[S9312-GigabitEthernet11/0/0]port trunk allow-pass vlan 1003
SW(备):
[S9312]vlan 1003
[S9312-vlan]des testzhuanxian1B //在配对的S9312定义上VLAN
[S9312] interface GigabitEthernet11/0/2
[S9312-GigabitEthernet11/0/2]descreption TO-OLT1B
[S9312-GigabitEthernet11/0/2]undo shutdown
[S9312-GigabitEthernet11/0/2]undo negotiation auto
[S9312-GigabitEthernet11/0/2]speed 1000
[S9312-GigabitEthernet11/0/2]duplex full
[S9312-GigabitEthernet11/0/2] port link-type trunk
[S9312-GigabitEthernet11/0/2] port trunk allow-pass vlan 1003
在上联端口放通相应VLAN
[S9312-GigabitEthernet11/0/0]port trunk allow-pass vlan 1003
2.PPPOE业务开通
通过OLT接入的PPPOE用户,根据规范要求,汇聚交换机S9312直接透传VLAN,在OLT上启用QinQ。同时根据《OLT数据配置原则V1[1].0》,Vlan1000-1999 用于QinQ时的外层VLAN,个位为1时表明业务类型为PPPOE,内层VLAN中Vlan1000-1999 分配给专线用户。因此,我们分配 同一对汇聚交换机S9312下的OLT1的PPPOE的外层VLAN为1001,同时要记录OLT维护人员分配给测试专线的内层VLAN为1000。另外,由于省radius认证系统使用规范暂未发布,我们PPPOE拨号使用本地认证方式。具体配置指令为:
BRAS:
Configure subscr-mgmt
sla-profile "10M" create
ingress
qos 10000
exit
exit
egress
qos 10000
exit
exit
exit
sub-profile "20M" create
exit
pppoe-policy "adsl" create
disable-cookies
keepalive 10 hold-up-multiplier 3
max-sessions-per-mac 20
ppp-authentication chap
exit
local-user-db "local_test" create
pppoe
match-list username
host "test" create
host-identification
username "test" no-domain
exit
address pool "pool-pppoe-001"
password chap "5trYPdg41pKmkcfr/tNcXTtiCujVKM.I" hash2
identification-strings 123 create
subscriber-id "test"
sla-profile-string "10M"
sub-profile-string "20M"
exit
no shutdown
exit
exit
no shutdown
exit
configure router
interface "dhcp"
address 10.0.0.1/32
loopback
local-dhcp-server "adsl"
exit
configure router dhcp
local-dhcp-server "adsl" create
use-gi-address
use-pool-from-client
pool "pool-pppoe-001" create
options
dns-server 211.136.192.6 211.139.163.6
exit
subnet 120.196.136.0/24 create
options
default-router 120.196.136.1
exit
address-range 120.196.136.2 120.196.136.254
exit
exit
no shutdown
exit
Configure service
ies 10000101 customer 1000 create
description "TO-PPPOE"
subscriber-interface "pppoe" create
address 120.196.136.1/24
dhcp
gi-address 120.196.136.1
exit
group-interface " S9312" create
dhcp
server 10.0.0.1
gi-address 120.196.136.1
client-applications pppoe
no shutdown
exit
sap 1/2/3:1001.1000 create
sub-sla-mgmt
def-sub-id use-sap-id
def-sub-profile "20M"
def-sla-profile "10M"
multi-sub-sap 200
no shutdown
exit
exit
pppoe
pppoe-policy "adsl"
session-limit 100
user-db "local_test" //使用本地认证
no shutdown
exit
exit
exit
no shutdown
exit
Configure router //发布路由
policy-options
begin
prefix-list "Direct_Route"
prefix 120.196.136.0/24 exact
commit
exit
config router bgp
export "Export_Direct_Route"
SW(主):
[S9312]vlan 1001
[S9312-vlan]des pppoe1
[S9312] interface GigabitEthernet11/0/2
[S9312-GigabitEthernet11/0/2]descreption TO-OLT1
[S9312-GigabitEthernet11/0/2]undo shutdown
[S9312-GigabitEthernet11/0/2]undo negotiation auto
[S9312-GigabitEthernet11/0/2]speed 1000
[S9312-GigabitEthernet11/0/2]duplex full
[S9312-GigabitEthernet11/0/2] port link-type trunk
[S9312-GigabitEthernet11/0/2] port trunk allow-pass vlan 1001
在上联端口放通相应VLAN
[S9312-GigabitEthernet11/0/1]port trunk allow-pass vlan 1001
SW(备):
[S9312]vlan 1001
[S9312-vlan]des pppoe1B //在配对的S9312定义上VLAN
[S9312] interface GigabitEthernet11/0/2
[S9312-GigabitEthernet11/0/2]descreption TO-OLT1B
[S9312-GigabitEthernet11/0/2]undo shutdown
[S9312-GigabitEthernet11/0/2]undo negotiation auto
[S9312-GigabitEthernet11/0/2]speed 1000
[S9312-GigabitEthernet11/0/2]duplex full
[S9312-GigabitEthernet11/0/2] port link-type trunk
[S9312-GigabitEthernet11/0/2] port trunk allow-pass vlan 1001
在上联端口放通相应VLAN
[S9312-GigabitEthernet11/0/1]port trunk allow-pass vlan 1001下载本文