华为s5700 switch configuration

来源:互联网 发布:3d artist软件 编辑:程序博客网 时间:2024/06/02 18:32

In general, only multicast, DHCP and VLAN are configured for S5700 switch
1: multicast: configured for all ports
2: vLAN:
 (1)VLAN1:port 1~12 IP pool: 192.168.133.1~192.168.133.64
 (2)VLAN2:port 13~24 IP pool: 192.168.133.65~192.168.133.128
 (3)VLAN3:port 25~36 IP pool: 192.168.133.129~192.168.133.193
 (4)VLAN4:port 37~48 IP pool: 192.168.133.193~192.168.133.255

There are two ways to configure switch with webpage and command.

more information please refer to switch documents.


enable web:
 (1) console login
 (2) system-view
 (3) dir
 (4) http server load S5700EI-V100R005C01SPC100.web.zip
 (5) http server enable
 (6) aaa
 (7) local-user huawei password simple huawei
 (8) local-user huawei service-type http
 (9) quit

webip:  192.168.132.100
username: admin
pw:  admin

 

command configuration:

interface gigabitethernet 0/0/1

port link-type hybrid


port hybrid tagged vlan 1

quit


dhcp:

system-view
dhcp enable
ip pool 1
network 192.168.133.0 mask 255.255.255.192
gateway-list 192.168.133.1
lease unlimited

ip pool 2
network 192.168.133.64 mask 255.255.255.192
gateway-list 192.168.133.65
lease unlimited

ip pool 3
network 192.168.133.128 mask 255.255.255.192
gateway-list 192.168.133.129
lease unlimited

ip pool 4
network 192.168.133.192 mask 255.255.255.192
gateway-list 192.168.133.193
lease unlimited

vlan batch 1 to 4
interface gigabitethernet 0/0/1~12
port hybrid pvid vlan 1
port hybrid untagged vlan 1
quit

interface gigabitethernet 0/0/12~24
port hybrid pvid vlan 2
port hybrid untagged vlan 2

interface gigabitethernet 0/0/24~36
port hybrid pvid vlan 3
port hybrid untagged vlan 3

interface gigabitethernet 0/0/36~48
port hybrid pvid vlan 4
port hybrid untagged vlan 4

interface vlanif 1
ip address 192.168.133.1 255.255.255.192
dhcp select global

interface vlanif 2
ip address 192.168.133.65 255.255.255.192
dhcp select global

interface vlanif 3
ip address 192.168.133.129 255.255.255.192
dhcp select global

interface vlanif 4
ip address 192.168.133.193 255.255.255.192
dhcp select global

 


multicast

igmp-snooping enable
vlan 1
igmp-snooping enable
multicast-vlan enable

vlan 2
igmp-snooping enable
multicast-vlan enable

vlan 3
igmp-snooping enable
multicast-vlan enable

vlan 4
igmp-snooping enable
multicast-vlan enable