发布时间:2019-01-28 14:51:14 文章来源:windows7下载 作者: 巴斯卡
Switch(config-if)#end
Switch#configure terminal
此时可以查看下23口的状态:
50.1.1.2 60.1.1.2
如果使用了交换机口的路由功能,那么此口(即这里的23,24口)就没有交换能力了。
route ADD 60.1.1.0 MASK 255.255.255.0 50.1.1.1 METRIC 3
Switch(config)#ip routing
如果又要交换机有路由功能,又有交换功能,那么交换功能可以由其它口负担。
Switch#ping 50.1.1.1
Switch#enable
Switch#ping 60.1.1.1
pc1(win7)增加路由:
Switch(config-if)#no shutdown
此时50.1.1.2和60.1.1.2即可通信。
Switch(config-if)#no switchport
(pc1) (pc2)
Sending 5, 100-byte ICMP Echos to 50.1.1.1, timeout is 2 seconds:
Switch#configure terminal
打开交换机路由转发开关:
route ADD 50.1.1.0 MASK 255.255.255.0 60.1.1.1 METRIC 3
Switch#configure terminal
Switch(config-if)#end
|| ||
Sending 5, 100-byte ICMP Echos to 60.1.1.1, timeout is 2 seconds:
---- -------------------- -------
Switch(config)#ip cef (这个默认是打开的)
Type escape sequence to abort.
对应的pc2也增加路由:
Switch(config)ip addr 50.1.1.1 255.255.255.0
而三层交换机可以在网络层配置路由功能,windows7如何共享打印机,使不同网段的设备可以通信。现以思科3550交换机为例配置三层路由功能。以实现如下拓扑通信。
!!!!!
|| ||
Switch#
【IT168技术】普通交换机工作在链路层,即二层交换机,windows7旗舰版,无路由功能,也就是只能同一个网段的机器才能通信。
Switch#enable
类似的配置24口:
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Switch(config)#interface fastEthernet 0/24
Switch(config-if)#no switchport
----------------------------------
此时在交换机上ping两个口的地址成功:
Switch(config)#interface fastEthernet 0/23
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
配置23口:
Type escape sequence to abort.
Switch(config)ip addr 60.1.1.1 255.255.255.0
50.1.1.1 (23口) 60.1.1.1(24口)
到60.1.1.0/24的数据包通过50.1.1.1转发:
Switch(config-if)#no shutdown
!!!!!
| 思科3550三层交换机 |
Switch#show interfaces fastEthernet 0/23
综上所述,这就是windows7下载的本文作者:巴斯卡给你们提供的windows7旗舰版试用密钥三层交换机路由功能配置例了,所写的原创文章仅此参考,觉得这篇文章不错就可以分享给身边的朋友,欢迎点评,版权声明:如若转载,请注明:windows7下载,谢谢!