实验要求:
- 同vlan间可互相通信
- 对交换机配置远程管理,
注:新建管理vlan,名称:guanli,ID:110
实验步骤:
A交换机配置:
enable
config t
hostname switch-A
vlan 10
vlan 20
vlan 110
name guanli
exit
interface f0/1
switch access vlan 10
no shutdown
interface f0/2
switch access vlan 20
no shutdown
interface f0/24
switch mode trunk
no shutdown
interface vlan 110
ip add 192.168.1.5 255.255.255.0
no shutdown
exit
line vty 0 4
password 123456
login
end
show vlan
B交换机配置:
enable
config t
hostname switch-A
vlan 10
vlan 20
vlan 110
name guanli
exit
interface f0/1
switch access vlan 10
no shutdown
interface f0/2
switch access vlan 20
no shutdown
int f0/3
sw ac vlan 110
no shu
interface f0/24
switch mode trunk
no shutdown
interface vlan 110
ip add 192.168.1.5 255.255.255.0
no shutdown
exit
line vty 0 4
password 123456
login
end
show vlan