电工技术基础_电工基础知识_电工之家-电工学习网

欢迎来到电工学习网!

思科3550沟通机装备三层路由指令

2017-04-15 09:52分类:电子技术 阅读:

 

思科3550沟通机装备三层路由指令
----------------------------------
| 思科3550三层沟通机 |
---- -------------------- -------
50.1.1.1 (23口) 60.1.1.1(24口)
|| ||
|| ||
50.1.1.2 60.1.1.2
(pc1) (pc2)
装备23口:
Switch#enable
Switch#configure terminal
Switch(config)#interface fastEthernet 0/23
Switch(config)ip addr 50.1.1.1 255.255.255.0
Switch(config-if)#no switchport
Switch(config-if)#no shutdown
Switch(config-if)#end

相似的装备24口:
Switch#enable
Switch#configure terminal
Switch(config)#interface fastEthernet 0/24
Switch(config)ip addr 60.1.1.1 255.255.255.0
Switch(config-if)#no switchport
Switch(config-if)#no shutdown
Switch(config-if)#end

翻开沟通机路由转发开关:
Switch#configure terminal
Switch(config)#ip routing
Switch(config)#ip cef (这个默许是翻开的)

此刻能够查看下23口的状况:
Switch#show interfaces fastEthernet 0/23

此刻在沟通机上ping两个口的地址成功:
Switch#ping 50.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 50.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Switch#ping 60.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 60.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
Switch#

pc1(win7)添加路由:
到60.1.1.0/24的数据包经过50.1.1.1转发:
route ADD 60.1.1.0 MASK 255.255.255.0 50.1.1.1 METRIC 3

对应的pc2也添加路由:
route ADD 50.1.1.0 MASK 255.255.255.0 60.1.1.1 METRIC 3

此刻50.1.1.2和60.1.1.2即可通讯。

假定运用了沟通机口的路由功用,那么此口(即这儿的23,24口)就没有沟通才调了。
假定又要沟通机有路由功用,又有沟通功用,那么沟通功用能够由其它口背负。

上一篇:常用光纤查验表有哪些

下一篇:pdh光端机能接纳的功率方案

相关推荐

电工推荐

    电工技术基础_电工基础知识_电工之家-电工学习网
返回顶部