亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 4840 | 回復(fù): 1
打印 上一主題 下一主題

靜態(tài)路由 [復(fù)制鏈接]

論壇徽章:
2
IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-03-29 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-03-30 06:20:00
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2016-03-27 17:19 |只看該作者 |倒序?yàn)g覽
本帖最后由 anonym0us 于 2016-03-27 17:23 編輯

  1. 靜態(tài)路由:


  2. 首先配置R1 R2 R3的基本配置,為相應(yīng)的接口配置合理的IP 地址。同一根網(wǎng)線上連接的兩個(gè)路由器,要配置相同的網(wǎng)絡(luò)位,不同的主機(jī)位因?yàn)樗麄兪俏挥谕粋(gè)網(wǎng)絡(luò)的不同設(shè)備。
  3. R1配置:

  4. Router>enable
  5. Router#configure terminal

  6. Router(config)#line console 0
  7. Router(config-line)#exec-timeout  0 0
  8. Router(config-line)#logging synchronous
  9. Router(config-line)#exit

  10. Router(config)#no ip domain-lookup
  11. Router(config)#ho R1



  12. R1(config)#interface loopback 0
  13. R1(config-if)#ip address 1.1.1.1 255.255.255.255
  14. R1(config-if)#no shutdown
  15. R1(config-if)#exit

  16. R1(config)#interface loopback 1
  17. R1(config-if)#ip address 1.1.2.1 255.255.255.255
  18. R1(config-if)#no shutdown
  19. R1(config-if)#exit

  20. R1(config)#interface loopback 2
  21. R1(config-if)#ip address 1.1.3.1 255.255.255.255
  22. R1(config-if)#no shutdown
  23. R1(config-if)#exit

  24. R1(config)#interface loopback 3
  25. R1(config-if)#ip address 1.1.4.1 255.255.255.255
  26. R1(config-if)#no shutdown
  27. R1(config-if)#exit

  28. R1(config)#interface f0/0
  29. R1(config-if)#ip address 12.1.1.1 255.255.255.0
  30. R1(config-if)#no shutdown
  31. R1(config-if)#exit

  32. R2配置:

  33. Router>enable
  34. Router#config terminal
  35. Router(config)#line console 0
  36. Router(config-line)#exec-timeout 0 0
  37. Router(config-line)#logging synchronous
  38. Router(config-line)#exit

  39. Router(config)#no ip domain-lookup
  40. Router(config)#ho R2

  41. R2(config)#interface f0/0
  42. R2(config-if)#ip address 12.1.1.2 255.255.255.0
  43. R2(config-if)#no shutdown
  44. R2(config-if)#exit



  45. R2(config)#interface f0/1
  46. R2(config-if)#ip address 23.1.1.2 255.255.255.0
  47. R2(config-if)#no shutdown
  48. R2(config-if)#exit

  49. R2(config)#interface loopback 0
  50. R2(config-if)#ip address 2.2.2.2 255.255.255.255
  51. R2(config-if)#no  shutdown
  52. R2(config-if)#exit

  53. R3配置:
  54. Router>enable
  55. Router#config terminal

  56. Router(config)#line console 0
  57. Router(config-line)#exec-timeout 0 0
  58. Router(config-line)#logging synchronous
  59. Router(config-line)#exit
  60. Router(config)#no ip domain-lookup

  61. Router(config)#ho R3

  62. R3(config)#interface f0/1
  63. R3(config-if)#ip address 23.1.1.3 255.255.255.0
  64. R3(config-if)#no shutdown
  65. R3(config-if)#exit

  66. R3(config)#interface lo0
  67. R3(config-if)#ip address 3.3.3.3 255.255.255.255
  68. R3(config-if)#no shutdown
  69. R3(config-if)#exit

  70. 接下來在R1 R2 R3上配置靜態(tài)路由,由于一個(gè)路由器的接口配置了IP 地址之后,對(duì)于路由器而言,就產(chǎn)生了到達(dá)該網(wǎng)絡(luò)的路徑,就是我們所說的直連路徑。因此我們僅僅需要配置到達(dá)網(wǎng)絡(luò)中其他地方(非直連)網(wǎng)絡(luò)的路徑即可。

  71. R1配置:
  72. 對(duì)于R1而言直連路經(jīng)就是路由表中打C 標(biāo)記的路由,而2.2.2.2/32,3.3.3.3/32,23.1.1.0/24
  73. 這幾條路徑R1的路由表中沒有(這些是非直連路徑),因此需要針對(duì)這幾條路徑進(jìn)行配置.

  74. R1#sho ip route
  75. Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
  76.        D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
  77.        N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
  78.        E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
  79.        i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
  80.        * - candidate default, U - per-user static route, o - ODR
  81.        P - periodic downloaded static route

  82. Gateway of last resort is not set

  83.      1.0.0.0/32 is subnetted, 4 subnets
  84. C       1.1.1.1 is directly connected, Loopback0
  85. C       1.1.2.1 is directly connected, Loopback1
  86. C       1.1.3.1 is directly connected, Loopback2
  87. C       1.1.4.1 is directly connected, Loopback3
  88.      12.0.0.0/24 is subnetted, 1 subnets
  89. C       12.1.1.0 is directly connected, FastEthernet0/0
  90. R1#
  91. 要去哪里----目標(biāo)IP地址和掩碼
  92. R1(config)#ip route 3.3.3.3 255.255.255.255 12.1.1.2               有誰幫我把數(shù)據(jù)轉(zhuǎn)發(fā)到目的地---下一跳地址
  93. R1(config)#ip route 23.1.1.0 255.255.255.0 12.1.1.2
  94. R1(config)#ip route 2.2.2.2 255.255.255.255 f0/0                   要去那里,該從那個(gè)接口把數(shù)據(jù)發(fā)出去—出接口

  95. R2配置:
  96. 對(duì)于R2而言 只有 1.1.1.1-----1.1.2.1----1.1.3.1----1.1.4.1以及3.3.3.3 是不直接相連的(非直連),因此只需要針對(duì)這些網(wǎng)段寫靜態(tài)路由就可以了,對(duì)于1.1.1.1----1.1.4.1的這四條路徑,可以用匯總的方式,以一條命令去完成對(duì)于四條命令的匹配.---進(jìn)行匯總.同時(shí)注意,匯總的時(shí)候,有可能將1.1.5.1等等不存在的網(wǎng)段也匯總進(jìn)去了,因此注意,在R1上(應(yīng)為匯總的1.1.1.1—1.1.4.1 是R1上的路徑)部署黑洞路由.

  97. R2(config)#ip route 1.1.0.0 255.255.248.0 12.1.1.1
  98. R2(config)#ip route 3.3.3.3 255.255.255.255 23.1.1.3

  99. R1配置:

  100. R1(config)#ip route 1.1.0.0 255.255.248.0 null 0


  101. R3配置:
  102. 在R3上 我們可以認(rèn)為R3上網(wǎng)絡(luò)的終點(diǎn),因此對(duì)于R3而言,到網(wǎng)絡(luò)的任意一點(diǎn),都可以被缺省路由匹配.

  103. R3(config)#ip route 0.0.0.0 0.0.0.0 23.1.1.2

  104. 檢查路由表,看看路徑是否都齊全.
  105. R1 R2 R3要有到達(dá) 1.1.1.1—1.1.2.1---1.1.3.1---1.1.4.1以及12.1.1.0/24;23.1.1.0/24;
  106. 2.2.2.2/32;3.3.3.3/32的路徑.

  107. R1配置:
  108. R1#sho ip route
  109. Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
  110.        D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
  111.        N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
  112.        E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
  113.        i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
  114.        * - candidate default, U - per-user static route, o - ODR
  115.        P - periodic downloaded static route

  116. Gateway of last resort is not set

  117.      1.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
  118. S       1.1.0.0/21 is directly connected, Null0
  119. C       1.1.1.1/32 is directly connected, Loopback0
  120. C       1.1.2.1/32 is directly connected, Loopback1
  121. C       1.1.3.1/32 is directly connected, Loopback2
  122. C       1.1.4.1/32 is directly connected, Loopback3
  123.      2.0.0.0/32 is subnetted, 1 subnets
  124. S       2.2.2.2 is directly connected, FastEthernet0/0
  125.      3.0.0.0/32 is subnetted, 1 subnets
  126. S       3.3.3.3 [1/0] via 12.1.1.2
  127.      12.0.0.0/24 is subnetted, 1 subnets
  128. C       12.1.1.0 is directly connected, FastEthernet0/0
  129.      23.0.0.0/24 is subnetted, 1 subnets
  130. S       23.1.1.0 [1/0] via 12.1.1.2

  131. R2配置:
  132. R2#sho ip route
  133. Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
  134.        D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
  135.        N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
  136.        E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
  137.        i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
  138.        * - candidate default, U - per-user static route, o - ODR
  139.        P - periodic downloaded static route

  140. Gateway of last resort is not set

  141.      1.0.0.0/21 is subnetted, 1 subnets
  142. S       1.1.0.0 [1/0] via 12.1.1.1
  143.      2.0.0.0/32 is subnetted, 1 subnets
  144. C       2.2.2.2 is directly connected, Loopback0
  145.      3.0.0.0/32 is subnetted, 1 subnets
  146. S       3.3.3.3 [1/0] via 23.1.1.3
  147.      12.0.0.0/24 is subnetted, 1 subnets
  148. C       12.1.1.0 is directly connected, FastEthernet0/0
  149.      23.0.0.0/24 is subnetted, 1 subnets
  150. C       23.1.1.0 is directly connected, FastEthernet0/1

  151. R3配置:
  152. R3#sho ip rou
  153. Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
  154.        D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
  155.        N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
  156.        E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
  157.        i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
  158.        * - candidate default, U - per-user static route, o - ODR
  159.        P - periodic downloaded static route

  160. Gateway of last resort is 23.1.1.2 to network 0.0.0.0

  161.      3.0.0.0/32 is subnetted, 1 subnets
  162. C       3.3.3.3 is directly connected, Loopback0
  163.      23.0.0.0/24 is subnetted, 1 subnets
  164. C       23.1.1.0 is directly connected, FastEthernet0/1
  165. S*   0.0.0.0/0 [1/0] via 23.1.1.2
復(fù)制代碼

論壇徽章:
3
IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-09 06:20:00IT運(yùn)維版塊每周發(fā)帖之星
日期:2015-09-11 19:20:31IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-04-04 06:20:00
2 [報(bào)告]
發(fā)表于 2016-04-01 14:28 |只看該作者
路過~~~~~·
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP