9久久伊人精品综合,亚洲一区精品视频在线,成 人免费va视频,国产一区二区三区黄网,99国产精品永久免费视频,亚洲毛片多多影院,精品久久久无码人妻中文字幕,无码国产欧美一区二区三区不卡
學習啦 > 學習電腦 > 網絡知識 > 路由器 > 路由器基礎 > 靜態路由能勝任多網段之間進行通信

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

時間: 若木635 分享

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

  有很多網友經常單機使用電腦,并不會接觸路由器這個東西,所以會對這個東西不會了解,今天小編就來和大家說一下,下文是小編向您帶來的靜態路由也能勝任多網段之間進行通信,歡迎大家閱讀。

  如果多個網段之間要實現通信,必須使用路由器,這個毫無疑問。如果多個網段之間存在多個可選擇的路徑,最方便的是采取配置路由選擇協議的方法,簡單點的網絡可以采用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。

  靜態路由設置如下:

  ip route 192.168.10.0 255.255.255.0 112.237.228.1

  ip route 211.86.104.0 255.255.255.0 112.237.228.1

  ip route 10.0.0.0 255.0.0.0 112.237.228.244

  ip route 211.86.104.0 255.255.255.0 192.168.10.1

  ip route 112.237.228.0 255.255.255.0 192.168.10.2

  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的配置:

  Router>enable

  Router#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router(config)#hostname R1

  R1(config)#interface FastEthernet0/1

  R1(config-if)#ip address 10.0.0.1 255.0.0.0

  R1(config-if)#no shutdown

  %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

  R1(config-if)#end

  R1#

  %SYS-5-CONFIG_I: Configured from console by console

  R1#conf t

  Enter configuration commands, one per line. End with CNTL/Z.

  R1(config)#int f0/0

  R1(config-if)#ip addr 112.237.228.244 255.255.255.0

  R1(config-if)#no shutdown

  %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

  R1(config-if)#end

  R1#

  %SYS-5-CONFIG_I: Configured from console by console

  R1#conf t

  Enter configuration commands, one per line. End with CNTL/Z.

  R1(config)#ip route 192.168.10.0 255.255.255.0 112.237.228.1

  R1(config)#ip route 211.86.104.0 255.255.255.0 112.237.228.1

  R1(config)#end

  R1#

  %SYS-5-CONFIG_I: Configured from console by console

  R1#

  4.R2的配置:

  Router>enable

  Router#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router(config)#hostname R2

  R2(config)#

  R2(config)#interface FastEthernet0/1

  R2(config-if)#ip address 112.237.228.1 255.255.255.0

  R2(config-if)#no shutdown

  %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

  R2(config-if)#

  R2(config-if)#exit

  R2(config)#interface FastEthernet0/0

  R2(config-if)#ip address 192.168.10.2 255.255.255.0

  R2(config-if)#no shutdown

  %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

  R2(config-if)#end

  R2#conf t

  Enter configuration commands, one per line. End with CNTL/Z.

  R2(config)#ip route 10.0.0.0 255.0.0.0 112.237.228.244

  R2(config)#ip route 211.86.104.0 255.255.255.0 192.168.10.1

  R2(config)#end

  R2#

  %SYS-5-CONFIG_I: Configured from console by console

  R2#

  5.R3的配置:

  Router>enable

  Router#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router(config)#hostname R3

  R3(config)#

  R3(config)#interface FastEthernet0/1

  R3(config-if)#ip address 192.168.10.1 255.255.255.0

  R3(config-if)#no shutdown

  %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

  R3(config-if)#

  R3(config-if)#exit

  R3(config)#interface FastEthernet0/0

  R3(config-if)#ip address 211.86.104.254 255.255.255.0

  R3(config-if)#no shutdown

  R3(config-if)#

  %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

  R3>enable

  R3#conf t

  Enter configuration commands, one per line. End with CNTL/Z.

  R3(config)#ip route 112.237.228.0 255.255.255.0 192.168.10.2

  R3(config)#ip route 10.0.0.0 255.0.0.0 192.168.10.2

  R3(config)#end

  R3#

  %SYS-5-CONFIG_I: Configured from console by console

  R3#

  6.使用tracert進行測試:

  測試從PC0能否路由到PC1。

  使用tracert進行測試

  結果表明測試成功。

  測試從PC1能否路由到PC0。

 

  結果表明測試成功

94981 主站蜘蛛池模板: 日本黄韩国色三级三级三| 精品国产一区二区三区大| 亚洲精品国偷拍自产在线观看蜜臀| 久久天堂无码av网站| 一区二区偷拍美女撒尿视频| 国产一区在线播放av| 久久69国产精品久久69软件| 亚洲精品久综合蜜| 另类 专区 欧美 制服丝袜| 午夜激情福利在线免费看| 日本一区二区三区激情视频| 国产一区二区高清不卡| 五月婷之久久综合丝袜美腿| 国产亚洲精品成人aa片新蒲金| 色欧美片视频在线观看| 国产精品国产自产拍高清| 国产欲女高潮正在播放| 偷窥盗摄国产在线视频| 欧美精品亚洲精品日韩专| 黄男女激情一区二区三区| 国产精品99中文字幕| 丰满少妇69激情啪啪无| 国产精品久久久久影院色| 中文字幕免费不卡二区| 国产成人亚洲综合91精品| 男女动态无遮挡动态图| 九九热在线视频观看这里只有精品| 亚洲夂夂婷婷色拍ww47| 亚洲岛国av一区二区| 日韩乱码人妻无码中文字幕视频 | 白白发布视频一区二区视频| 深夜释放自己在线观看| 精品无码国产自产拍在线观看| 国产第一区二区三区精品| 亚洲av本道一区二区| 午夜在线观看成人av| 成人免费看片又大又黄| 香港特级三A毛片免费观看| 国产精品不卡一区二区久久 | 日韩AV无码精品一二三区| 亚洲三级香港三级久久|