...
| Блок кода | ||||||
|---|---|---|---|---|---|---|
| ||||||
configure terminal
management ip 172.16.99.10 255.255.255.0
management gateway 172.16.99.1
management vlan 999
ip sntp server 172.16.99.200
ip sntp client
ip igmp snooping pp4x enable
ip igmp proxy report pp4x enable
ip igmp proxy report pp4x range 224.0.0.0 239.255.255.255 from all to 1002
slot 0 type plc8
slot 1 type plc8
vlan 999
name Management
tagged front-port 1/0
exit
vlan 1000
name TR-069
tagged front-port 1/0
tagged slot-channel 0
tagged slot-channel 1
tagged slot-channel 2
exit
vlan 1001
name Internet
tagged front-port 1/0
tagged slot-channel 0
tagged slot-channel 1
tagged slot-channel 2
exit
vlan 1002
name IPTV
tagged front-port 1/0
tagged slot-channel 0
tagged slot-channel 1
tagged slot-channel 2
ip igmp snooping querier enable
ip igmp snooping querier address 1.1.1.1
exit
vlan 1003
name Internet_br
tagged front-port 1/0
tagged slot-channel 0
tagged slot-channel 1
tagged slot-channel 2
exit
profile ports "Bridge_and_IPTV"
igmp multicast dynamic-entry 0 vid "1002"
igmp multicast dynamic-entry 0 group "224.0.0.1" "239.255.255.255"
port 0 bridge group "10"
port 0 multicast
port 0 igmp upstream vid "1003"
port 0 igmp upstream tag-control add-tag
port 0 igmp downstream vid "1002"
port 0 igmp downstream tag-control remove-tag
exit
profile ports "IPTV"
igmp multicast dynamic-entry 0 vid "1002"
igmp multicast dynamic-entry 0 group "224.0.0.1" "239.255.255.255"
veip multicast
veip upstream vid "1002"
veip upstream tag-control replace-tag
veip downstream vid "1002"
veip downstream tag-control replace-tag
exit
profile management "ACS"
url "http://192.168.200.1:9595"
username "acs"
password "acsacs"
exit
template "Services"
undefine profile shaping
service 0 profile cross-connect "TR-069"
service 0 profile dba "dba-00"
service 1 profile cross-connect "Internet"
service 1 profile dba "dba-00"
service 2 profile cross-connect "IPTV"
service 2 profile dba "dba-00"
profile ports "IPTV"
profile management "ACS"
exit
slot 0 profile pppoe-ia "pppoe-ia-01"
slot 0 profile dhcp-ra "dhcp-ra-01"
interface ont 0/0/0
description "Subscriber-1"
serial "ELTX00000001"
profile shaping "Test"
template "Services"
exit
interface ont 0/0/1
description "Subscriber-2"
serial "ELTX00000002"
profile shaping "Test"
template "Services"
exit
interface ont 0/0/2
description "Subscriber-3"
serial "ELTX00000003"
profile shaping "Test"
template "Services"
exit
interface ont 0/0/3
description "Subscriber-4"
serial "ELTX00000004"
profile shaping "Test"
template "Services"
exit
interface ont 0/0/4
description "Subscriber-5"
serial "ELTX00000005"
profile shaping "Test"
template "Services"
exit
interface ont 0/1/0
description "Subscriber-6"
serial "ELTX00000006"
profile shaping "Test"
template "Services"
exit
interface ont 0/1/1
description "Subscriber-7"
serial "ELTX00000007"
profile shaping "Test"
template "Services"
exit
interface ont 0/1/2
description "Subscriber-8"
serial "ELTX00000008"
profile shaping "Test"
template "Services"
exit
interface ont 0/1/3
description "Subscriber-9"
serial "ELTX00000009"
profile shaping "Test"
template "Services"
exit
interface ont 0/1/4
description "Subscriber-10"
serial "ELTX00000010"
profile shaping "Test"
template "Services"
exit
interface ont 0/2/0
description "Subscriber-11"
serial "ELTX00000011"
profile shaping "Test"
template "Services"
exit
interface ont 0/2/1
description "Subscriber-12"
serial "ELTX00000012"
profile shaping "Test"
template "Services"
exit
interface ont 0/2/2
description "Subscriber-13"
serial "ELTX00000013"
profile shaping "Test"
template "Services"
exit
interface ont 0/2/3
description "Subscriber-14"
serial "ELTX00000014"
profile shaping "Test"
template "Services"
exit
interface ont 0/2/4
description "Subscriber-15"
serial "ELTX00000015"
profile shaping "Test"
template "Services"
exit
ip igmp snooping slot 0 enable
slot 1 profile pppoe-ia "pppoe-ia-01"
slot 1 profile dhcp-ra "dhcp-ra-01"
interface ont 1/0/0
description "Subscriber-16"
serial "ELTX00000016"
profile shaping "Test"
template "Services"
exit
interface ont 1/0/1
description "Subscriber-17"
serial "ELTX00000017"
profile shaping "Test"
template "Services"
exit
interface ont 1/0/2
description "Subscriber-18"
serial "ELTX00000018"
profile shaping "Test"
template "Services"
exit
interface ont 1/0/3
description "Subscriber-19"
serial "ELTX00000019"
profile shaping "Test"
template "Services"
exit
interface ont 1/0/4
description "Subscriber-20"
serial "ELTX00000020"
profile shaping "Test"
template "Services"
exit
interface ont 1/1/0
description "Subscriber-21"
serial "ELTX00000021"
profile shaping "Test"
template "Services"
exit
interface ont 1/1/1
description "Subscriber-22"
serial "ELTX00000022"
profile shaping "Test"
template "Services"
exit
interface ont 1/1/2
description "Subscriber-23"
serial "ELTX00000023"
profile shaping "Test"
template "Services"
exit
interface ont 1/1/3
description "Subscriber-24"
serial "ELTX00000024"
profile shaping "Test"
template "Services"
exit
interface ont 1/1/4
description "Subscriber-25"
serial "ELTX00000025"
profile shaping "Test"
template "Services"
exit
interface ont 1/2/0
description "Subscriber-26"
serial "ELTX00000026"
profile shaping "Test"
template "Services"
exit
interface ont 1/2/1
description "Subscriber-27"
serial "ELTX00000027"
profile shaping "Test"
template "Services"
exit
interface ont 1/2/2
description "Subscriber-28"
serial "ELTX00000028"
profile shaping "Test"
template "Services"
exit
interface ont 1/2/3
description "Subscriber-29"
serial "ELTX00000029"
profile shaping "Test"
template "Services"
exit
interface ont 1/2/4
description "Subscriber-30"
serial "ELTX00000030"
profile shaping "Test"
template "Services"
exit
ip igmp snooping slot 1 enable
exit
|
| Scroll Pagebreak |
|---|
| Блок кода | ||||||
|---|---|---|---|---|---|---|
| ||||||
configure terminal
management ip 172.16.99.10
management gateway 172.16.99.1
aaa
enable
authentication tacacs+
authorization tacacs+ privilege
authorization tacacs+ commands
accounting tacacs+ start-stop
accounting tacacs+ commands
tacacs-server host 172.16.99.210 encrypted-key miDTj7v3w9/qBg=
exit
profile cross-connect TR-069
outer vid 1000
user vid 1000
iphost enable
exit
profile cross-connect Internet
outer vid 1001
user vid 1001
exit
profile cross-connect IPTV
outer vid 1002
user vid 1002
multicast enable
exit
profile cross-connect Internet_br
ont-mode bridge
bridge group 10
outer vid 1003
user vid 1003
multicast enable
exit
profile ports IPTV
igmp multicast dynamic-entry 1 vid 1002 group 224.0.0.1 239.255.255.255
veip multicast enable
veip igmp downstream tag-control replace-tag
veip igmp downstream vid 1002
veip igmp upstream tag-control replace-tag
veip igmp upstream vid 1002
exit
profile ports Bridge_and_IPTV
igmp multicast dynamic-entry 1 vid 1002 group 224.0.0.1 239.255.255.255
port 1 multicast enable
port 1 bridge group 10
port 1 igmp downstream tag-control remove-tag
port 1 igmp downstream vid 1002
port 1 igmp upstream tag-control add-tag
port 1 igmp upstream vid 1003
exit
profile management ACS
url http://192.168.200.1:9595
username acs
password acsacs
exit
profile shaping Test
downstream 1 policer enable
downstream 1 policer commited-rate 19968
downstream 1 policer peak-rate 19968
exit
template Services
service 1 profile cross-connect "TR-069" dba "dba2"
define service 1 profile cross-connect
define service 1 profile dba
define service 1 profile iphost
service 2 profile cross-connect "Internet" dba "dba2"
define service 2 profile cross-connect
define service 2 profile dba
define service 2 profile iphost
service 3 profile cross-connect "IPTV" dba "dba2"
define service 3 profile cross-connect
define service 3 profile dba
define service 3 profile iphost
profile ports "IPTV"
define profile ports
exit
profile pppoe-ia pppoe-ia-2
circuit-id format "%PONSERIAL%"
remote-id format "%MNGIP%"
sessions-limit per-user 4
exit
profile dhcp-opt82 dhcp-opt82-2
circuit-id format "%PONSERIAL%"
remote-id format "%MNGIP%"
overwrite-opt82 enable
exit
ip ntp enable
ip ntp server 172.16.99.200
ip igmp snooping enable
vlan 999
name "Management"
exit
vlan 1000
name "TR-069"
exit
vlan 1001
name "Internet"
exit
vlan 1002
name "IPTV"
ip igmp snooping querier enable
ip igmp snooping querier ip-address 1.1.1.1
exit
vlan 1003
name "Internet_br"
exit
interface front-port 1/1
vlan allow 999-1003
exit
slot 1
type lc16g
interface ont 1/1/1
description "Subscriber-1"
serial ELTX00000001
profile shaping "Test"
template "Services"
exit
interface ont 1/1/2
description "Subscriber-2"
serial ELTX00000002
profile shaping "Test"
template "Services"
exit
interface ont 1/1/3
description "Subscriber-3"
serial ELTX00000003
profile shaping "Test"
template "Services"
exit
interface ont 1/1/4
description "Subscriber-4"
serial ELTX00000004
profile shaping "Test"
template "Services"
exit
interface ont 1/1/5
description "Subscriber-5"
serial ELTX00000005
profile shaping "Test"
template "Services"
exit
interface ont 1/2/1
description "Subscriber-6"
serial ELTX00000006
profile shaping "Test"
template "Services"
exit
interface ont 1/2/2
description "Subscriber-7"
serial ELTX00000007
profile shaping "Test"
template "Services"
exit
interface ont 1/2/3
description "Subscriber-8"
serial ELTX00000008
profile shaping "Test"
template "Services"
exit
interface ont 1/2/4
description "Subscriber-9"
serial ELTX00000009
profile shaping "Test"
template "Services"
exit
interface ont 1/2/5
description "Subscriber-10"
serial ELTX00000010
profile shaping "Test"
template "Services"
exit
interface ont 1/3/1
description "Subscriber-11"
serial ELTX00000011
profile shaping "Test"
template "Services"
exit
interface ont 1/3/2
description "Subscriber-12"
serial ELTX00000012
profile shaping "Test"
template "Services"
exit
interface ont 1/3/3
description "Subscriber-13"
serial ELTX00000013
profile shaping "Test"
template "Services"
exit
interface ont 1/3/4
description "Subscriber-14"
serial ELTX00000014
profile shaping "Test"
template "Services"
exit
interface ont 1/3/5
description "Subscriber-15"
serial ELTX00000015
profile shaping "Test"
template "Services"
exit
ip dhcp
snooping enable vlan 1-4094
opt82 profile dhcp-opt82-2
exit
ip pppoe
snooping enable
pppoe-ia profile pppoe-ia-2
exit
ip igmp proxy report enable
ip igmp proxy report range 224.0.0.0 239.255.255.255 from all to 1002
exit
slot 2
type lc16g
interface ont 2/1/1
description "Subscriber-16"
serial ELTX00000016
profile shaping "Test"
template "Services"
exit
interface ont 2/1/2
description "Subscriber-17"
serial ELTX00000017
profile shaping "Test"
template "Services"
exit
interface ont 2/1/3
description "Subscriber-18"
serial ELTX00000018
profile shaping "Test"
template "Services"
exit
interface ont 2/1/4
description "Subscriber-19"
serial ELTX00000019
profile shaping "Test"
template "Services"
exit
interface ont 2/1/5
description "Subscriber-20"
serial ELTX00000020
profile shaping "Test"
template "Services"
exit
interface ont 2/2/1
description "Subscriber-21"
serial ELTX00000021
profile shaping "Test"
template "Services"
exit
interface ont 2/2/2
description "Subscriber-22"
serial ELTX00000022
profile shaping "Test"
template "Services"
exit
interface ont 2/2/3
description "Subscriber-23"
serial ELTX00000023
profile shaping "Test"
template "Services"
exit
interface ont 2/2/4
description "Subscriber-24"
serial ELTX00000024
profile shaping "Test"
template "Services"
exit
interface ont 2/2/5
description "Subscriber-25"
serial ELTX00000025
profile shaping "Test"
template "Services"
exit
interface ont 2/3/1
description "Subscriber-26"
serial ELTX00000026
profile shaping "Test"
template "Services"
exit
interface ont 2/3/2
description "Subscriber-27"
serial ELTX00000027
profile shaping "Test"
template "Services"
exit
interface ont 2/3/3
description "Subscriber-28"
serial ELTX00000028
profile shaping "Test"
template "Services"
exit
interface ont 2/3/4
description "Subscriber-29"
serial ELTX00000029
profile shaping "Test"
template "Services"
exit
interface ont 2/3/5
description "Subscriber-30"
serial ELTX00000030
profile shaping "Test"
template "Services"
exit
ip dhcp
snooping enable vlan 1-4094
opt82 profile dhcp-opt82-2
exit
ip pppoe
snooping enable
pppoe-ia profile pppoe-ia-2
exit
ip igmp proxy report enable
ip igmp proxy report range 224.0.0.0 239.255.255.255 from all to 1002
exit
exit
commit
exit
|