【思科模拟器实验】交换机路由器基本配置

拓扑图 配置命令 Switch enablevlan databasevlan 2vlan 3exit conf tint f 02switchport mode accessswitchport access vlan

拓扑图

配置命令

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


发布者:admin,转转请注明出处:http://www.yc00.com/web/1732870293a3647857.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信