admin管理员组文章数量:1130349
拓扑图
配置命令
Switch
enable
vlan database
vlan 2
vlan 3
exit
conf t
int f 0/2
switchport mode access
switchport access vlan 2
exit
int f 0/3
switchport mode access
switchport access vlan 3
end
show vlan br
exit
int f 0/2
no switchport
ip add 192.168.1.254 255.255.255.0
no shutdown
exit
int f 0/3
no switchport
ip add 192.168.2.254 255.255.255.0
no shutdown
end
show running-config
// 用这个直接就可以Ping通了
int vlan 2
ip add 192.168.1.254 255.255.255.0
exit
int vlan 3
ip add 192.168.2.254 255.255.255.0
exit
ip routing
end
show ip route
Router
enable
conf t
int f 0/0
ip add 192.168.1.254 255.255.255.0
no shutdown
exit
int f 0/1
ip add 192.168.2.254 255.255.255.0
no shutdown
end
show ip route
实验结果
Switch
Router
Ping
拓扑图
配置命令
Switch
enable
vlan database
vlan 2
vlan 3
exit
conf t
int f 0/2
switchport mode access
switchport access vlan 2
exit
int f 0/3
switchport mode access
switchport access vlan 3
end
show vlan br
exit
int f 0/2
no switchport
ip add 192.168.1.254 255.255.255.0
no shutdown
exit
int f 0/3
no switchport
ip add 192.168.2.254 255.255.255.0
no shutdown
end
show running-config
// 用这个直接就可以Ping通了
int vlan 2
ip add 192.168.1.254 255.255.255.0
exit
int vlan 3
ip add 192.168.2.254 255.255.255.0
exit
ip routing
end
show ip route
Router
enable
conf t
int f 0/0
ip add 192.168.1.254 255.255.255.0
no shutdown
exit
int f 0/1
ip add 192.168.2.254 255.255.255.0
no shutdown
end
show ip route
实验结果
Switch
Router
Ping
版权声明:本文标题:【思科模拟器实验】交换机路由器基本配置 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/jiaocheng/1724691474a503838.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论