三层交换机
swither1
en
conf t
vlan 10
name xiaoshou
exit
vlan 20
name shichang
exit
vlan 30
name caiwu
exit
int r f0/5-10
sw m a
sw a v 10
exit
int r f0/11-15
sw m a
sw a v 20
exit
int r f0/16-20
sw m a
sw a v 30
exit
int f0/24
sw m t
end
sh vlan br
sh vlan id 10
sh vlan name shichang
w
swithcer 2
en
conf t
vlan 10
name xiaoshou
exit
vlan 20
name shichang
exit
vlan 30
name caiwu
exit
int r f0/5-10
sw m a
sw a v 10
exit
int r f0/11-15
sw m a
sw a v 20
exit
int r f0/16-20
sw m a
sw a v 30
exit
int f0/24
sw m t
end
sh vlan br
sh vlan id 10
sh vlan name shichang
W
Sw3
en
conf t
vlan 10
name xiaoshou
exit
vlan 20
name shichang
exit
vlan 30
name caiwu
Exit
Ip routing
Int vlan 10
Ip add 192.168.1.1 255.255.255.0
No shut
Int vlan 20
Ip add 192.168.2.1 255.255.255.0
No shut
Int vlan 30
Ip add 192.168.3.1 255.255.255.0
No shut
Exit
Int f0/23
Sw t en do
Sw m t
End
W