最详细的C300开局脚本之欧阳数创编.docx
《最详细的C300开局脚本之欧阳数创编.docx》由会员分享,可在线阅读,更多相关《最详细的C300开局脚本之欧阳数创编.docx(24页珍藏版)》请在冰豆网上搜索。
最详细的C300开局脚本之欧阳数创编
en(密码zxr10)
时间:
2021.03.02
创作:
欧阳数
进入特权模式
ZXAN#dircfg
查看是否有过配置
如果看到
startrun.sav
startrun.dat
那么表示有配置,需要删除配置,然后重启设备
ZXAN#:
deletecfgstartrun.sav
ZXAN#:
deletecfgstartrun.dat
删除配置
Reboot
重启设备
重启完之后
en(密码zxr10)
进入特权模式
oconfigureterminal
进入全局模式
add-rackrackno1racktypeIEC19
添加机架
add-shelfrackno1shelfno1shelftypeIEC_SHELF
添加框
add-cardrackno1shelfno1slotno0PRWG
add-cardrackno1shelfno1slotno1PRWG
add-cardrackno1shelfno1slotno2ETGO
add-cardrackno1shelfno1slotno3ETGO
add-cardrackno1shelfno1slotno4ETGO
add-cardrackno1shelfno1slotno5ETGO
add-cardrackno1shelfno1slotno6ETGO
add-cardrackno1shelfno1slotno7ETGO
add-cardrackno1shelfno1slotno8ETGO
add-cardrackno1shelfno1slotno9ETGO
add-cardrackno1shelfno1slotno12ETGO
add-cardrackno1shelfno1slotno13ETGO
add-cardrackno1shelfno1slotno14ETGO
add-cardrackno1shelfno1slotno15ETGO
add-cardrackno1shelfno1slotno16ETGO
add-cardrackno1shelfno1slotno17ETGO
add-cardrackno1shelfno1slotno18CICG
add-cardrackno1shelfno1slotno19GUSQ
add-cardrackno1shelfno1slotno20GUSQ
添加板卡,如果当前插槽上没有板卡的话,就不要添加
hostnameMXYQQ-C300-16
设备命名
命名规则为:
局名缩写+分区缩写-设备名称-序列号
vlandatabase
vlan1,6,9-39,2010-2039,2500-2699,3991-3992
vlan3997,4000
ex
创建VLAN
interfacevlan9
ipaddress10.169.104.41255.255.255.0
ex
进入VLAN9(OLT管理vlan)
添加IP地址和子网掩码
interfacevlan3997
ipproxy-arp
Ex
进入VLAN3997(VLAN3997为语音)
开启代理ARP
interfacevlan6
ipaddress172.16.0.1255.255.224.0
ex
进入VLAN6(ONU管理VLAN)
添加IP地址
mpnatonu-mng-vlan6
定义VLAN6为ONU管理VLAN
iproute123.124.120.0255.255.255.010.169.104.1
ntpserver123.124.120.66
ntpsource10.169.104.41
ntpenable
添加静态路由
添加时间同步服务器
开启时间同步
clocktimezoneBJT80
时区为北京时间
interfacevlan3991
ipaddress10.100.60.154255.255.255.252
ipospfhello-interval3
ipospfnetworkpoint-to-point
ex
进入VLAN3991(VLAN3991为OSPF通讯VLAN)
添加ip地址
ospf每三秒发送一次hello报文
osfp为点对点模式
interfacegei_1/19/1
switchportmodehybrid
switchportdefaultvlan3991
nonegotiationauto
duplexfull
speed100
ex
进入1筐19槽1口
接口模式为混合模式
对VLAN3991进行剥离标签
关闭接口自动协商
全双工模式
速率为100M?
interfacevlan3992
ipaddress10.100.60.158255.255.255.252
ipospfcost10000
ipospfhello-interval3
ipospfnetworkpoint-to-point
ex
进入VLAN3992(VLAN3992为OSPF通讯VLAN)
添加ip地址
OSPF-COST值设定10000
ospf每三秒发送一次hello报文
osfp为点对点模式
interfacegei_1/20/1
switchportmodehybrid
switchportdefaultvlan3992
nonegotiationauto
duplexfull
speed100
ex
进入1筐20槽1口
接口模式为混合模式
对VLAN3991进行剥离标签
关闭接口自动协商
全双工模式
速率为100M?
routerospf900
network10.100.60.1520.0.0.3area20
network10.100.60.1560.0.0.3area20
ex
创建ospf进程900
发布IP地址并且划分区域20
interfacesmartgroup1
port-protectdisable
switchportmodehybrid
switchportvlan9-39,2500-2599tag
ex
进入聚合组1
关闭用户隔离(端口保护)功能
模式为混合模式
定义打标记的VLAN
interfacesmartgroup2
port-protectdisable
switchportmodehybrid
switchportvlan2010-2039,2600-2699,4000tag
ex
进入聚合组2
关闭用户隔离(端口保护)功能
模式为混合模式
定义打标记的VLAN?
interfacegei_1/19/3
hybrid-attributefiber
nonegotiationauto
Speed1000
duplexfull
flowcontroldisable
port-protectdisable
uplink-isolatedisable
switchportmodehybrid
switchportvlan9-39,2500-2599tag
smartgroup1modeactive
ex
进入1筐19槽3口
混合模式为光纤
关闭接口自动协商
速率为1000M
全双工模式
关闭流量控制
关闭用户隔离(端口保护)功能
混合模式
定义打标记的VLAN
属于聚合组1
interfacegei_1/19/4
hybrid-attributefiber
nonegotiationauto
Speed1000
duplexfull
flowcontroldisable
port-protectdisable
uplink-isolatedisable
switchportmodehybrid
switchportvlan2010-2039,2600-2699,4000tag
smartgroup2modeactive
ex
进入1筐19槽4口
混合模式为光纤
关闭接口自动协商
速率为1000M?
全双工模式
关闭流量控制
关闭用户隔离(端口保护)功能
混合模式
定义打标记的VLAN
属于聚合组2
interfacegei_1/20/3
hybrid-attributefiber
nonegotiationauto
Speed1000
duplexfull
flowcontroldisable
port-protectdisable
uplink-isolatedisable
switchportmodehybrid
switchportvlan9-39,2500-2599tag
smartgroup1modeactive
ex
进入1筐20槽3口
混合模式为光纤
关闭接口自动协商
速率为1000M
全双工模式
关闭流量控制
关闭用户隔离(端口保护)功能
混合模式
定义打标记的VLAN
属于聚合组1
interfacegei_1/20/4
hybrid-attributefiber
nonegotiationauto
Speed1000
duplexfull
flowcontroldisable
port-protectdisable
uplink-isolatedisable
switchportmodehybrid
switchportvlan2010-2039,2600-2699,4000tag
smartgroup2modeactive
ex
进入1筐20槽4口
混合模式为光纤
关闭接口自动协商
速率为1000M
全双工模式
关闭流量控制
关闭用户隔离(端口保护)功能
混合模式
定义打标记的VLAN
属于聚合组2
snmp-servercommunitypublicviewallviewrw
snmp-serverhost123.124.120.66trapversion2cpublicenableNOTIFICATIONSisnmsserverserver-index1udp-port162
snmp-serverhost123.124.120.70trapversion2cpublicenableNOTIFICATIONSisnmsserverserver-index2udp-port162
创建SNMP并且设置服务器IP地址
epon
ems-report1/2unauthonuenable
ems-report1/3unauthonuenable
ems-report1/4unauthonuenable
ems-report1/5unauthonuenable
ems-report1/6unauthonuenable
ems-report1/7unauthonuenable
ems-report1/8unauthonuenable
ems-report1/9unauthonuenable
ems-report1/12unauthonuenable
ems-report1/13unauthonuenable
ems-report1/14unauthonuenable
ems-report1/15unauthonuenable
ems-report1/16unauthonuenable
ems-report1/17unauthonuenable
设备PON板卡用户自动认证
voip-vlanprofileCNCRMStag-modetagcvlan3997priority7
h248-profileCNCRMSregister-serverip10.0.98.2port2944
h248-profileCNCRMSbackup-register-serverip10.0.98.66port2944
h248-profileCNCRMSheartbeat-modeh248ctcrtp-link-testdisablecycle120count2
h248-profileCNCRMSmgregister-modeipport2944
onu-sla-profileprofile-namecreatepublic
onu-sla-profileprofile-setpublicdownstreammaximum999994maxburst16777215
onu-sla-profileprofile-setpublicupstreamassured10000maximum25000
创建语音IP、VLAN、软交换协议模板、带宽模板
auto-dispatch-setZTE-F821disable
关闭ZTE-F821
Ex
pon
ip-poolp1begin172.16.0.2end172.16.31.254255.255.224.0vlan6priority5route123.124.120.0255.255.255.0172.16.0.1
ip-pool-bindepon-olt_1/2/1p1
ip-pool-bindepon-olt_1/2/2p1
ip-pool-bindepon-olt_1/2/3p1
ip-pool-bindepon-olt_1/2/4p1
ip-pool-bindepon-olt_1/2/5p1
ip-pool-bindepon-olt_1/2/6p1
ip-pool-bindepon-olt_1/2/7p1
ip-pool-bindepon-olt_1/2/8p1
ip-pool-bindepon-olt_1/3/1p1
ip-pool-bindepon-olt_1/3/2p1
ip-pool-bindepon-olt_1/3/3p1
ip-pool-bindepon-olt_1/3/4p1
ip-pool-bindepon-olt_1/3/5p1
ip-pool-bindepon-olt_1/3/6p1
ip-pool-bindepon-olt_1/3/7p1
ip-pool-bindepon-olt_1/3/8p1
ip-pool-bindepon-olt_1/4/1p1
ip-pool-bindepon-olt_1/4/2p1
ip-pool-bindepon-olt_1/4/3p1
ip-pool-bindepon-olt_1/4/4p1
ip-pool-bindepon-olt_1/4/5p1
ip-pool-bindepon-olt_1/4/6p1
ip-pool-bindepon-olt_1/4/7p1
ip-pool-bindepon-olt_1/4/8p1
ip-pool-bindepon-olt_1/5/1p1
ip-pool-bindepon-olt_1/5/2p1
ip-pool-bindepon-olt_1/5/3p1
ip-pool-bindepon-olt_1/5/4p1
ip-pool-bindepon-olt_1/5/5p1
ip-pool-bindepon-olt_1/5/6p1
ip-pool-bindepon-olt_1/5/7p1
ip-pool-bindepon-olt_1/5/8p1
ip-pool-bindepon-olt_1/6/1p1
ip-pool-bindepon-olt_1/6/2p1
ip-pool-bindepon-olt_1/6/3p1
ip-pool-bindepon-olt_1/6/4p1
ip-pool-bindepon-olt_1/6/5p1
ip-pool-bindepon-olt_1/6/6p1
ip-pool-bindepon-olt_1/6/7p1
ip-pool-bindepon-olt_1/6/8p1
ip-pool-bindepon-olt_1/7/1p1
ip-pool-bindepon-olt_1/7/2p1
ip-pool-bindepon-olt_1/7/3p1
ip-pool-bindepon-olt_1/7/4p1
ip-pool-bindepon-olt_1/7/5p1
ip-pool-bindepon-olt_1/7/6p1
ip-pool-bindepon-olt_1/7/7p1
ip-pool-bindepon-olt_1/7/8p1
ip-pool-bindepon-olt_1/8/1p1
ip-pool-bindepon-olt_1/8/2p1
ip-pool-bindepon-olt_1/8/3p1
ip-pool-bindepon-olt_1/8/4p1
ip-pool-bindepon-olt_1/8/5p1
ip-pool-bindepon-olt_1/8/6p1
ip-pool-bindepon-olt_1/8/7p1
ip-pool-bindepon-olt_1/8/8p1
ip-pool-bindepon-olt_1/9/1p1
ip-pool-bindepon-olt_1/9/2p1
ip-pool-bindepon-olt_1/9/3p1
ip-pool-bindepon-olt_1/9/4p1
ip-pool-bindepon-olt_1/9/5p1
ip-pool-bindepon-olt_1/9/6p1
ip-pool-bindepon-olt_1/9/7p1
ip-pool-bindepon-olt_1/9/8p1
ip-pool-bindepon-olt_1/12/1p1
ip-pool-bindepon-olt_1/12/2p1
ip-pool-bindepon-olt_1/12/3p1
ip-pool-bindepon-olt_1/12/4p1
ip-pool-bindepon-olt_1/12/5p1
ip-pool-bindepon-olt_1/12/6p1
ip-pool-bindepon-olt_1/12/7p1
ip-pool-bindepon-olt_1/12/8p1
ip-pool-bindepon-olt_1/13/1p1
ip-pool-bindepon-olt_1/13/2p1
ip-pool-bindepon-olt_1/13/3p1
ip-pool-bindepon-olt_1/13/4p1
ip-pool-bindepon-olt_1/13/5p1
ip-pool-bindepon-olt_1/13/6p1
ip-pool-bindepon-olt_1/13/7p1
ip-pool-bindepon-olt_1/13/8p1
ip-pool-bindepon-olt_1/14/1p1
ip-pool-bindepon-olt_1/14/2p1
ip-pool-bindepon-olt_1/14/3p1
ip-pool-bindepon-olt_1/14/4p1
ip-pool-bindepon-olt_1/14/5p1
ip-pool-bindepon-olt_1/14/6p1
ip-pool-bindepon-olt_1/14/7p1
ip-pool-bindepon-olt_1/14/8p1
ip-pool-bindepon-olt_1/15/1p1
ip-pool-bindepon-olt_1/15/2p1
ip-pool-bindepon-olt_1/15/3p1
ip-pool-bindepon-olt_1/15/4p1
ip-pool-bindepon-olt_1/15/5p1
ip-pool-bindepon-olt_1/15/6p1
ip-pool-bindepon-olt_1/15/7p1
ip-pool-bindepon-olt_1/15/8p1
ip-pool-bindepon-olt_1/16/1p1
ip-pool-bindepon-olt_1/16/2p1
ip-pool-bindepon-olt_1/16/3p1
ip-pool-bindepon-olt_1/16/4p1
ip-pool-bindepon-olt_1/16/5p1
ip-pool-bindepon-olt_1/16/6p1
ip-pool-bindepon-olt_1/16/7p1
ip-pool-bindepon-olt_1/16/8p1
ip-pool-bindepon-olt_1/17/1p1
ip-pool-bindepon-olt_1/17/2p1
ip-pool-bindepon-olt_1/17/3p1
ip-pool-bindepon-olt_1/17/4p1
ip-pool-bindepon-olt_1/17/5p1
ip-pool-bindepon-olt_1/17/6p1
ip-pool-bindepon-olt_1/17/7p1
ip-pool-bindepon-olt_1/17/8p1
向ONU下发IP
onu-typeZTE-F400epondescription4FE
onu-ty