1 telnet

[Huawei]user-interface vty 0 4

[Huawei-ui-vty0-4]authentication-modepassword

[Huawei-ui-vty0-4]set  authentication password  cipher 123456

[Huawei-ui-vty0-4]quit

[Huawei]super password  cipher 123456

2 配互连

[Huawei]interface Vlanif 100

[Huawei]interface Vlanif 100    

[Huawei-Vlanif100]ip address192.168.100.1 255.255.255.0 [Huawei-Vlanif100]undo shutdown

3 配置端口限速

[Huawei]interfaceGigabitEthernet 0/0/1

[Huawei-GigabitEthernet0/0/1]qoslr outbound cir 60000 cbs 64000

[Huawei-GigabitEthernet0/0/1]qoslr inbound cir 60000 cbs 64000

[Huawei-GigabitEthernet0/0/1]displaythis

interface GigabitEthernet0/0/1

port link-type access

qos lr outbound cir 60000 cbs64000

qos lr inbound cir 60000 cbs64000

4 清空交换机配置

<Huawei>reset saved-configuration

5 super 密码

[Huawei]superpassword  cipher 123456

6 配默认路由静态路由

默认路由

[Huawei]ip route-static0.0.0.0 0.0.0.0 192.168.10.2

静态路由

[Huawei]ip route-static 192.168.1.1 255.255.255.0 10.1.1.1

7 ACL

[Huawei]acl number 2000  

[Huawei-acl-basic-2000]rulepermit source 192.168.1.1 0.0.0.255

8 VLAN 将端口加入VLAN

[Huawei]vlan 100

[Huawei]interface GigabitEthernet 0/0/1

[Huawei-GigabitEthernet0/0/1]portlink-type access

[Huawei-port-group-discard]portdefault vlan 100

[Huawei]interfaceGigabitEthernet 0/0/1

[Huawei-GigabitEthernet0/0/1]displaythis

interface GigabitEthernet0/0/1

port link-type access

9 配置trunk trunk 可以通过的VLAN

[MDY-3700-Ethernet0/0/2]port link-type trunk

[MDY-3700-Ethernet0/0/2]port trunk allow-pass vlan 100 200

建组将多个端口加到组进行配置

[Huawei]port-group 1

[Huawei-port-group-1]group-member

端口聚合

[Huawei]interface Eth-Trunk 1

[Huawei-GigabitEthernet0/0/1]eth-trunk1

[Huawei-GigabitEthernet0/0/2]eth-trunk1

[Huawei]dis interface brief

Interface                   PHY   Protocol InUti OutUti   inErrors outErrors

Eth-Trunk1                  down  down       0%     0%          0          0

 GigabitEthernet0/0/1      down down        0%     0%         0          0

 GigabitEthernet0/0/2      down down        0%     0%         0          0

 GigabitEthernet0/0/3        down down        0%     0%         0  

       0

15端口描述和vlan描述

[Huawei-Ethernet0/0/1]description 222

[Huawei-vlan200]description 111

时间设置

<Huawei>clock datetime19:08 2013-1-5