Advertisement
Nithisaran

Untitled

Nov 7th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.87 KB | None | 0 0
  1. การค้นหาเส้นทางแบบ Dynamic โดยใช้งาน RIP
  2. Router เป็นอุปกรณ์ที่ทำหน้าที่หลักในการหาเส้นทางในการส่งแพคเกจข้ามเครือข่าย เป็นตัวเชื่อมเครือข่ายต่างกันเข้าด้วยกัน เครือข่ายต่างกันคือเครือข่ายที่อยู่คนละ subnet นอกจากการหาเส้นทางแล้ว Router อาจมีหน้าที่อื่น ๆ ด้วย เช่น การกรอง Packet ที่ไม่ต้องการ การจำกัด Data rate ทำหน้าที่เป็น Access Server และเป็นอุปกรณ์พื้นฐานที่ใช้ในการกำหนดประเภทการให้บริการต่าง ๆ ในระบบเครือข่าย
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10. รายการอุปกรณ์
  11. อุปกรณ์
  12. IP Address
  13. Sub net mask
  14. Clock rate
  15. Gateway
  16.  
  17.  
  18. Router0
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29. ติดตั้ง WIC-2T
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40. S0/0
  41. 192.168.1.1
  42. 255.255.255.252
  43. 64000
  44.  
  45.  
  46.  
  47.  
  48. S0/1
  49. 192.168.1.5
  50. 255.255.255.252
  51. 64000
  52.  
  53.  
  54.  
  55.  
  56. F0/1
  57. 192.168.2.1
  58. 255.255.255.0
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. Router1
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76. ติดตั้ง WIC-2T
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87. S0/0
  88. 192.168.1.6
  89. 255.255.255.252
  90. 64000
  91.  
  92.  
  93.  
  94.  
  95. S0/1
  96. 192.168.1.10
  97. 255.255.255.252
  98. 64000
  99.  
  100.  
  101.  
  102.  
  103. F0/1
  104. 192.168.3.1
  105. 255.255.255.0
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112. Router2
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123. ติดตั้ง WIC-2T
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134. S0/0
  135. 192.168.1.2
  136. 255.255.255.252
  137. 64000
  138.  
  139.  
  140.  
  141.  
  142. S0/1
  143. 192.168.1.9
  144. 255.255.255.252
  145. 64000
  146.  
  147.  
  148.  
  149.  
  150. F0/1
  151. 192.168.4.1
  152. 255.255.2550.
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159. Pc0
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170. F0
  171. 192.168.2.2
  172. 255.255.255.0
  173.  
  174.  
  175. 192.168.2.1
  176.  
  177.  
  178. Pc1
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189. F0
  190. 192.168.3.2
  191. 255.255.255.0
  192.  
  193.  
  194. 192.168.3.1
  195.  
  196.  
  197. Pc2
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208. F0
  209. 192.168.4.2
  210. 255.255.255.0
  211.  
  212.  
  213. 192.168.4.1
  214.  
  215.  
  216. ที่ Router 0 ที่หน้าต่าง CLI
  217. router>en
  218. router#config terminal
  219. router(config)#int s0/0
  220. router(conf-if)#ip address 192.168.1.1 255.255.255.252
  221. router(conf-if)#clock rate 64000
  222. router(conf-if)#bandwidth 64
  223. router(conf-if)#no shutdown
  224. router(conf-if)#exit
  225. router(conf)#int s0/1
  226. router(conf-if)#ip address 192.168.5.1 255.255.255.252
  227. router(conf-if)#clock rate 64000
  228. router(conf-if)#bandwidth 64
  229. router(conf-if)#no shutdown
  230. router(conf-if)#exit
  231. router(conf)#int f0/0
  232. router(conf-if)#ip address 192.168.2.1 255.255.255.0
  233. router(conf-if)#exit
  234. router(conf)#router rip
  235. router(config)#network 192.168.4.0
  236. router(config)#network 192.168.3.0
  237. router(config)#end
  238. ที่ Router 1 ที่หน้าต่าง CLI
  239. router>en
  240. router#config terminal
  241. router(config)#int s0/0
  242. router(conf-if)#ip address 192.168.1.6 255.255.255.252
  243. router(conf-if)#clock rate 64000
  244. router(conf-if)#bandwidth 64
  245. router(conf-if)#no shutdown
  246. router(conf-if)#exit
  247. router(conf)#int s0/1
  248. router(conf-if)#ip address 192.168.1.10 255.255.255.252
  249. router(conf-if)#clock rate 64000
  250. router(conf-if)#bandwidth 64
  251. router(conf-if)#no shutdown
  252. router(conf-if)#exit
  253. router(conf)#int f0/0
  254. router(conf-if)#ip address 192.168.3.1 255.255.255.0
  255. router(conf-if)#exit
  256. router(conf)#router rip
  257. router(config)#network 192.168.2.0
  258. router(config)#network 192.168.4.0
  259. router(config)#end
  260. ที่ Router 2 ที่หน้าต่าง CLI
  261. router>en
  262. router#config terminal
  263. router(config)#int s0/0
  264. router(conf-if)#ip address 192.168.1.2 255.255.255.252
  265. router(conf-if)#clock rate 64000
  266. router(conf-if)#bandwidth 64
  267. router(conf-if)#no shutdown
  268. router(conf-if)#exit
  269. router(conf)#int s0/1
  270. router(conf-if)#ip address 192.168.1.9 255.255.255.252
  271. router(conf-if)#clock rate 64000
  272. router(conf-if)#bandwidth 64
  273. router(conf-if)#no shutdown
  274. router(conf-if)#exit
  275. router(conf)#int f0/0
  276. router(conf-if)#ip address 192.168.4.1 255.255.255.0
  277. router(conf-if)#exit
  278. router(config)#router rip
  279. router(config-router)#network 192.168.2.0
  280. router(config-router)#network 192.168.3.0
  281. router(config-router)#end
  282. ที่ PC 0
  283. ทดสอบ
  284. ผลลัพธ์
  285. ping 192.168.2.2
  286. □ Lost X success
  287. ping 192.168.3.2
  288. □ Lost X success
  289. Ping 192.168.4.2
  290. □ Lost X success
  291. ที่ Router 0 ใช้คำสั่ง show run
  292. no service timestamps log datetime msec
  293. no service timestamps debug datetime msec
  294. no service password-encryption
  295.  
  296. hostname Router
  297.  
  298. no ip cef
  299. no ipv6 cef
  300.  
  301. interface FastEthernet0/0
  302. ip address 192.168.2.1 255.255.255.0
  303. duplex auto
  304. speed auto
  305. interface FastEthernet0/1
  306. no ip address
  307. duplex auto
  308. speed auto
  309. shutdown
  310. interface Serial0/0
  311. ip address 192.168.1.1 255.255.255.252
  312.  
  313. interface Serial0/1
  314. ip address 192.168.1.5 255.255.255.252
  315.  
  316. router rip
  317. ip classless
  318. ip route 192.168.3.0 255.255.255.0 Serial0/0
  319. ip route 192.168.4.0 255.255.255.0 Serial0/0
  320. ip flow-export version 9
  321.  
  322. line con 0
  323.  
  324. line aux 0
  325.  
  326. line vty 0 4
  327. login
  328.  
  329. end
  330.  
  331.  
  332.  
  333. ที่ Router 1 ใช้คำสั่ง show run
  334. no service timestamps log datetime msec
  335. no service timestamps debug datetime msec
  336. no service password-encryption
  337. hostname Router
  338. !no ip cef
  339. no ipv6 cef
  340. Router#show running-config
  341. Building configuration...
  342. Current configuration : 737 bytes
  343. version 12.2
  344. no service timestamps log datetime msec
  345. no service timestamps debug datetime msec
  346. no service password-encryption
  347. hostname Router
  348. no ip cef
  349. no ipv6 cef
  350. interface FastEthernet0/0
  351. ip address 192.168.3.1 255.255.255.0
  352. duplex auto
  353. speed auto
  354. interface FastEthernet0/1
  355. no ip address
  356. duplex auto
  357. speed auto
  358. shutdown
  359. interface Serial0/0
  360. ip address 192.168.1.6 255.255.255.252
  361. clock rate 64000
  362. interface Serial0/1
  363. ip address 192.168.1.10 255.255.255.252
  364. ip classless
  365. ip route 192.186.2.0 255.255.255.0 Serial0/0
  366. ip route 192.186.4.0 255.255.255.0 Serial0/1
  367. !ip flow-export version 9
  368. line con 0
  369. line aux 0
  370. line vty 0 4
  371. login
  372. end
  373.  
  374.  
  375.  
  376. ที่ Router 2 ใช้คำสั่ง show run
  377. no service timestamps log datetime msec
  378. no service timestamps debug datetime msec
  379. no service password-encryption
  380. hostname Router
  381. no ip cef
  382. no ipv6 cef
  383. interface FastEthernet0/0
  384. ip address 192.168.3.1 255.255.255.0
  385. duplex auto
  386. speed auto
  387. interface FastEthernet0/1
  388. no ip address
  389. duplex auto
  390. speed auto
  391. shutdown
  392. interface Serial0/0
  393. ip address 192.168.1.6 255.255.255.252
  394. clock rate 64000
  395. interface Serial0/1
  396. ip address 192.168.1.10 255.255.255.252
  397. clock rate 64000
  398. ip classless
  399. ip route 192.168.2.0 255.255.255.0 Serial0/0
  400. ip route 192.168.3.0 255.255.255.0 Serial0/1
  401. ip route 192.186.2.0 255.255.255.0 Serial0/0
  402. ip route 192.186.4.0 255.255.255.0 Serial0/1
  403. ip flow-export version 9
  404. line con 0
  405. line aux 0
  406. line vty 0 4
  407. login
  408. end
  409.  
  410.  
  411.  
  412.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement