[CCNA]static route with exit interface กับ with next hop มีค่า AD เท่ากัน

seanmine

New member
เล่มหนึ่ง กล่าวไว้ว่า
การ setup static route with exit interface จะให้ค่า AD เป็น 0
และ การ setup static route with next hop ip จะให้ค่า AD เป็น 1

ซึ่งตรงนี้ผิด

ซึ่งเมื่อ #show ip route พิสูจน์ดูแล้วจะเห็นว่า การ config static route with exit interface เราจะมองไม่เห็นค่า AD และจะเห็นเป็น directly connected

การพิสูจน์ ค่า AD ในกรณีนี้ให้ใช้คำสั่ง
#show ip route เช่น

#show ip route
C 192.168.1.0/24 is directly connected, Serial0/0/0
S 192.168.2.0/24 is directly connected, Serial0/0/0

#sh ip route 192.168.2.0
Routing entry for 192.168.2.0/24
Known via "static", distance 1, metric 0 (connected)
Routing Descriptor Blocks:
* directly connected, via Serial0/0/0
Route metric is 0, traffic share count is 1


สังเกตุว่า distance = 1
ที่เป็นเช่นนั้นเพราะ cisco router ได้ difine ไว้เเล้วว่า static route AD=1 connected AD=0 RIP AD=120 เป็นต้น

สังเกตุว่า show ip route
ผลลัพคอลัมน์แรก ของ static route with exit interface ว่า เป็น S เพราะฉนั้น ค่า AD=1 อย่างที่ควรจะเป็นไม่ใช่ 0
 

refeel

New member
ใช่ครับ เมื่อมันเป็น static ยังไงแล้วค่า AD มันคือ 1 แน่นอน

แต่ static มันประกาศได้ 2 แบบ จึงได้มีการกำหนดแบบสมมุติขึ้นมาเพื่อให้เร้าเตอร์ต้องเลือกเส้นทางออกไป
ในเมื่อ static มีค่า defualt เป็น 1 อยู่แล้ว ฉะนั้นการประกาศ static ที่ใช้ interface จึงถูกกำหนดให้เป็น 0 โดยที่
เร้าเจอร์จะเข้าใจของมันแบบนั้น เมื่อมีเส้นทางไป 2 ทาง ทางนึงใช้ interface และ ทางนึงใช้ nexthop มันจะเลือก
ไปทาง interface แน่นอน แต่เมื่อ show ip route ขึ้นมา ก็คงจะเห็นค่า AD เป็น 1 ทั้งหมด เนื่องจาก มันคือ Static นั่นเอง
 

seanmine

New member
ข้อดีของ routing entry แบบ exit interface คือ
static route with exit interface จะให้ ประสิทธิภาพ ที่ดีกว่า next hop ip
เพราะ ว่าเมื่อ router lookup ใน routing table เจอ
next hop ip มันจะ resolve exit interface ด้วยอีกทีหนึ่ง
การ คอนฟิค static route ด้วย exit interface จะลดกระบวนการทำงานของ router ตรงนี้จาก 2 step เป็น 1 step

การค้นหา exit interface จาก next hop ip เรียกว่า "Recursive Route Lookup"




พอจะได้ความรู้เพิ่มเติมบ้างไหมครับ ^^ ทั้งหมดนี้ผมไ้ด้ศึกษา จาก สื่อการเรียนของ cisco ที่เป็น flash ที่ชื่อ "CCNA exploration V4" ยังไงก็ลองไปหาอ่านกันดู ละเอียดทีเดียว


 

refeel

New member
เพราะยังไงแล้วเร้าเตอร์ก็มองเห็นเป็น connected อยู่แล้ว ดังนั้นมันจึงไม่ต้องเสียเวลาในการค้นหาที่เป็น nexthop อีก แต่ยังไงก็ถูกบรรจุลงใน routing table เหมือนกัน
 

seanmine

New member
แต่ แบบ static route with exit interface ไม่สามารถใช้กับ network แบบ multi-access ได้เพราะ ว่า ip-adrress next hop ปลาย ทาง อาจจะ มีมากกว่า 1 ซึ่ง ต่างจากแบบ point-to-point ซึ่งมีี router ปลายทางเพียงตัวเดียว
 

refeel

New member
static route with exit interface นั้น ยังคงใช้ได้กับ Network แบบ Multi Access ครับ ใช้ proxy-arp ช่วยครับ
 
Top