วันพุธที่ 22 เมษายน พ.ศ. 2558

พื้นฐาน Configuration Network RIP

พื้นฐานการ Configuration Network แบบ Eigrp

พื้นฐานการ Configuration Network แบบ Static Router

เรียนรู้อุปกรณ์ Network ด้วยโปรแกรม Cisco Packet Tracer ตอนวางอุปกรณ์ลง ...

เรียนรู้อุปกรณ์ Network ด้วยโปรแกรม Cisco Packet Tracer ตอนConsole port

เรียนรู้อุปกรณ์ Network ด้วยโปรแกรม Cisco Packet Tracer ตอนเกริ่นนำเรื่อ...

เรียนรู้พื้นฐาน Network ฉบับเรียนรู้ด้วยตัวเอง ตอน BASIC WIRELESS LAN

เรียนรู้พื้นฐาน Network ฉบับเรียนรู้ด้วยตัวเอง ตอน LAN CROSS CABLE

เรียนรู้พื้นฐาน Network ฉบับเรียนรู้ด้วยตัวเอง ตอน LAN Cable 568B

เรียนรู้พื้นฐาน Network ฉบับเรียนรู้ด้วยตัวเอง ตอน Lan Cable UTP&RJ45

พื้นฐาน BASIC NETWORK

พื้นฐานการกำหนด เส้นทางแบบ Default Router

เราจะมาทดลองเชื่อมต่อระบบเครือข่าย Wan โดยการเชื่อมต่อ 3 ระบบ
โดยเรียนรู้พื้นฐานการกำหนด เส้นทางแบบ Default Router 
เพื่อให้ Router สามารถสื่อสารกัับเครื่อข่ายผ่าน subnet ที่ต่างกันได้
Diagram Network เราจะทำการเชื่อมต่อ Router1 , Router2 , Router3
และทำการกำหนดเส้นทาง การเชื่อมต่อของเครือข่ายแบบ Default Router 
โดย http://www.prasansoft.com/Main-Cisco-network.php





แสดงทิศทางการสื่อสารของ Router1 ออกไปยัง Router2,Router3 



แสดงทิศทางการสื่อสารของ Router2 ออกไปยัง Router1,Router3 




แสดงทิศทางการสื่อสารของ Router3 ออกไปยัง Router1,Router2 
Router PortIP Address ที่กำหนด
Router1
Port Fast Ethernet 0/0
192.168.1.1
Router1
Port Serial Interface 0/0
10.82.1.1
Router2
Port Fast Ethernet 0/0
192.168.20.1
Router2
Port Serial 0/1
10.82.2.1
Router2
Port Serial 0/0
10.82.1.2
Router3
Port Serial 0/0
10.82.2.2
Router3
Port Fast Ethernetl 0/0
192.168.50.1


เราจะใช้ command เบื้องต้นเพื่อให้ router สื่อสารแบบ Default ในการทดลองนี้ดังนี้ 

สถานะ promt ของ Routerคำสั่งที่ใช้ในในการทดลองนี้ความหมายของคำสั่ง
Router1
(config)#
ip route 0.0.0.0
0.0.0.0
10.82.1.2
ทำการกำหนดเส้นทางการสื่อสารของ
Router 1 เพื่อให้ติดต่อกับ network ID
ใดๆ ในเครือข่ายโดยผ่านประตูทางเข้า
10.82.1.2 ของ Router 2
เพื่อให้ Router 1 --> Router 2,3
Router2
(config)#
ip route 0.0.0.0
0.0.0.0
10.82.1.1
ทำการกำหนดเส้นทางการสื่อสารของ
Router 2 เพื่อให้ติดต่อกับ network ID
192.168.1.0 โดยผ่านประตูทางเข้า
10.82.1.1 ของ Router 1
เพื่อให้ Router 2 --> Router 1
Router2
(config)#
ip route 0.0.0.0
0.0.0.0
10.82.2.2
ทำการกำหนดเส้นทางการสื่อสารของ
Router 2 เพื่อให้ติดต่อกับ network ID
192.168.50.0 โดยผ่านประตูทางเข้า
10.82.2.2 ของ Router 3
เพื่อให้ Router 2 --> Router 3
Router3
(config)#
ip route 0.0.0.0
0.0.0.0
10.82.2.1 
ทำการกำหนดเส้นทางการสื่อสารของ
Router 3 เพื่อให้ติดต่อกับ network ID
ใดๆ ในเครือข่ายโดยผ่านประตูทางเข้า
10.82.2.1 ของ Router 2
เพื่อให้ Router 3 --> Router 1,2



