Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- การค้นหาเส้นทางแบบ Dynamic โดยใช้งาน RIP
- Router เป็นอุปกรณ์ที่ทำหน้าที่หลักในการหาเส้นทางในการส่งแพคเกจข้ามเครือข่าย เป็นตัวเชื่อมเครือข่ายต่างกันเข้าด้วยกัน เครือข่ายต่างกันคือเครือข่ายที่อยู่คนละ subnet นอกจากการหาเส้นทางแล้ว Router อาจมีหน้าที่อื่น ๆ ด้วย เช่น การกรอง Packet ที่ไม่ต้องการ การจำกัด Data rate ทำหน้าที่เป็น Access Server และเป็นอุปกรณ์พื้นฐานที่ใช้ในการกำหนดประเภทการให้บริการต่าง ๆ ในระบบเครือข่าย
- รายการอุปกรณ์
- อุปกรณ์
- IP Address
- Sub net mask
- Clock rate
- Gateway
- Router0
- ติดตั้ง WIC-2T
- S0/0
- 192.168.1.1
- 255.255.255.252
- 64000
- S0/1
- 192.168.1.5
- 255.255.255.252
- 64000
- F0/1
- 192.168.2.1
- 255.255.255.0
- Router1
- ติดตั้ง WIC-2T
- S0/0
- 192.168.1.6
- 255.255.255.252
- 64000
- S0/1
- 192.168.1.10
- 255.255.255.252
- 64000
- F0/1
- 192.168.3.1
- 255.255.255.0
- Router2
- ติดตั้ง WIC-2T
- S0/0
- 192.168.1.2
- 255.255.255.252
- 64000
- S0/1
- 192.168.1.9
- 255.255.255.252
- 64000
- F0/1
- 192.168.4.1
- 255.255.2550.
- Pc0
- F0
- 192.168.2.2
- 255.255.255.0
- 192.168.2.1
- Pc1
- F0
- 192.168.3.2
- 255.255.255.0
- 192.168.3.1
- Pc2
- F0
- 192.168.4.2
- 255.255.255.0
- 192.168.4.1
- ที่ Router 0 ที่หน้าต่าง CLI
- router>en
- router#config terminal
- router(config)#int s0/0
- router(conf-if)#ip address 192.168.1.1 255.255.255.252
- router(conf-if)#clock rate 64000
- router(conf-if)#bandwidth 64
- router(conf-if)#no shutdown
- router(conf-if)#exit
- router(conf)#int s0/1
- router(conf-if)#ip address 192.168.5.1 255.255.255.252
- router(conf-if)#clock rate 64000
- router(conf-if)#bandwidth 64
- router(conf-if)#no shutdown
- router(conf-if)#exit
- router(conf)#int f0/0
- router(conf-if)#ip address 192.168.2.1 255.255.255.0
- router(conf-if)#exit
- router(conf)#router rip
- router(config)#network 192.168.4.0
- router(config)#network 192.168.3.0
- router(config)#end
- ที่ Router 1 ที่หน้าต่าง CLI
- router>en
- router#config terminal
- router(config)#int s0/0
- router(conf-if)#ip address 192.168.1.6 255.255.255.252
- router(conf-if)#clock rate 64000
- router(conf-if)#bandwidth 64
- router(conf-if)#no shutdown
- router(conf-if)#exit
- router(conf)#int s0/1
- router(conf-if)#ip address 192.168.1.10 255.255.255.252
- router(conf-if)#clock rate 64000
- router(conf-if)#bandwidth 64
- router(conf-if)#no shutdown
- router(conf-if)#exit
- router(conf)#int f0/0
- router(conf-if)#ip address 192.168.3.1 255.255.255.0
- router(conf-if)#exit
- router(conf)#router rip
- router(config)#network 192.168.2.0
- router(config)#network 192.168.4.0
- router(config)#end
- ที่ Router 2 ที่หน้าต่าง CLI
- router>en
- router#config terminal
- router(config)#int s0/0
- router(conf-if)#ip address 192.168.1.2 255.255.255.252
- router(conf-if)#clock rate 64000
- router(conf-if)#bandwidth 64
- router(conf-if)#no shutdown
- router(conf-if)#exit
- router(conf)#int s0/1
- router(conf-if)#ip address 192.168.1.9 255.255.255.252
- router(conf-if)#clock rate 64000
- router(conf-if)#bandwidth 64
- router(conf-if)#no shutdown
- router(conf-if)#exit
- router(conf)#int f0/0
- router(conf-if)#ip address 192.168.4.1 255.255.255.0
- router(conf-if)#exit
- router(config)#router rip
- router(config-router)#network 192.168.2.0
- router(config-router)#network 192.168.3.0
- router(config-router)#end
- ที่ PC 0
- ทดสอบ
- ผลลัพธ์
- ping 192.168.2.2
- □ Lost X success
- ping 192.168.3.2
- □ Lost X success
- Ping 192.168.4.2
- □ Lost X success
- ที่ Router 0 ใช้คำสั่ง show run
- no service timestamps log datetime msec
- no service timestamps debug datetime msec
- no service password-encryption
- hostname Router
- no ip cef
- no ipv6 cef
- interface FastEthernet0/0
- ip address 192.168.2.1 255.255.255.0
- duplex auto
- speed auto
- interface FastEthernet0/1
- no ip address
- duplex auto
- speed auto
- shutdown
- interface Serial0/0
- ip address 192.168.1.1 255.255.255.252
- interface Serial0/1
- ip address 192.168.1.5 255.255.255.252
- router rip
- ip classless
- ip route 192.168.3.0 255.255.255.0 Serial0/0
- ip route 192.168.4.0 255.255.255.0 Serial0/0
- ip flow-export version 9
- line con 0
- line aux 0
- line vty 0 4
- login
- end
- ที่ Router 1 ใช้คำสั่ง show run
- no service timestamps log datetime msec
- no service timestamps debug datetime msec
- no service password-encryption
- hostname Router
- !no ip cef
- no ipv6 cef
- Router#show running-config
- Building configuration...
- Current configuration : 737 bytes
- version 12.2
- no service timestamps log datetime msec
- no service timestamps debug datetime msec
- no service password-encryption
- hostname Router
- no ip cef
- no ipv6 cef
- interface FastEthernet0/0
- ip address 192.168.3.1 255.255.255.0
- duplex auto
- speed auto
- interface FastEthernet0/1
- no ip address
- duplex auto
- speed auto
- shutdown
- interface Serial0/0
- ip address 192.168.1.6 255.255.255.252
- clock rate 64000
- interface Serial0/1
- ip address 192.168.1.10 255.255.255.252
- ip classless
- ip route 192.186.2.0 255.255.255.0 Serial0/0
- ip route 192.186.4.0 255.255.255.0 Serial0/1
- !ip flow-export version 9
- line con 0
- line aux 0
- line vty 0 4
- login
- end
- ที่ Router 2 ใช้คำสั่ง show run
- no service timestamps log datetime msec
- no service timestamps debug datetime msec
- no service password-encryption
- hostname Router
- no ip cef
- no ipv6 cef
- interface FastEthernet0/0
- ip address 192.168.3.1 255.255.255.0
- duplex auto
- speed auto
- interface FastEthernet0/1
- no ip address
- duplex auto
- speed auto
- shutdown
- interface Serial0/0
- ip address 192.168.1.6 255.255.255.252
- clock rate 64000
- interface Serial0/1
- ip address 192.168.1.10 255.255.255.252
- clock rate 64000
- ip classless
- ip route 192.168.2.0 255.255.255.0 Serial0/0
- ip route 192.168.3.0 255.255.255.0 Serial0/1
- ip route 192.186.2.0 255.255.255.0 Serial0/0
- ip route 192.186.4.0 255.255.255.0 Serial0/1
- ip flow-export version 9
- line con 0
- line aux 0
- line vty 0 4
- login
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement