成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

靜態路由也能勝任多網段之間進行通信

網絡 路由交換
本文作者根據以往經驗與理解分析靜態路由也能勝任多網段之間進行通信。

本博文出自51CTO博客通信,我的***,有任何問題請進入博主頁面互動討論!

博文地址:http://dgd2010.blog.51cto.com/1539422/881922

[[129383]]

昨天,和朋友在機房討論組網問題,當討論到路由器間通信時,朋友問起為什么非要配置路由選擇協議。以前一般是根據配置手冊或者經驗配置也沒有仔細考慮過這個問題。想了想,應該是這樣理解的(如下)。

如果多個網段之間要實現通信,必須使用路由器,這個毫無疑問。如果多個網段之間存在多個可選擇的路徑,最方便的是采取配置路由選擇協議的方法,簡單點的網絡可以采用RIP協議,如果是復雜的網絡則可以采用OSPF。當然在選擇的路徑不多時也可以采用靜態路由的方法。

但是,當多個網段之間只有一條路徑時,那么僅僅是配置靜態路由就足夠了。如果是在企業中工作,那么往往配置簡單的靜態路由就足夠了。

為了更有說服力和便于理解我用CPT(Cisco Packet Tracer)演示了一下。

拓撲圖如下圖所示:

靜態路由也能勝任多網段之間進行通信

分別有四個網段,10.0.0.0/8、112.237.228.0/24、192.168.10.0/24、211.86.104.0/24。

靜態路由設置如下:

  1. ip route 192.168.10.0 255.255.255.0 112.237.228.1    
  2. ip route 211.86.104.0 255.255.255.0 112.237.228.1   
  3.   
  4.   
  5. ip route 10.0.0.0 255.0.0.0 112.237.228.244    
  6. ip route 211.86.104.0 255.255.255.0 192.168.10.1   
  7.   
  8.   
  9. ip route 112.237.228.0 255.255.255.0 192.168.10.2    
  10. ip route 10.0.0.0 255.0.0.0 192.168.10.2    

配置如下:

1.PC0的IP配置:

Packet Tracer PC Command Line 1.0

PC>ipconfig

IP Address......................: 10.0.0.3

Subnet Mask.....................: 255.0.0.0

Default Gateway.................: 10.0.0.1

PC>

2.PC1的IP配置:

Packet Tracer PC Command Line 1.0

PC>ipconfig

IP Address......................: 211.86.104.52

Subnet Mask.....................: 255.255.255.0

Default Gateway.................: 211.86.104.254

PC>

3.R1的配置:

  1. Router>enable    
  2. Router#configure terminal    
  3. Enter configuration commands, one per line.  End with CNTL/Z.    
  4. Router(config)#hostname R1    
  5. R1(config)#interface FastEthernet0/1    
  6. R1(config-if)#ip address 10.0.0.1 255.0.0.0    
  7. R1(config-if)#no shutdown   
  8.   
  9.   
  10. %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up    
  11. R1(config-if)#end    
  12. R1#    
  13. %SYS-5-CONFIG_I: Configured from console by console   
  14.   
  15. R1#conf t    
  16. Enter configuration commands, one per line.  End with CNTL/Z.    
  17. R1(config)#int f0/0    
  18. R1(config-if)#ip addr 112.237.228.244 255.255.255.0    
  19. R1(config-if)#no shutdown   
  20.   
  21.   
  22. %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up    
  23. R1(config-if)#end    
  24. R1#    
  25. %SYS-5-CONFIG_I: Configured from console by console   
  26.   
  27.   
  28. R1#conf t    
  29. Enter configuration commands, one per line.  End with CNTL/Z.    
  30. R1(config)#ip route 192.168.10.0 255.255.255.0 112.237.228.1    
  31. R1(config)#ip route 211.86.104.0 255.255.255.0 112.237.228.1    
  32. R1(config)#end    
  33. R1#    
  34. %SYS-5-CONFIG_I: Configured from console by console   
  35.   
  36. R1#  

