交换机配置
使用 console 连接交换机
新机器默认账号
账号:admin
密码:admin123
enable账号:enable
enable密码:enable
(ArubaS1500-24P) #configure terminal
更改登录账号密码账号为admin 密码为
(ArubaS1500-24P) (config) #mgmt-user admin root
aruba,123
aruba,123
ArubaS1500-24P) #configure terminal
(ArubaS1500-24P) (config) #hostname WLAN-SW-GB-BEI-8F 更改交换机名称
(WLAN-SW-GB-BEI-8F) (config) #vlan 2004 创建vlan
(WLAN-SW-GB-BEI-8F) (VLAN "4") #exit
(WLAN-SW-GB-BEI-8F) (config) #vlan 2010 创建vlan
(WLAN-SW-GB-BEI-8F) (VLAN "10") #exit
(WLAN-SW-GB-BEI-8F) (config) #interface vlan 2004 进入vlan
(WLAN-SW-GB-BEI-8F) (vlan "4") #ip address 172.17.4.12 255.255.255.0 给vlan配置IP地址
(WLAN-SW-GB-BEI-8F) (vlan "4") #no shutdown
(WLAN-SW-GB-BEI-8F) (vlan "4") #exit
配置网关
(WLAN-SW-GB-BEI-8F) (config) #ip-profile
(WLAN-SW-GB-BEI-8F) (ip-profile) #default-gateway 172.17.4.1
(WLAN-SW-GB-BEI-8F) (ip-profile) #exit
配置 trunk 配置access
(WLAN-SW-GB-BEI-8F) (config) #interface-profile switching-profile "trunk_all"
(WLAN-SW-GB-BEI-8F) (switching profile "trunk_all") #switchport-mode trunk
(WLAN-SW-GB-BEI-8F) (switching profile "trunk_all") #exit
(WLAN-SW-GB-BEI-8F) (config) #interface-profile switching-profile "access_vlan_2010"
(WLAN-SW-GB-BEI-8F) (switching profile "access_vlan_10") # access-vlan 2010
(WLAN-SW-GB-BEI-8F) (switching profile "access_vlan_10") # exit
将所有光口配置为trunk口
(WLAN-SW-GB-BEI-8F) (config) #interface range gigabitethernet 0/1/0-0/1/3
(WLAN-SW-GB-BEI-8F) (config-range) # switching-profile "trunk_all"
将除堆叠端口外的电口配置为接 access 端口(如两台堆叠,应为 0/0-0/22 口)
(WLAN-SW-GB-BEI-8F) (config) #interface range gigabitethernet 0/0/0-0/0/22
(WLAN-SW-GB-BEI-8F) (config-range) # switching-profile "access_vlan_2010"
(WLAN-SW-GB-BEI-8F) (config-range) #exit
(WLAN-SW-GB-BEI-8F) (config) #exit
(WLAN-SW-GB-BEI-8F) # write memory