拓扑图

配置命令
Switch0
enable
vlan database
vlan 2
vlan 3
vlan 4
show vlan
conf t
int range f0/1-3
switchport mode access
switchport access vlan 2
exit
int range f0/4-6
switchport mode access
switchport access vlan 3
exit
int range f0/7-9
switchport mode access
switchport access vlan 4
end
show running-config
Router0
enable
conf t
int g0/0
ip add 192.168.1.254 255.255.255.0
no shutdown
exit
int g0/1
ip add 192.168.2.254 255.255.255.0
no shutdown
exit
int g0/2
ip add 192.168.3.254 255.255.255.0
no shutdown
end
show ip route
实验结果
Switch0

Router0

Ping

3063

被折叠的 条评论
为什么被折叠?