4.R2的配置:

  1. Router>enable    
  2. Router#configure terminal    
  3. Enter configuration commands, one per line.  End with CNTL/Z.    
  4. Router(config)#hostname R2    
  5. R2(config)#    
  6. R2(config)#interface FastEthernet0/1    
  7. R2(config-if)#ip address 112.237.228.1 255.255.255.0    
  8. R2(config-if)#no shutdown   
  9.   
  10.   
  11. %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up    
  12. R2(config-if)#    
  13. R2(config-if)#exit    
  14. R2(config)#interface FastEthernet0/0    
  15. R2(config-if)#ip address 192.168.10.2 255.255.255.0    
  16. R2(config-if)#no shutdown   
  17.   
  18.   
  19. %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up    
  20. R2(config-if)#end    
  21. R2#conf t    
  22. Enter configuration commands, one per line.  End with CNTL/Z.    
  23. R2(config)#ip route 10.0.0.0 255.0.0.0 112.237.228.244    
  24. R2(config)#ip route 211.86.104.0 255.255.255.0 192.168.10.1    
  25. R2(config)#end    
  26. R2#    
  27. %SYS-5-CONFIG_I: Configured from console by console   
  28.   
  29. R2#   

5.R3的配置:

  1. Router>enable    
  2. Router#configure terminal    
  3. Enter configuration commands, one per line.  End with CNTL/Z.    
  4. Router(config)#hostname R3    
  5. R3(config)#    
  6. R3(config)#interface FastEthernet0/1    
  7. R3(config-if)#ip address 192.168.10.1 255.255.255.0    
  8. R3(config-if)#no shutdown   
  9.   
  10.   
  11. %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up    
  12. R3(config-if)#    
  13. R3(config-if)#exit    
  14. R3(config)#interface FastEthernet0/0    
  15. R3(config-if)#ip address 211.86.104.254 255.255.255.0    
  16. R3(config-if)#no shutdown   
  17.   
  18. R3(config-if)#    
  19. %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up   
  20.   
  21.   
  22. R3>enable    
  23. R3#conf t    
  24. Enter configuration commands, one per line.  End with CNTL/Z.    
  25. R3(config)#ip route 112.237.228.0 255.255.255.0 192.168.10.2    
  26. R3(config)#ip route 10.0.0.0 255.0.0.0 192.168.10.2       
  27. R3(config)#end    
  28. R3#    
  29. %SYS-5-CONFIG_I: Configured from console by console   
  30.   
  31. R3#   

6.使用tracert進行測試:

測試從PC0能否路由到PC1。

使用tracert進行測試

結果表明測試成功。

測試從PC1能否路由到PC0。

測試從PC1能否路由到PC0

結果表明測試成功。

責任編輯:林琳 來源: 51CTO
相關推薦

2009-05-06 08:46:22

蘋果iPhone移動OS

2009-01-18 09:19:00

DHCPVlANIP

2009-12-14 09:26:05

配置靜態路由

2010-08-19 14:41:22

靜態路由

2016-09-14 21:44:50

JavascriptreactJsjsx

2021-08-02 08:22:33

BlazorEventCallba通信

2010-08-20 10:50:09

路由器配置

2009-11-09 15:46:41

2009-12-02 17:01:05

路由器功能

2010-03-19 14:52:31

Cisco三層交換機

2009-12-10 14:43:23

路由器協議

2009-12-11 09:43:43

靜態路由配置

2021-11-11 11:31:54

擺動序列數字

2013-01-05 10:16:26

需求開發

2018-07-10 14:52:44

服務器

2010-03-26 18:04:48

無線路由器

2015-07-29 11:15:20

無線路由路由器下載

2009-10-27 14:31:57

linux靜態路由

2025-04-18 03:02:00

2014-07-18 09:30:37

vlan路由器不
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: a视频在线播放 | 欧美99 | 情侣av | 老司机成人在线 | 亚洲在线视频 | 国产一区在线免费 | 国产精品日韩一区二区 | 日韩中文字幕一区二区 | 欧州一区二区 | 在线观看亚洲专区 | 伊人久久麻豆 | 国产精品一区在线观看 | 国产精品国产a级 | 毛片av免费在线观看 | 国产亚洲精品久久19p | av片免费| 日本成人福利 | 国产精品性做久久久久久 | 九九热在线免费视频 | 日韩精品一区二区三区在线观看 | 成人午夜视频在线观看 | 中文字幕亚洲视频 | 黄色在线观看网址 | 国产精品免费视频一区 | 九九亚洲 | 成年男女免费视频网站 | 一区二区在线 | 久久99国产精一区二区三区 | 久久久女女女女999久久 | 久久躁日日躁aaaaxxxx | 毛片久久久| 国产精品久久久久影院色老大 | 国产精品毛片久久久久久久 | 操操日| 97人人超碰 | 本道综合精品 | 日韩精品一区二区久久 | 久久精品亚洲精品国产欧美 | 农村真人裸体丰满少妇毛片 | 羞羞视频在线观看 | 欧美淫片 |