คำสั่งที่เราต้องการเปิดให้ Router ทั้ง 3 มีขั้นตอนพื้นฐานดังนี้
การ Configure ที่ router 1 พื้นฐานพร้อมคำสั่ง Default Router

Router>
Router>enableRouter#

Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#hostname Router1Router1(config)#
Router1(config)#interface fastethernet0/0Router1(config-if)#
Router1(config-if)#ip address 192.168.1.1 255.255.255.0Router1(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router1(config-if)#
Router1(config-if)#exitRouter1(config)#
Router1(config)#interface serial0/0Router1(config-if)#
Router1(config-if)#ip address 10.82.1.1 255.255.255.0Router1(config-if)#clock rate 64000Router1(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0, changed state to down
Router1(config-if)#
Router1(config-if)#exitRouter1(config)#
Router1(config)#ip route 0.0.0.0 0.0.0.0 10.82.1.2
Router1(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Router1#
Router1#
Router1#write memoryBuilding configuration...
[OK]
Router1#
Router1#
%LINK-5-CHANGED: Interface Serial0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

 การ Configure ที่ router 2
 
Router>
Router>enable 
Router#
Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#hostname Router2Router2(config)#
Router2(config)#interface fastethernet 0/0Router2(config-if)#
Router2(config-if)#ip address 192.168.20.1 255.255.255.0Router2(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router2(config-if)#
Router2(config-if)#exitRouter2(config)#
Router2(config)#interface serial0/0 Router2(config-if)#ip address 10.82.1.2 255.255.255.0Router2(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0, changed state to up
Router2(config-if)#
Router2(config-if)#
Router2(config-if)#exitRouter2(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
Router2(config)#
Router2(config)#interface serial0/1Router2(config-if)#
Router2(config-if)#ip address 10.82.2.1 255.255.255.0 Router2(config-if)#clock rate 64000 Router2(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/1, changed state to down
Router2(config-if)#
Router2(config-if)#exitRouter2(config)#
Router2(config)#ip route 0.0.0.0 0.0.0.0 10.82.1.1Router2(config)#ip route 0.0.0.0 0.0.0.0 10.82.2.2Router2(config)#
Router2(config)#exit%SYS-5-CONFIG_I: Configured from console by console
Router2#
Router2#write memoryBuilding configuration...
[OK]
Router2#
Router2#
Router2#
%LINK-5-CHANGED: Interface Serial0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up

การ Configure ที่ router 3

Router>enable Router#
Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#hostname Router3 Router3(config)#
Router3(config)#interface fastethernet0/0Router3(config-if)#
Router3(config-if)#ip address 192.168.50.1 255.255.255.0Router3(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router3(config-if)#
Router3(config-if)#exitRouter3(config)#
Router3(config)#
Router3(config)#interface serial0/0Router3(config-if)#
Router3(config-if)#ip address 10.82.2.2 255.255.255.0 Router3(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0, changed state to up
Router3(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
Router3(config-if)#
Router3(config-if)#exit
Router3(config)#
Router3(config)#ip route 0.0.0.0 0.0.0.0 10.82.2.1 Router3(config)#exit%SYS-5-CONFIG_I: Configured from console by console
Router3#
Router3#write memoryBuilding configuration...
[OK]
Router3#
Router3#




ตรวจสอบสถานะการ COnfiguration IP Address ของ Router1,Router2,Router3


ด้วยการใช้คำสั่ง Show Ip interface brief


ทำการทดลอง การเชื่อมต่อด้วย Diagram ในที่นี้ สามารถทดสอบได้

ด้วยการ Ping จาก Network ID 192.168.1.0,192.168.20.0,192.168.50.0


ทดสอบด้วย การ Ping Command ของ Client 192.168.1.10 ซึ่งเชื่อมต่อที่ router 1
ไปยัง client 192.168.20.10 ของ Router 2 ผลลัพธ์ สามารถติดต่อกันได้ 


ทดสอบด้วย การ Ping Command ของ Client 192.168.1.10 ซึ่งเชื่อมต่อที่ router 1
ไปยัง client 192.168.50.50 ของ Router 3 ผลลัพธ์ สามารถติดต่อกันได้




ทดสอบด้วย การ Ping Command ของ Client 192.168.20.20 ซึ่งเชื่อมต่อที่ router 2
ไปยัง client 192.168.1.10 ของ Router 1 ผลลัพธ์ สามารถติดต่อกันได้

ทดสอบด้วย การ Ping Command ของ Client 192.168.20.20 ซึ่งเชื่อมต่อที่ router 2
ไปยัง client 192.168.50.50 ของ Router 3 ผลลัพธ์ สามารถติดต่อกันได้




ทดสอบด้วย การ Ping Command ของ Client 192.168.50.50 ซึ่งเชื่อมต่อที่ router 3
ไปยัง client 192.168.1.10 ของ Router 1 ผลลัพธ์ สามารถติดต่อกันได้


ทดสอบด้วย การ Ping Command ของ Client 192.168.50.50 ซึ่งเชื่อมต่อที่ router 3
ไปยัง client 192.168.20.10 ของ Router 2 ผลลัพธ์ สามารถติดต่อกันได้


เรียนรู้พื้นฐานการกำหนด เส้นทางแบบ Static

ในส่วนบทความนี้เราจะเรียนรู้พื้นฐานการกำหนด เส้นทางแบบ Static 
โดย http://www.prasansoft.com
เพื่อให้ Router สามารถสื่อสารกัับเครื่อข่ายผ่าน subnet ที่ต่างกันได้ 

Diagram Network เราจะทำการเชื่อมต่อ Router1 , Router2 , Router3 

และทำการกำหนดเส้นทาง การเชื่อมต่อของเครือข่ายแบบ static 




เราจะใช้ command เบื้องต้นเพื่อให้ router สื่อสารแบบ static ในการทดลองนี้ดังนี้ 

สถานะ promt ของ Routerคำสั่งที่ใช้ในในการทดลองนี้ความหมายของคำสั่ง
Router>enableเข้าไปยัง Router
Router#configure terminalเข้าสู่โหมด privilege
Route
r(config)#
interface fastethernet0/0ทำงานกับ interface fastethernet port0/0
(ต้องดำเนินการกำหนดค่า config ให้กับ router ทั้ง 3)
Router
(config-if)#
ip address 192.168.1.1
255.255.255.0
กำหนด Ip address ให้กับ port interface
fastethernet 0/0 มีค่าเท่ากับ 192.168.1.1
subnet mask 255.255.255.0
(ต้องดำเนินการกำหนดค่า config ให้กับ router ทั้ง 3 เป็น IP ประจำ interface fastethernet)
Router
(config-if)#
no shutกระตุ้นหรือการเปิดการทำงานของ interface
(ต้องดำเนินการกำหนดค่า config ให้กับ router ทั้ง 3)
Router
(config-if)#
interface serial 0/1กำหนด IP address ประจำ port
interface serial port0/1 ของ WAN
(ต้องดำเนินการกำหนดค่า config ให้กับ router ทั้ง 3)
Router
(config-if)#
ip address 10.82.1.1
255.255.255.0
ค่า Wan Ip address ที่กำหนดให้WAN
(ต้องดำเนินการกำหนดค่า config ให้กับ router ทั้ง 3)
Router
(config-if)#
clock rate 64000กำหนด clock rate สำหรับ router (CDE)
Router
(config-if)#
no shutกระตุ้นหรือการเปิดการทำงานของ interface
(ต้องดำเนินการกระตุ้น ให้กับ router ทั้ง 3)
Router1
(config)#
ip route 192.168.2.0
255.255.255.0
10.82.1.2
ทำการกำหนดเส้นทางการสื่อสารของ
Router 1 เพื่อให้ติดต่อกับ network ID
192.168.2.0 โดยผ่านประตูทางเข้า
10.82.1.2 ของ Router 2
เพื่อให้ Router 1 --> Router 2
Router1
(config)#
ip route 192.168.3.0
255.255.255.0
10.82.1.2
ทำการกำหนดเส้นทางการสื่อสารของ
Router 1 เพื่อให้ติดต่อกับ network ID
192.168.3.0 โดยผ่านประตูทางเข้า
10.82.1.2 ของ Router 2
เพื่อให้ Router 1 --> Router 3
Router2
(config)#
ip route 192.168.1.0
255.255.255.0
10.82.1.1
ทำการกำหนดเส้นทางการสื่อสารของ
Router 2 เพื่อให้ติดต่อกับ network ID
192.168.1.0 โดยผ่านประตูทางเข้า
10.82.1.1 ของ Router 1
เพื่อให้ Router 2 --> Router 1
Router2
(config)#
ip route 192.168.3.0
255.255.255.0
10.82.2.2
ทำการกำหนดเส้นทางการสื่อสารของ
Router 2 เพื่อให้ติดต่อกับ network ID
192.168.3.0 โดยผ่านประตูทางเข้า
10.82.2.2 ของ Router 3
เพื่อให้ Router 2 --> Router 3
Router3
(config)#
ip route 192.168.1.0
255.255.255.0
10.82.2.1
ทำการกำหนดเส้นทางการสื่อสารของ
Router 3 เพื่อให้ติดต่อกับ network ID
192.168.1.0 โดยผ่านประตูทางเข้า
10.82.2.1 ของ Router 3
เพื่อให้ Router 3 --> Router 1
Router3
(config)#
ip route 192.168.2.0
255.255.255.0
10.82.2.1
ทำการกำหนดเส้นทางการสื่อสารของ
Router 3 เพื่อให้ติดต่อกับ network ID
192.168.2.0 โดยผ่านประตูทางเข้า
10.82.2.1 ของ Router 3
เพื่อให้ Router 3 --> Router 2



คำสั่งที่เราต้องการเปิดให้ Router ทั้ง 3 มีขั้นตอนพื้นฐานดังนี้
การ Configure ที่ router 1

Router>
Router>enableRouter#
Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#hostname Router1Router1(config)#
Router1(config)#interface fastethernet0/0Router1(config-if)#
Router1(config-if)#ip address 192.168.1.1 255.255.255.0Router1(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router1(config-if)#exitRouter1(config)#
Router1(config)#interface serial0/0 Router1(config-if)#
Router1(config-if)#ip address 10.82.1.1 255.255.255.0Router1(config-if)#clock rate 64000Router1(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0, changed state to down
Router1(config-if)#
Router1(config-if)#exit
Router1(config)#
Router1(config)#ip route 192.168.2.0 255.255.255.0 10.82.1.2Router1(config)#ip route 192.168.3.0 255.255.255.0 10.82.1.2Router1(config)#
Router1(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Router1#
Router1#
Router1#write memory
Building configuration...
[OK]
Router1#
Router1#

การ Configure ที่ router 2
Router>
Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#hostname Router2Router2(config)#
Router2(config)#interface fastethernet0/0Router2(config-if)#
Router2(config-if)#ip address 192.168.2.1 255.255.255.0Router2(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router2(config-if)#
Router2(config-if)#exitRouter2(config)#
Router2(config)#interface serial 0/0Router2(config-if)#ip address 10.82.1.2 255.255.255.0Router2(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0, changed state to up
Router2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
Router2(config-if)#
Router2(config-if)#exit
Router2(config)#
Router2(config)#interface serial0/1Router2(config-if)#
Router2(config-if)#ip address 10.82.2.1 255.255.255.0Router2(config-if)#clock rate 64000Router2(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/1, changed state to down
Router2(config-if)#
Router2(config-if)#exitRouter2(config)#
Router2(config)#ip route 192.168.1.0 255.255.255.0 10.82.1.1Router2(config)#ip route 192.168.3.0 255.255.255.0 10.82.2.2Router2(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Router2#
Router2#write memory
Building configuration...
[OK]
Router2#
Router2#
การ Configure ที่ router 3

Router>enable Router#
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#hostname Router3Router3(config)#
Router3(config)#interface fastethernet0/0
Router3(config-if)#ip address 192.168.3.1 255.255.255.0Router3(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router3(config-if)#
Router3(config-if)#
Router3(config-if)#exitRouter3(config)#
Router3(config)#
Router3(config)#interface serial0/0 Router3(config-if)#ip address 10.82.2.2 255.255.255.0 Router3(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0, changed state to up
Router3(config-if)#
Router3(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
Router3(config-if)#
Router3(config-if)#
Router3(config-if)#exitRouter3(config)#
Router3(config)#ip route 192.168.1.0 255.255.255.0 10.82.2.1Router3(config)#ip route 192.168.2.0 255.255.255.0 10.82.2.1Router3(config)#
Router3(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Router3#
Router3#write memory
Building configuration...
[OK]
Router3#
Router3#


ตรวจสอบสถานะการ COnfiguration IP Address ของ Router1,Router2,Router3


ด้วยการใช้คำสั่ง Show Ip interface brief


ทำการทดลอง การเชื่อมต่อด้วย Diagram ในที่นี้ สามารถทดสอบได้

ด้วยการ Ping จาก Network ID 192.168.1.0,192.168.2.0,192.168.3.0


ทดสอบด้วย การ Ping Command ของ 192.168.1.2 ซึ่งเชื่อมต่อที่ router 1
ไปยัง client ของ Router 2



ทดสอบด้วย การ Ping Command ของ client 192.168.1.2 ซึ่งเชื่อมต่อที่ router 1
ไปยัง client 192.168.3.2ของ Router 3 ผลลัพธ์มีการตอบกลับแสดงว่าเส้นทางถูกต้อง



ทดสอบด้วย การ Ping Command ของ client 192.168.2.2 ซึ่งเชื่อมต่อที่ router 2
ไปยัง client 192.168.1.2ของ Router 1 ผลลัพธ์มีการตอบกลับแสดงว่าเส้นทางถูกต้อง



ทดสอบด้วย การ Ping Command ของ client 192.168.2.2 ซึ่งเชื่อมต่อที่ router 2
ไปยัง client 192.168.3.2ของ Router 3 ผลลัพธ์มีการตอบกลับแสดงว่าเส้นทางถูกต้อง



โดย http://www.prasansoft.com/Main-Cisco-network.php

กำหนด รหัสผ่านเพื่อป้องกันการ Login เข้าสู่ Router

ในส่วนบทความนี้เราจะกำหนด รหัสผ่านเพื่อป้องกันการ Login เข้าสู่ Router โดย http://www.prasansoft.com

การตั้งรหัสผ่าน สำหรับ Router มีความจำเป็นมาก สามารถป้องกัน

การ login เข้าสู่ Router จากผู้ที่ไม่ได้รับอนุญาติ

เราจะใช้ command ในป้องกัน การ Login ดังนี้
สถานะ promt ของ Routerคำสั่งที่ใช้ในในการทดลองนี้ความหมายของคำสั่ง
Router(config)#enable password conxxกำหนดรหัสผ่าน conxx
Router(config)#show running-configตรวจสอบการกำหนด password ที่ตัว Router



คำสั่งสั้นๆ แค่บรรทัดเดียวเท่านั้นครับ
การ Configure ที่ router

Router1(config)#
Router1(config)#enable password conxx [เป็นการตั้งรหัสผ่านที่จะเข้าสู่โหมด privilege เพื่อตรวจสอบสิทธิ์การใช้งาน ]

Router1 con0 is now available

Press RETURN to get started.
          
Router1>enable
Password:
Router1#
Router1#
Router1#
[เมื่อกลับเข้าสู่การทำงานของ Router อีกครั้งจำเป็นที่จะต้องมีการยืนยันรหัสผ่าน ]

ทดสอบการเข้ารหัสด้วยคำสั่ง enable secret  
          
Router1(config)#enable secret xxxx
Router1(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Router1#
Router1#
Router1#
Router1#sh running-configBuilding configuration...
Current configuration : 504 bytes
!
version 12.2
no service password-encryption
!
hostname Router1
!
!
enable secret 5 $1$mERr$2s5zEcQgIoJE5FtRk6Zt0.
enable password conxx
!
!
!
!
ip ssh version 1
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial1/0
no ip address
clock rate 56000
!
interface Serial1/1
no ip address
shutdown
!
interface Serial1/2
no ip address
shutdown
!
interface Serial1/3
no ip address
shutdown
!
ip classless
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
end
เมื่อทำการดูข้อมูลจะปรากฎให้เห็นว่า คำสั่ง enable secret มีการเขารหัสเพื่อซ่อน password


หน้าที่หลักของ CDP คือ การส่งและรับข้อมูล configuration พื้นฐาน ของ Router เพื่อนบ้าน

เพื่อค้นหาสาเหตุเมื่อ Router ทำงานผิดปกติ



การตั้งรหัสผ่าน สำหรับ Router มีความจำเป็นมาก สามารถป้องกัน

การ login เข้าสู่ Router จากผู้ที่ไม่ได้รับอนุญาติ

เราจะใช้ command ในป้องกัน การ Login ดังนี้
สถานะ promt ของ Routerคำสั่งที่ใช้ในในการทดลองนี้ความหมายของคำสั่ง
Router(config)#interface serial 0/0ติดต่อกับ interface serial0/0
Router(config)#no shutเปิดการทำงานของ interface
ที่เราทำงาน
Router(config)#clock rate 64000การตั้งค่า Clockrate ของ router ฝั่ง
DTE
Router(config)#show ip int brief  
แสดงหมายเลข IP ของ router
Router(config)#sh cdp แสดงระยะเวลาสำหรับ update
ข้อมูลระหว่างกันรวมถึง การ
update ข้อมูลของ CDP
Router(config)#

show cdp interface


แสดงข้อมูลของทุก interface 
Router(config)#show cdp neighbors แสดงข้อมูลของ Router
ที่เชื่อมต่ออยู่ โดยละเอียด



สามารถทำได้จาก Router ที่เชื่อมต่อกันอยู่ครับ เพื่อดูการรับส่งข้อมุล สถานะต่างๆ
การ Configure ที่ router

Router1(config)#interface serial 0/0Router1(config-if)#no shut
%LINK-5-CHANGED: Interface Serial1/0, changed state to downRouter1(config-if)#
Router1(config-if)#clock rate 64000Router1(config-if)#
Router1(config-if)#
%LINK-5-CHANGED: Interface Serial1/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up

Router1#show ip int brief  
แสดงหมายเลข IP ของ router
Interface               IP-Address      OK? Method Status                Protocol

FastEthernet0/0   unassigned      YES manual administratively down down

Serial1/0              unassigned      YES manual up                    up

Serial1/1              unassigned      YES manual administratively down down

Serial1/2              unassigned      YES manual administratively down down

Serial1/3              unassigned      YES manual administratively down down


Router1#sh cdp [แสดงระยะเวลาสำหรับ update ข้อมูลระหว่างกันรวมถึง การ update ข้อมูลของ CDP]
Global CDP information:
    Sending CDP packets every 60 seconds
    Sending a holdtime value of 180 seconds
    Sending CDPv2 advertisements is enabled    



Router1#show cdp interface

แสดงข้อมูลของทุก interface 
FastEthernet0/0 is administratively down, line protocol is down
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Serial0/0 is up, line protocol is up
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Serial0/1 is administratively down, line protocol is down
Sending CDP packets every 60 seconds
Holdtime is 180 seconds
Router1#

Router1#show cdp neighbors 
แสดงข้อมูลของ Router ที่เชื่อมต่ออยู่ โดยละเอียดCapability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID    Local Intrfce   Holdtme    Capability   Platform    Port ID
Router2            Ser 1/0             133            R             C2600       Ser 1/0
Router1#

Device ID คือ ชื่อของ Router ที่เราใช้เชื่อมต่ออยู่
Local Interface คือ อินเตอร์เฟสที่เชื่อมต่อกัน
Holdtime คือ ระยะเวลาที่เราเตอร์ตั้งไว้
สำหรับแก้ปัญหาการแลกเปลี่ยนข้อมูลระหว่างกัน
ถ้าไม่มีการแลกเปลี่ยนข้อมูลเกินค่า Hold down timer นี้ R1
จะลบข้อมูลของเพื่อนบ้านออกจาก Routing table คือ 133 วินาที
Capability คือ R แสดงว่ากำลังรับข้อมูลจาก R
Platform คือ แสดงรุ่นของ Router เพื่อนบ้าน
Port ID คือ เป็น port เพื่อนบ้านใช้ในการเชื่อมต่อ ในที่นี้ ใช้ port  Ser 1/0

โดย http://www.prasansoft.com/Main-Cisco-network.php

กำหนด IP address ประจำ interface port เพื่อให้ Network

บทความเรื่อง Networking ด้วย Cisco
โดย http://www.prasansoft.com
ในส่วนบทความนี้เราจะกำหนด IP address
ประจำ interface port เพื่อให้ Network ทำงานได้ 



Diagram Network เราจะทำการเชื่อมต่อ Router1 และ Router2




เราจะใช้ command ในการทดลองนี้ดังนี้
สถานะ promt ของ Routerคำสั่งที่ใช้ในในการทดลองนี้ความหมายของคำสั่ง
Router>enableเข้าไปยัง Router
Router#configure terminalเข้าสู่โหมด privilege
Route
r(config)#
interface fastethernet0/0ทำงานกับ interface fastethernet port0/0
Router
(config-if)#
ip address 192.168.1.1
255.255.255.0
กำหนด Ip address ให้กับ port interface fastethernet 0/0 มีค่าเท่ากับ 192.168.1.1 subnet mask 255.255.255.0
Router
(config-if)#
no shutกระตุ้นหรือการเปิดการทำงานของ interface
Router
(config-if)#
interface serial 0/1กำหนด IP address ประจำ port
interface serial port0/1 ของ WAN
Router
(config-if)#
ip address 10.82.1.1
255.255.255.0
ค่า Wan Ip address ที่กำหนดให้WAN
Router
(config-if)#
no shutกระตุ้นหรือการเปิดการทำงานของ interface



คำสั่งที่เราต้องการเปิดให้ Router ทำงานต้องจัดคำสั่งเป็น Step นะครับ
การ Configure ที่ router 1

Router1>enable
Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#interface fastethernet0/0
Router1(config-if)#ip address 192.168.1.1 255.255.255.0Router1(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up


Router1(config-if)#exit
Router1(config)#exit

Router1(config)#interface serial 0/1Router1(config-if)#
Router1(config-if)#ip address 10.82.1.1 255.255.255.0
Router1(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/1, changed state to down
การ Configure ที่ router 2

Router2>
Router2>enable
Router2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router2(config)#
Router2(config)#interface fastethernet0/0
Router2(config-if)#ip address 192.168.2.1 255.255.255.0
Router2(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router2(config-if)#


Router2(config-if)#exit
Router2(config)#exit
Router2#
Router2#enable
Router2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router2(config)#interface serial0/0
Router2(config-if)#ip address 10.82.1.2 255.255.255.0
Router2(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0, changed state to down
Router2(config-if)#

ตรวจสอบสถานะการ COnfiguration Fastehternet0/0 ของ Router1 และ

ตรวจสอบสถานะการ COnfiguration Fastehternet0/0 ของ Router2

ด้วยการใช้คำสั่ง Show Ip interface brief



ทำการทดลอง การเชื่อมต่อด้วย Diagram ในที่นี้ สามารถทดสอบได้

ด้วยการ Ping จาก PC ไปที่ Router เป็นลักษณะของการติดต่อ Gateway นั่นเอง




ทดสอบด้วย การ Ping Command ของ 192.168.1.2 ซึ่งเชื่อมต่อที่ router 1




ทดสอบด้วย การ Ping Command ของ 192.168.2.2 ซึ่งเชื่อมต่อที่ router 2




การกำหนด Ip address ให้กับ interface ซึ่งเป็นค่า Gateway นั่นเอง

โดย http://www.prasansoft.com/Main-Cisco-network.php

ศึกษาเรื่อง Networking กับอุปกรณ์ Cisco IOS Network

ศึกษาเรื่อง Networking กับอุปกรณ์ Cisco IOS Network
ด้วยโปรแกรม Cisco Packet Tracer

โดย http://www.prasansoft.com

อุปกรณ์ของ CISCO นั้นเป็นอุปกรณ์ที่ Management ได้เราสามารถปรับแต่ง ได้จาก Command

ที่มีอยู่ภายในระบบปฎิบัติการ IOS ของ CISCO เอาเป็นว่าสำหรับผู้เริ่มต้นเรียนรู้ Management

ทางด้าน Network แล้วกันนะครับ ภาพแสดงอุปกรณ์ที่จะใช้ทำการ Configure


Diagram Network เราจะทำการเชื่อมต่อ Router1 และ Router2



พร้อมทั้งเตรียมพร้อมการทำงาน เรียกว่ากระตุ้นการทำงานของ interface ทั้ง 2 ฝั่ง

ด้วยคำสั่ง no shut ท ี่Router1 interface serial0/0 และ
เช่นกันที่ Router 2 interface serial0/1 ซึ่งเชื่อมต่อกันด้วย สาย serial

เราจะใช้ command ในการทดลองนี้ดังนี้ 
สถานะ promt ของ Routerคำสั่งที่ใช้ในในการทดลองนี้ความหมายของคำสั่ง
Router>enableเข้าไปยัง Router
Router#configure terminalเข้าสู่โหมด privilege
Router(config)#hostname Router2เปลี่ยนชื่อของ Router
Router(config)#interface serial 0/1ติดต่อกับ interface serail หมายเลข port 0/1
Router(config-if)#no shutกระตุ้นหรือการเปิดการทำงานของ interface




ภาพแสดงการ Configure ที่ Console

คำสั่งที่เราต้องการเปิดให้ Router ทำงานต้องจัดคำสั่งเป็น Step นะครับ
การ Configure ที่ router 1
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706

Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-I-M), Version 12.2(28), RELEASE SOFTWARE (fc5)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 27-Apr-04 19:01 by miwang
cisco 2620 (MPC860) processor (revision 0x200) with 60416K/5120K bytes of memory
.
Processor board ID JAD05190MTZ (4292891495)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
1 FastEthernet/IEEE 802.3 interface(s)
2 Low-speed serial(sync/async) network interface(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read/Write)
--- System Configuration Dialog ---
Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!

Router>enableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Router1Router1(config)#
Router1(config)#interface serial 0/0Router1(config-if)#
Router1(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0, changed state to up
Router1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

การ Configure ที่ router 2

Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706

Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-I-M), Version 12.2(28), RELEASE SOFTWARE (fc5)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 27-Apr-04 19:01 by miwang
cisco 2620 (MPC860) processor (revision 0x200) with 60416K/5120K bytes of memory
.
Processor board ID JAD05190MTZ (4292891495)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
1 FastEthernet/IEEE 802.3 interface(s)
2 Low-speed serial(sync/async) network interface(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read/Write)
--- System Configuration Dialog ---
Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!

Router>enableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Router2Router2(config)#
Router2(config)#interface serial 0/1Router2(config-if)#
Router2(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/1, changed state to up
Router2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up


ในขณะนี้สถานะของ Router ของเราได้ Up แล้ว เราสามารถใช้คำสั่ง Show ip int Brief

เพื่อตรวจสอบสถานะการ Up ที่ serial interface0/0 ของ Router1 


ภาพแสดงสถานะของ Router1 Serial0/0 สถานะ up



ภาพ แสดงสถานะของ Router2 Serial0/1 Up

นี่เป็นเพียงการเริ่มต้นการทำงานของ Router เท่านั้น ขั้นตอนต่อไปเรามาดู

การกำหนด Ip address ให้กับ interface ซึ่งเป็นค่า Gateway นั่นเอง 

โดย http://www.prasansoft.com/Main-Cisco-network.php