华为交换机配置方法

近期项目上线,需要配置华为楼层交换机。
一下是配置方法:
连接线连接好,开启交换机,安装好驱动:
【华为交换机配置方法】公网配置:



system-view--进入配置模式

需要修改的地方:主机名,网关IP地址

首次进入需要设置交换机密码:连续输入两次
然后sys
进入可配置模式




#需要修改下行为具体楼层编号
sysname slky06
#
vlan batch 220
#
igmp-snooping enable
multicast drop-unknown
#
vlan 220
igmp-snooping enable
igmp-snooping version 3
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher ovicnet123
local-user admin service-type http
#
interface Vlanif1
#
interface Vlanif220
#需要修改下行为具体楼层IP地址
ip address 172.25.6.254 255.255.192.0
#
interface Ethernet0/0/1
port link-type access
port default vlan 220
#
interface Ethernet0/0/2
port link-type access
port default vlan 220
#
interface Ethernet0/0/3
port link-type access
port default vlan 220
#
interface Ethernet0/0/4
port link-type access
port default vlan 220
#
interface Ethernet0/0/5
port link-type access
port default vlan 220
#
interface Ethernet0/0/6
port link-type access
port default vlan 220
#
interface Ethernet0/0/7
port link-type access
port default vlan 220
#
interface Ethernet0/0/8
port link-type access
port default vlan 220
#
interface Ethernet0/0/9
port link-type access
port default vlan 220
#
interface Ethernet0/0/10
port link-type access
port default vlan 220
#
interface Ethernet0/0/11
port link-type access
port default vlan 220
#
interface Ethernet0/0/12
port link-type access
port default vlan 220
#
interface Ethernet0/0/13
port link-type access
port default vlan 220
#
interface Ethernet0/0/14
port link-type access
port default vlan 220
#
interface Ethernet0/0/15
port link-type access
port default vlan 220
#
interface Ethernet0/0/16
port link-type access
port default vlan 220
#
interface Ethernet0/0/17
port link-type access
port default vlan 220
#
interface Ethernet0/0/18
port link-type access
port default vlan 220
#
interface Ethernet0/0/19
port link-type access
port default vlan 220
#
interface Ethernet0/0/20
port link-type access
port default vlan 220
#
interface Ethernet0/0/21
port link-type access
port default vlan 220
#
interface Ethernet0/0/22
port link-type access
port default vlan 220
#
interface Ethernet0/0/23
port link-type access
port default vlan 220
#
interface Ethernet0/0/24
port link-type access
port default vlan 220
#
interface GigabitEthernet0/0/1
port hybrid pvid vlan 220
port hybrid untagged vlan 220 248 601
undo negotiation auto
#
interface GigabitEthernet0/0/2
port hybrid pvid vlan 220
port hybrid tagged vlan 220 248 601
l2-multicast static-group group-address 239.2.2.1 to 239.2.2.40 vlan 220
l2-multicast static-group group-address 239.2.2.51 to 239.2.2.52 vlan 220
undo negotiation auto
#
interface NULL0
#
user-interface con 0
authentication-mode password
user privilege level 15
set authentication password cipher ovicnet123
user-interface vty 0 4
authentication-mode password
user privilege level 15
set authentication password cipher ovicnet123
#
port-group 1
group-member Ethernet0/0/1
group-member Ethernet0/0/2
group-member Ethernet0/0/3
group-member Ethernet0/0/4
group-member Ethernet0/0/5
group-member Ethernet0/0/6
group-member Ethernet0/0/7
group-member Ethernet0/0/8
group-member Ethernet0/0/9
group-member Ethernet0/0/10
group-member Ethernet0/0/11
group-member Ethernet0/0/12
group-member Ethernet0/0/13
group-member Ethernet0/0/14
group-member Ethernet0/0/15
group-member Ethernet0/0/16
group-member Ethernet0/0/17
group-member Ethernet0/0/18
group-member Ethernet0/0/19
group-member Ethernet0/0/20
group-member Ethernet0/0/21
group-member Ethernet0/0/22
group-member Ethernet0/0/23
group-member Ethernet0/0/24
#
return
save----保存



转载于:https://blog.51cto.com/fangwei009/1751168

    推荐阅读