您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > C/C++资料 > 最详细的C300开局脚本
en(密码zxr10)进入特权模式ZXAN#dircfg查看是否有过配置如果看到startrun.savstartrun.dat那么表示有配置,需要删除配置,然后重启设备ZXAN#:deletecfgstartrun.savZXAN#:deletecfgstartrun.dat删除配置Reboot重启设备重启完之后en(密码zxr10)进入特权模式oconfigureterminal进入全局模式add-rackrackno1racktypeIEC19添加机架add-shelfrackno1shelfno1shelftypeIEC_SHELF添加框add-cardrackno1shelfno1slotno0PRWGadd-cardrackno1shelfno1slotno1PRWGadd-cardrackno1shelfno1slotno2ETGOadd-cardrackno1shelfno1slotno3ETGOadd-cardrackno1shelfno1slotno4ETGOadd-cardrackno1shelfno1slotno5ETGOadd-cardrackno1shelfno1slotno6ETGOadd-cardrackno1shelfno1slotno7ETGOadd-cardrackno1shelfno1slotno8ETGOadd-cardrackno1shelfno1slotno9ETGOadd-cardrackno1shelfno1slotno12ETGOadd-cardrackno1shelfno1slotno13ETGOadd-cardrackno1shelfno1slotno14ETGOadd-cardrackno1shelfno1slotno15ETGOadd-cardrackno1shelfno1slotno16ETGOadd-cardrackno1shelfno1slotno17ETGOadd-cardrackno1shelfno1slotno18CICGadd-cardrackno1shelfno1slotno19GUSQadd-cardrackno1shelfno1slotno20GUSQ添加板卡,如果当前插槽上没有板卡的话,就不要添加hostnameMXYQQ-C300-16设备命名命名规则为:局名缩写+分区缩写-设备名称-序列号vlandatabasevlan1,6,9-39,2010-2039,2500-2699,3991-3992vlan3997,4000ex创建VLANinterfacevlan9ipaddress10.169.104.41255.255.255.0ex进入VLAN9(OLT管理vlan)添加IP地址和子网掩码interfacevlan3997ipproxy-arpEx进入VLAN3997(VLAN3997为语音)开启代理ARPinterfacevlan6ipaddress172.16.0.1255.255.224.0ex进入VLAN6(ONU管理VLAN)添加IP地址mpnatonu-mng-vlan6定义VLAN6为ONU管理VLANiproute123.124.120.0255.255.255.010.169.104.1ntpserver123.124.120.66ntpsource10.169.104.41ntpenable添加静态路由添加时间同步服务器开启时间同步clocktimezoneBJT80时区为北京时间interfacevlan3991ipaddress10.100.60.154255.255.255.252ipospfhello-interval3ipospfnetworkpoint-to-pointex进入VLAN3991(VLAN3991为OSPF通讯VLAN)添加ip地址ospf每三秒发送一次hello报文osfp为点对点模式interfacegei_1/19/1switchportmodehybridswitchportdefaultvlan3991nonegotiationautoduplexfullspeed100ex进入1筐19槽1口接口模式为混合模式对VLAN3991进行剥离标签关闭接口自动协商全双工模式速率为100M?interfacevlan3992ipaddress10.100.60.158255.255.255.252ipospfcost10000ipospfhello-interval3ipospfnetworkpoint-to-pointex进入VLAN3992(VLAN3992为OSPF通讯VLAN)添加ip地址OSPF-COST值设定10000ospf每三秒发送一次hello报文osfp为点对点模式interfacegei_1/20/1switchportmodehybridswitchportdefaultvlan3992nonegotiationautoduplexfullspeed100ex进入1筐20槽1口接口模式为混合模式对VLAN3991进行剥离标签关闭接口自动协商全双工模式速率为100M?routerospf900network10.100.60.1520.0.0.3area20network10.100.60.1560.0.0.3area20ex创建ospf进程900发布IP地址并且划分区域20interfacesmartgroup1port-protectdisableswitchportmodehybridswitchportvlan9-39,2500-2599tagex进入聚合组1关闭用户隔离(端口保护)功能模式为混合模式定义打标记的VLANinterfacesmartgroup2port-protectdisableswitchportmodehybridswitchportvlan2010-2039,2600-2699,4000tagex进入聚合组2关闭用户隔离(端口保护)功能模式为混合模式定义打标记的VLAN?interfacegei_1/19/3hybrid-attributefibernonegotiationautoSpeed1000duplexfullflowcontroldisableport-protectdisableuplink-isolatedisableswitchportmodehybridswitchportvlan9-39,2500-2599tagsmartgroup1modeactiveex进入1筐19槽3口混合模式为光纤关闭接口自动协商速率为1000M全双工模式关闭流量控制关闭用户隔离(端口保护)功能混合模式定义打标记的VLAN属于聚合组1interfacegei_1/19/4hybrid-attributefibernonegotiationautoSpeed1000duplexfullflowcontroldisableport-protectdisableuplink-isolatedisableswitchportmodehybridswitchportvlan2010-2039,2600-2699,4000tagsmartgroup2modeactiveex进入1筐19槽4口混合模式为光纤关闭接口自动协商速率为1000M?全双工模式关闭流量控制关闭用户隔离(端口保护)功能混合模式定义打标记的VLAN属于聚合组2interfacegei_1/20/3hybrid-attributefibernonegotiationautoSpeed1000duplexfullflowcontroldisableport-protectdisableuplink-isolatedisableswitchportmodehybridswitchportvlan9-39,2500-2599tagsmartgroup1modeactiveex进入1筐20槽3口混合模式为光纤关闭接口自动协商速率为1000M全双工模式关闭流量控制关闭用户隔离(端口保护)功能混合模式定义打标记的VLAN属于聚合组1interfacegei_1/20/4hybrid-attributefibernonegotiationautoSpeed1000duplexfullflowcontroldisableport-protectdisableuplink-isolatedisableswitchportmodehybridswitchportvlan2010-2039,2600-2699,4000tagsmartgroup2modeactiveex进入1筐20槽4口混合模式为光纤关闭接口自动协商速率为1000M全双工模式关闭流量控制关闭用户隔离(端口保护)功能混合模式定义打标记的VLAN属于聚合组2snmp-servercommunitypublicviewallviewrwsnmp-serverhost123.124.120.66trapversion2cpublicenableNOTIFICATIONSisnmsserverserver-index1udp-port162snmp-serverhost123.124.120.70trapversion2cpublicenableNOTIFICATIONSisnmsserverserver-index2udp-port162创建SNMP并且设置服务器IP地址eponems-report1/2unauthonuenableems-report1/3unauthonuenableems-report1/4unauthonuenableems-report1/5unauthonuenableems-report1/6unauthonuenableems-report1/7unauthonuenableems-report1/8unauthonuenableems-report1/9unauthonuenableems-report1/12unauthonuenableems-report1/13unauthonuenableems-report1/14unauthonuenableems-report1/15unauthonuenableems-report1/16unauthonuenableems-report1/17unauthonuenable设备PON板卡用户自动认证voip-vlanprofileCNCRMStag-modetagcvlan3997priority7h248-profileCNCRMSregister-serverip10.0.98.2port2944h248-profileCNCRMSbackup-register-serverip10.0.98.66port2944h248-profileCNCRMSheartbeat-modeh248ctcrtp-link-testdisablecycle120count2h248-profileCNCRMSmgregister-modeipport2944onu-sla-profileprofile-namecreatepubliconu-sla-profileprofile-setpublicdownstreammaximum999994maxburst16777215onu-sla-profileprofile-setpublicupstreamassured10000maximum25000创建语音IP、VLAN、软交换协议模板、带宽模板auto-dispatch-setZTE-F821disable关闭ZTE-F821Exponip-poolp1begin172.16.0.2end172.16.31.254255.255.224.0vlan6priority5route123.124.120.0255.255.255.0172.16.0.1ip-poo
本文标题:最详细的C300开局脚本
链接地址:https://www.777doc.com/doc-7028035 .html