H3CS7503基本操作命令
1. 配置OLT接口vlan [H3C]interface Olt 2/0/1
[H3C -Olt2/0/1] port hybrid vlan 1 to 4094 tagged (或untagged)
2. 创建ONU逻辑接口 [H3C]interface Olt 2/0/1
[H3C -Olt2/0/1]using onu 1 to 32 (假设此OLT接口使用了1分32的分光器,)
Done. [H3C -Olt2/0/1]
3. 配置ONU设备MAC地址和ONU逻辑接口绑
定 [H3C] interface onu 2/0/1:1
[H3C-Onu2/0/1:1] bind onuid 00e0-fc70-2d6d
4. 配置ONU逻辑接口为trunk模式 [H3C] interface onu 2/0/1:1
[H3C-Onu2/0/1:1] port link-type trunk
5. 配置ONU逻辑接口PVID (ONU上行PON口打vlan标
签) [H3C] interface onu 2/0/1:1
[H3C-Onu2/0/1:1] port trunk pvid vlan 2
6.配置ONU PON接口的上行带宽 [H3C] interface onu 2/0/1:1
[H3C-Onu2/0/1:1] upstream-sla maximum-bandwidth 1600
7. 配置ONU PON接口的下行带宽 [H3C] interface onu 2/0/1:1
[H3C-Onu2/0/1:1] bandwidth downstream max-bandwidth 2000
8. 配置ONU以太网uni接口的上行带宽 [H3C] interface onu 2/0/1:1 [H3C-Onu2/0/1:1] uni 1 port-policy inbound cir 1024
9. 配置ONU以太网uni接口的上行带宽 [H3C] interface onu 2/0/1:1 [H3C-Onu2/0/1:1] uni 1 port-policy inbound cir 1024
10. 配置ONU以太网uni接口端口隔
离 [H3C] interface onu 2/0/1:1 [H3C-Onu2/0/1:1] uni 1 port-isolate 11. 配置ONU以太网uni接口打vlan标签 [H3C] interface onu 2/0/1:1 [H3C-Onu2/0/1:1] uni 1 vlan-mode tag pvid 101
12. 配置上行GE接口协商模
式 [H3C] interface G 2/1/1 [H3C-Gigabit 2/1/1] speed 1000 [H3C-Gigabit 2/1 /1] duplex full
13. ONU注册信息显示 [H3C] display onuinfo slot 2
14. 查询ONU注册、注销命令
[H3C] display onu-event interface onu 2/0/8:1 Date Time ONU Event ONU Status 2006/06/28 13:57:03 Registration Up 2006/06/28 13:57:06 Deregist ration Down
15. 重启ONU
[H3C] interface onu 2/0/8:1 [H3C-Onu2/0/8:1] reboot onu
16. 配置设备名称 [H3C]sysname HTSM [HTSM]
17. 配置管理接口,管理vlan
[H3C]vlan 4 (假设vlan 4 为管理vlan)
H3C-vlan3]quit
[H3C] interface GigabitEthernet 1/1/1 [H3C –
Giga1/1/1]port link-type trunk [H3C –
Giga1/1/1]port trunk permit vlan 4 [H3C –Giga1/1/1]quit [H3C]
上行接口如果直接接电脑,需要配置上行接口为access模
式 [H3C] interface GigabitEthernet 1/1/1 [H3C –
Giga1/1/1]port link-type access [H3C –
Giga1/1/1]port access vlan 4 [H3C –Giga1/1/1]quit
18. 配置设备管理IP地址,网
关 [H3C] interface Vlan-interface 4 [H3C -Vlan-interface4]
%Oct 14 14:18:59:276 2009 H3C IFNET/4/LINK UPDOWN: Vlan-interface4 001: link status is UP
[H3C -Vlan-interface4] ip address 24 %Oct 14 14:19:08:283 2009 H3C IF NET/4/UPDOWN: Line protocol on the interface Vlan-interface4 is UP [H3 C -Vlan-interface4] quit
[H3C] ip route-static
19. 配置DHCP [H3C] dhcp enable
[H3C] dhcp rver ip-pool 1
[Abiao-dhcp-pool-1] network 24
[Abiao-dhcp-pool-1] gateway-list [Abiao-dhcp-pool-1] dns [Abiao-dhcp-pool-1] quit [H3C] interface Vlan-interface 1
[H3C -Vlan-interface4] ip address
20. 配置OSPF [H3C] ospf
[Abiao-ospf-1] area
[Abiao-ospf-1-area- network [Abiao-ospf-1-area- area
[Abiao-ospf-1-area- network [Abiao-ospf-1-area- quit [Abiao-ospf-1] qui t
21. 配置telnet登陆账号及telnet服
务 [H3C_OLT_LCGY] telnet rver enable % Start Telnet rver [H3C_OLT _LCGY]
[H3C_OLT_LCGY] local-ur admin (管理员户) New local ur added. [H3C_OLT_LCGY-lur-admin] password simple h3c [H3C_OLT_LCGY-lu r-admin] rvice-type telnet
[H3C_OLT_LCGY-lur-admin] authorization-attribute level 3 [H3C_OLT_L
CGY-lur-admin] quit [H3C_OLT_LCGY]
[H3C_OLT_LCGY] ur-interface vty 0 4
[H3C_OLT_LCGY_vty_0_4] authentication mode scheme [H3C_OLT_LCGY _vty_0_4] quit [H3C_OLT_LCGY]
22. 配置ACL访问控制列表
举例:禁止通过ONU1 设备接入的客户端访问Server ( IP 地址
为 [H3C] acl number 3000
[H3C-acl-standard-3000] rule 10 deny ip source any destination
[H3C-acl-standard-3000] quit [H3C] traffic classifier c_1
[H3C-classifier-c_1] if-match acl 3000 [H3C-classifier-c_1] quit [H3C] traffi c behavior b_1
[H3C-behavior-b_1] filter deny [H3C-behavior-b_1] quit [ H3C] qos policy p_1
[H3C-qospolicy-p_1] classifier c_1 behavior b_1 [H3C-qospolicy-p_1] quit [H3C] interface Onu 1/0/1:1
[H3C-Onu1/0/1:1] qos apply policy p_1 inbound
23. 配置网管snmp参数 [H3C_OLT_LCGY]snmp-agent
[H3C_OLT_LCGY]snmp-agent community read noc-911 acl 2000 [H3C_OL T_LCGY]snmp-agent community write noc-007 acl 2000 [H3C_OLT_LCGY] snmp-agent sys-info version all [H3C_OLT_LCGY]snmp-agent trap enable
[H3C_OLT_LCGY]snmp-agent target-host trap address udp-domain para ms curityname curity v1 [H3C_OLT_LCGY]
24. 创建vlan
[H3C_OLT_LCGY]vlan all
................ Done. [ H3C_OLT_LCGY]