Add port to port group inside!!
Port-group 1 Create group 1group-member gigabitethernet 0/0/1 to gigabitethernet 0/0/10 add 1 to 10 join to group 1port Link-type Access interface type for access mode PO RT Access VLAN 100 is zoned into VLAN 100orvlan 1200[huawei-vlan1200]port gigabitethernet 0/0/1 to 0/0/3
Creating VLANs, configuring Trunks
[Huawei]vlan 1200 Create Vlan1200[huawei-vlan1200]q[huawei]vlan 1201[huawei-vlan1201]q[huawei]int GigabitEthernet 0/0/1[ Huawei-gigabitethernet0/0/1]port link-type Trunk Configuration trunk mode [huawei-gigabitethernet0/0/1]port trunk allow-pass VLAN [Hu Awei-gigabitethernet0/0/1]port Trunk allow-pass VLAN 1200 allows Vlan1200,1201[huawei-gigabitethernet0/0/1]port trunk Allow-pass VLAN 1201
To configure aggregations:
[Huawei]int eth-trunk 1 Create aggregation Group [huawei-eth-trunk1]q[huawei]int gigabitethernet 0/0/3 Add ports to the aggregation group [huawei-gigabitethernet 0/0/3]eth-trunk 1[huawei-gigabitethernet0/0/3]int gigabitethernet 0/0/2[huawei-gigabitethernet0/0/2]eth-trunk 1[ Huawei-gigabitethernet0/0/2]int gigabitethernet 0/0/4[huawei-gigabitethernet0/0/4]eth-trunk 1
To configure the trunk on the basis of aggregation:
[Huawei]int eth-trunk 1[huawei-eth-trunk1]port link-type trunk [huawei-eth-trunk1]port trunk allow-pass VLAN 1200[ Huawei-eth-trunk1]port Trunk Allow-pass VLAN 1201
To configure remote logins:
[Huawei]aaa[huawei-aaa]local-user Test password cipher test create test user encryption method for cipher password for test[huawei-aaa]local-user test Service-type http SSH telnet Web application to Http,ssh,telnet,web[huawei-aaa]local-user Test level 3 User's permission mode, LEVEL3 to maximum permissions [huawei-a Aa]q[huawei]user-interface vty 0 4 Enter virtual terminal [Huawei-ui-vty0-4]authentication-mode AAA authentication Mode using AAA model [HUAWEI-UI-VTY0-4]Q
Turn on SNMP (typically used to monitor the switch)
[H3c]snmp-agent sys-info version v2c[h3c]snmp-agent Community Read Monitor[h3c]snmp-agent trap enable[h3c]snmp-agent Target-host Trap Address Udp-domain 172.10.0.251 Udp-port 162 params securityname monitor v2c
This article is from the "Dragon Love Xue qi" blog, please make sure to keep this source http://dragon123.blog.51cto.com/9152073/1665270
Huawei Switch S5700 Learning notes