Cisco思科交换机 入门 - 命名、创建Vlan、配置端口到Vlan,批量配置端口到Vlan
·
1. 命名 由默认名Switch 改为GC-2960-48P
Switch>
Switch>en
Switch#conf t
Switch(config)#hostname GC-2960-48P
GC-2960-48P#
2. 创建Vlan
GC-2960-48>en
GC-2960-48#>conf t
GC-2960-48#(config)#vlan 10
GC-2960-48#(config-vlan)#name Office-PC
GC-2960-48#(config-vlan)#exit
GC-2960-48#(config)#interface GigabitEthernet1/0/1
GC-2960-48#(config-if)#switchport mode access
GC-2960-48#(config-if)#switchport access vlan 10
GC-2960-48#(config-if)#exit
GC-2960-48#(config)#do show vlan
3. 批量配置端口到Vlan
GC-2960-48>en
GC-2960-48#>conf t
GC-2960-48#(config)#vlan 10
GC-2960-48#(config-vlan)#name Office-PC
GC-2960-48#(config-vlan)#exit
GC-2960-48#(config)#interface range GigabitEthernet1/0/1-24
GC-2960-48#(config-if-range)#switchport mode access
GC-2960-48#(config-if-range)#switchport access vlan 10
GC-2960-48#(config-if-range)#exit
GC-2960-48#(config)#do show vlan
更多推荐
已为社区贡献1条内容
所有评论(0)