Professional Documents
Culture Documents
HDCV - Quy Trình Cấu Hình CSG
HDCV - Quy Trình Cấu Hình CSG
HDCV - Quy Trình Cấu Hình CSG
1.1-HDCV-quytrinhcauhinhcsg
fc "be" create
queue 1
exit
fc "af" create
queue 3
exit
fc "h2" create
queue 5
exit
fc "ef" create
queue 6
exit
fc "nc" create
queue 8
exit
dscp be fc "be" priority high
dscp af21 fc "af" priority high
dscp af41 fc "h2" priority high
dscp ef fc "ef" priority high
dscp nc1 fc "nc" priority high
exit
configure qos sap-egress 2001 create
description "L3VPN SAP egress"
queue 1 create
exit
queue 3 create
exit
queue 5 create
exit
queue 6 create
exit
queue 8 create
exit
fc "be" create
queue 1
dscp be
exit
fc "af" create
queue 3
dscp af21
exit
fc "h2" create
queue 5
dscp af41
exit
fc "ef" create
queue 6
dscp ef
exit
fc "nc" create
queue 8
dscp nc1
exit
exit
#
1.1-HDCV-quytrinhcauhinhcsg
configure qos sap-ingress 1002 create
description "L2VPN SAP ingress"
queue 1 create
exit
queue 3 create
exit
queue 5 create
exit
queue 6 create
exit
queue 8 create
exit
fc "be" create
queue 1
exit
fc "af" create
queue 3
exit
fc "h2" create
queue 5
exit
fc "ef" create
queue 6
exit
fc "nc" create
queue 8
exit
dot1p 0 fc "be" priority low
dot1p 2 fc "af" priority high
dot1p 4 fc "h2" priority high
dot1p 5 fc "ef" priority high
dot1p 6 fc "nc" priority high
exit
configure qos sap-egress 2002 create
description "L2VPN SAP egress"
queue 1 create
exit
queue 3 create
exit
queue 5 create
exit
queue 6 create
exit
queue 8 create
exit
fc "be" create
queue 1
dot1p 0
exit
fc "af" create
queue 3
dot1p 2
exit
fc "h2" create
queue 5
1.1-HDCV-quytrinhcauhinhcsg
dot1p 4
exit
fc "ef" create
queue 5
dot1p 5
exit
fc "nc" create
queue 5
dot1p 6
exit
exit
#
configure qos network 100 create
description "Network policy"
ingress
dscp be fc be profile in
dscp af21 fc af profile in
dscp af41 fc h2 profile in
dscp ef fc ef profile in
dscp nc1 fc nc profile in
lsp-exp 0 fc be profile in
lsp-exp 2 fc af profile in
lsp-exp 4 fc h2 profile in
lsp-exp 5 fc ef profile in
lsp-exp 6 fc nc profile in
exit
egress
fc be
dscp-in-profile be
dscp-out-profile be
lsp-exp-in-profile 0
lsp-exp-out-profile 0
exit
fc af
dscp-in-profile af21
dscp-out-profile af21
lsp-exp-in-profile 2
lsp-exp-out-profile 2
exit
fc h2
dscp-in-profile af41
dscp-out-profile af41
lsp-exp-in-profile 4
lsp-exp-out-profile 4
exit
fc ef
dscp-in-profile ef
dscp-out-profile ef
lsp-exp-in-profile 5
lsp-exp-out-profile 5
exit
fc nc
dscp-in-profile nc1
dscp-out-profile nc1
lsp-exp-in-profile 6
1.1-HDCV-quytrinhcauhinhcsg
lsp-exp-out-profile 6
exit
exit
exit
configure qos network-queue "Network_Queue_Mobifone" create
description "Network-Queue Policy"
queue 1 create
exit
queue 3 create
exit
queue 5 create
exit
queue 6 create
exit
queue 8 create
exit
fc be create
queue 1
exit
fc af create
queue 3
exit
fc h2 create
queue 5
exit
fc ef create
queue 6
exit
fc nc create
queue 8
exit
exit
#sync-e
network
ingress
queue-policy "Network_Queue_Mobifone"
exit
exit
no shutdown
exit
mda 3
mda-type i7-mix-eth
#sync-e
network
ingress
queue-policy "Network_Queue_Mobifone"
exit
exit
no shutdown
exit
no shutdown
exit
1.3 Cấu hình port uplink
configure port 1/2/3
description "Metro CSG_DNST01_GE1/2/3___AGG-
1.1-HDCV-quytrinhcauhinhcsg
DNGSTA11_GE1/1/1#MF#1"
ethernet
mode network
mtu 9212
network
queue-policy "Network_Queue_Mobifone"
exit
lldp
dest-mac nearest-bridge
admin-status tx-rx
tx-tlvs port-desc sys-name sys-desc sys-cap
exit
exit
hold-time up 5
ssm
no shutdown
exit
exit
no shutdown
exit
exit
configure port 1/3/3
description "Metro
CSG_DNST01_GE1/3/3___CSG_DNST37_GE1/2/3#MF#1"
ethernet
mode network
mtu 9212
network
queue-policy "Network_Queue_Mobifone"
exit
lldp
dest-mac nearest-bridge
admin-status tx-rx
tx-tlvs port-desc sys-name sys-desc sys-cap
exit
exit
hold-time up 5
ssm
no shutdown
exit
exit
no shutdown
exit
exit
1.1-HDCV-quytrinhcauhinhcsg
1.4 Cấu hình các interface
configure router
interface "system"
address 10.250.3.1/32
bfd 500 receive 500 multiplier 3 type np
no shutdown
exit
interface "loopback0"
address 10.250.4.1/32
loopback
bfd 500 receive 500 multiplier 3 type np
no shutdown
exit
interface to-AGG-DNGSTA11
address 10.250.5.6/30
port 1/2/3
bfd 10 receive 10 multiplier 3 type np
ldp-sync-timer 10
no shutdown
exit
interface to-CSG-DNST37
address 10.250.5.9/30
port 1/3/3
bfd 10 receive 10 multiplier 3 type np
ldp-sync-timer 10
no shutdown
exit
exit
1.1-HDCV-quytrinhcauhinhcsg
hello-interval 10
dead-interval 40
metric 200
no shutdown
exit
interface to-CSG-DNST37
bfd-enable
authentication-type message-digest
message-digest-key 1 md5 "mlmt12345"
interface-type point-to-point
hello-interval 10
dead-interval 40
metric 200
no shutdown
exit
exit
exit
1.6 Cấu hình BGP
configure router
autonomous-system 65333
router-id 10.250.3.1 #Router-ID cũng chính là IP của CSG
exit
1.1-HDCV-quytrinhcauhinhcsg
1.7 Cấu hình MPLS
configure router mpls
resignal-timer 30
path dyn
no shutdown
exit
interface to-CSG-DNST37
no shutdown
exit
interface to-AGG-DNGSTA11
no shutdown
exit
no shutdown
exit
1.1-HDCV-quytrinhcauhinhcsg
1.9 Cấu hình các LSP trỏ tới AGG
configure router mpls lsp LSP01-to-AGG-DNGSTA11
to 10.250.0.5
adspec
cspf
retry-timer 30
retry-limit 0
fast-reroute facility
exit
primary dyn
exit
no shutdown
exit
exit
configure router mpls lsp LSP01-to-AGG-DNGHCU31
to 10.250.0.6
adspec
cspf
retry-timer 30
retry-limit 0
fast-reroute facility
exit
primary dyn
exit
no shutdown
exit
exit
1.1-HDCV-quytrinhcauhinhcsg
1.11 Cấu hình các service SDP tương ứng với LSP
configure service sdp 1005 mpls create
far-end 10.250.0.5
lsp "LSP01-to-AGG-DNGSTA11"
keep-alive
shutdown
exit
no shutdown
exit
configure service sdp 1006 mpls create
far-end 10.250.0.6
lsp "LSP01-to-AGG-DNGHCU31"
keep-alive
shutdown
exit
no shutdown
exit
1.1-HDCV-quytrinhcauhinhcsg
#--------------------------------------------------
echo "System Time Configuration"
#--------------------------------------------------
configure system
time
ntp
exit
exit
exit
exit all
1.1-HDCV-quytrinhcauhinhcsg