| enable | |
| 密码zxr10 | |
| delete cfg startrun.* | 清空出厂默认配置文件 |
| y | |
| reboot | |
| con t | |
| add-rack rackno 1 racktype IEC19 | 添加机架 |
| add-shelf rackno 1 shelfno 1 shelftype IEC_SHELF | 添加机框 |
| add-card rackno 1 shelfno 1 slotno 0 PRWG | 添加业务单板 |
| add-card rackno 1 shelfno 1 slotno 1 PRWG | |
| add-card rackno 1 shelfno 1 slotno 2 GTGQ | |
| add-card rackno 1 shelfno 1 slotno 3 GTGQ | |
| add-card rackno 1 shelfno 1 slotno 4 GTGQ | |
| add-card slotno 18 CICG | |
| add-card slotno 19 GUSQ | 添加上联板 |
| vlan 641 | 创建OLT管理vlan |
| exit | |
| interface vlan 641 | 配置OLT管理地址 |
| ip address 172.31.13.10 255.255.252.0 | |
| exit | |
| ip route 0.0.0.0 0.0.0.0 172.31.12.1 | 配置路由 |
| interface gei_1/19/3 | 进入上联口 |
| hybrid-attribute fiber | hybrid-attribute copper |
| switchport mode hybrid | 修改端口模式为混合模式 |
| no negotiation auto | 关闭自适应 |
| speed 1000 | 强制千兆,对端交换机上也需强制千兆 |
| duplex full | 强制全双工 |
| switchport default vlan 4051 | 配置缺省vlan为2,默认为1,防止网络风暴 |
| switchport vlan 641 tag | 透传OLT管理vlan |
| exit | |
| hostname YZ-GuanJiaKou-ZTE-C300 | 系统重命名 |
| ntp enable | 配置sntp,与网管服务器同步时间 |
| ntp server 172.31.12.4 version 1 | |
| clock timezone beijing 8 | |
| snmp-server community public view allview rw | 配置snmp,否则网管上管理不到 |
| snmp-server host 172.31.12.4 trap version 2c public enable NOTIFICATIONS server-index 1 udp-port 162 |
| exit | |
| clock set 11:00:04 Dec 29 2014 | 设置系统时间 |
| wr | |