拓扑图

配置命令
Switch0
enable
vlan database
vlan 2
vlan 3
exit
show vlan
conf t
int f 0/1
switchport mode access
switchport access vlan 2
exit
int f 0/2
switchport mode access
switchport access vlan 3
end
show vlan
int f 0/3
switchport mode trunk
end
show running-config
Router0
enable
conf t
int f 0/0
no shutdown
exit
int f 0/0.1
encapsulation dot1Q 2
ip add 192.168.1.1 255.255.255.0
exit
int f 0/0.2
encapsulation dot1Q 3
ip add 192.168.2.1 255.255.255.0
end
show running-config
show ip route
实验结果
Switch0

Router0

Ping

1158

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



