Next-Hop Options
In this example, Figures 1 to 3 display the routing tables of R1, R2, and R3. Each router has entries only for directly connected networks and their associated local addresses. None of the routers have any knowledge of any networks beyond their directly connected interfaces.
For example, R1 has no knowledge of networks:
• 2001:DB8:ACAD:2::/64 - LAN on R2
• 2001:DB8:ACAD:5::/64 - Serial network between R2 and R3
• 2001:DB8:ACAD:3::/64 - LAN on R3
Figure 4 displays a successful ping from R1 to R2. Figure 5 displays an unsuccessful ping to the R3 LAN. This is because R1 does not have an entry in its routing table for that network.
The next hop can be identified by an IPv6 address, exit interface, or both. How the destination is specified creates one of three route types:
• Next-hop static IPv6 route - Only the next-hop IPv6 address is specified.
• Directly connected static IPv6 route - Only the router exit interface is specified.
• Fully specified static IPv6 route - The next-hop IPv6 address and exit interface are specified.
Configure a Next-Hop Static IPv6 Route
In a next-hop static route, only the next-hop IPv6 address is specified. The output interface is derived from the next hop. For instance, in Figure 1, three next-hop static routes are configured on R1.
As with IPv4, before any packet is forwarded by the router, the routing table process must resolve the route to determine the exit interface to use to forward the packet. The route resolvability process will vary depending upon the type of forwarding mechanism being used by the router. CEF (Cisco Express Forwarding) is the default behavior on most platforms running IOS 12.0 or later.
Figure 2 details the basic packet forwarding route resolvability process in the routing table for R1 without the use of CEF. When a packet is destined for the 2001:DB8:ACAD:3::/64 network, R1:
1. Looks for a match in the routing table and finds that it has to forward the packets to the next-hop IPv6 address 2001:DB8:ACAD:4::2. Every route that references only a next-hop IPv6 address and does not reference an exit interface must have the next-hop IPv6 address resolved using another route in the routing table with an exit interface.
2. R1 must now determine how to reach 2001:DB8:ACAD:4::2; therefore, it searches a second time looking for a match. In this case, the IPv6 address matches the route for the directly connected network 2001:DB8:ACAD:4::/64 with the exit interface Serial 0/0/0. This lookup tells the routing table process that this packet is forwarded out of that interface. Therefore, it actually takes two routing table lookup processes to forward any packet to the 2001:DB8:ACAD:3::/64 network. When the router has to perform multiple lookups in the routing table before forwarding a packet, it is performing a process known as a recursive lookup.
A recursive static IPv6 route is valid (that is, it is a candidate for insertion in the routing table) only when the specified next hop resolves, either directly or indirectly, to a valid exit interface.
Use the Syntax Checker in Figure 3 and Figure 4 to configure next-hop static IPv6 routes.
Therefore, it actually takes two routing table lookup processes to forward any packet to the 2001:DB8:ACAD:3::/64 network. When the router has to perform multiple lookups in the routing table before forwarding a packet, it is performing a process known as a recursive lookup.
A recursive static IPv6 route is valid (that is, it is a candidate for insertion in the routing table) only when the specified next hop resolves, either directly or indirectly, to a valid exit interface.
Use the Syntax Checker in Figure 3 and Figure 4 to configure next-hop static IPv6 routes.
Configure a Directly Connected Static IPv6 Route
When configuring a static route on point-to-point networks, an alternative to using the next-hop IPv6 address is to specify the exit interface. This is an alternative used in older IOSs or whenever CEF is disabled, to avoid the recursive lookup problem.
For instance, in Figure 1, three directly connected static routes are configured on R1 using the exit interface.
The IPv6 routing table for R1 in Figure 2 shows that when a packet is destined for the 2001:DB8:ACAD:3::/64 network, R1 looks for a match in the routing table and finds that it can forward the packet out of its Serial 0/0/0 interface. No other lookups are required.
Notice how the routing table looks different for the route configured with an exit interface than the route configured with a recursive entry.
Configuring a directly connected static route with an exit interface allows the routing table to resolve the exit interface in a single search instead of two searches. Recall that with the use of the CEF forwarding mechanism, static routes with an exit interface are considered unnecessary. A single lookup is performed using a combination of the FIB and adjacency table stored in the data plane.
Use the Syntax Checker in Figure 3 and Figure 4 to configur
ตัวเลือกต่อไปโลดในตัวอย่างนี้ เลข 1 แสดงเส้นทางตาราง R1 , R2 , R3 . แต่ละเราเตอร์มีรายการเดียวที่เชื่อมต่อโดยตรงของเครือข่ายและที่เกี่ยวข้องในท้องถิ่นที่อยู่ ไม่มีของเราเตอร์มีความรู้ใด ๆนอกเหนือจากการเชื่อมต่อเครือข่ายที่เชื่อมต่อโดยตรง .ตัวอย่างเช่น , R1 ไม่มีความรู้ของเครือข่าย :บริการ db8 , 2544 : : : 2 : : / 64 - LAN อาร์ทูบริการ db8 , 2544 : : : 5 : : / 64 - R2 R3 และเครือข่ายระหว่างอนุกรมบริการ db8 , 2544 : : : 3 : : / 64 - LAN บน R3รูปที่ 4 แสดง ping ประสบความสำเร็จจาก R1 กับ R2 . รูปที่ 5 แสดงการ ping ไม่สำเร็จกับ R3 LAN นี้เป็นเพราะ R1 ไม่ได้มีรายการของตารางเส้นทางสำหรับเครือข่ายhop ถัดไปสามารถระบุที่อยู่ IPv6 ออกอินเตอร์เฟซ หรือทั้งสองอย่าง วิธีการสร้างหนึ่งของเส้นทางที่ระบุปลายทางเป็นสามประเภท :- ต่อไปโลด สถิต IPv6 เส้นทางเฉพาะต่อไปโลด IPv6 ที่อยู่ที่ระบุ- เชื่อมต่อโดยตรงคงเส้นทาง - เฉพาะ IPv6 เราเตอร์ออกจากอินเตอร์เฟซที่กำหนดไว้- ระบุเส้นทางแบบเต็ม IPv6 - ถัดไป Hop ที่อยู่ IPv6 และออกจากอินเตอร์เฟซที่กำหนดไว้การกำหนดค่าคงที่ IPv6 เส้นทางต่อไปโลดในเส้นทางต่อไปโลด สถิตเท่านั้น ต่อไปโลด IPv6 ที่อยู่ที่ระบุ ออกอินเตอร์เฟซที่ได้มาจาก hop ถัดไป ตัวอย่างในรูปที่ 1 , 3 ต่อไปโลด สถิตเส้นทางการกำหนดค่าบน R1 .กับแพ็คเก็ต IPv4 ก่อนที่ใด ๆถูกส่งต่อโดยเราเตอร์ , เส้นทางกระบวนการต้องแก้ไขเส้นทางเพื่อตรวจสอบออกอินเตอร์เฟซที่จะใช้ในการส่งแพ็คเก็ต เส้นทาง resolvability กระบวนการจะแตกต่างกันขึ้นอยู่กับประเภทของการส่งต่อ กลไกที่ถูกใช้โดยเราเตอร์ CEF ( Cisco Express Forwarding ) คือ พฤติกรรมเริ่มต้นบนแพลตฟอร์มที่สุดใช้ iOS 12.0 หรือในภายหลังรูปที่ 2 รายละเอียดพื้นฐานของแพ็กเก็ตส่งต่อเส้นทาง resolvability กระบวนการในเส้นทางสำหรับ R1 โดยไม่ใช้ CEF . เมื่อแพ็คเก็ตเป็น destined สำหรับ db8 , 2544 : : : 3 : : / 64 เครือข่าย R1 :1 . มองการแข่งขันตารางเส้นทาง และพบว่ามันมีการส่งต่อแพ็กเก็ตไปยัง Hop ที่อยู่ IPv6 db8 , 2544 : : : 4 : : 2 ทุกเส้นทางที่อ้างอิงเพียงถัดไป Hop ที่อยู่ IPv6 และไม่อ้างอิงทางออกเชื่อมต้องมี IPv6 hop ถัดไปที่อยู่แก้ไขโดยใช้เส้นทางอื่นในเส้นทางที่มีออกอินเตอร์เฟซ2 . R1 ตอนนี้ต้องศึกษาวิธีการเข้าถึง db8 , 2544 : : : 4 : : 2 ; ดังนั้น จึงหาเวลาที่สองมองตรงกัน ในกรณีนี้ , IPv6 ที่อยู่ตรงกับเส้นทางสำหรับเครือข่ายที่เชื่อมต่อโดยตรง db8 , 2544 : : : 4 : : / 64 กับออกอินเตอร์เฟซอนุกรม 0 / 0 / 0 การค้นหานี้จะบอกตารางเส้นทางกระบวนการที่แพ็คเก็ตนี้จะถูกส่งต่อไปที่อินเตอร์เฟซ ดังนั้น มันต้องใช้สองเส้นทางการค้นหากระบวนการส่งต่อแพ็คเก็ตใด ๆเพื่อ db8 , 2544 : : : 3 : : / 64 เครือข่าย เมื่อเราเตอร์มีการดำเนินการหลายค้นหาในเส้นทางก่อนการส่งต่อแพ็กเก็ต มีการแสดงขั้นตอนที่รู้จักกันเป็น ผลการค้นหาเป็นผู้คงที่ IPv6 เส้นทางที่ถูกต้อง ( คือมันเป็นผู้สมัครในการแทรกตารางเส้นทาง ) เมื่อกำหนดต่อไปโลด ช่วยแก้ปัญหา ไม่ว่าโดยตรงหรือโดยอ้อมกับอินเตอร์เฟซทางออกที่ถูกต้องใช้ตัวตรวจสอบไวยากรณ์ในรูปที่ 3 และรูปที่ 4 การปรับแต่งต่อไปโลด สถิต IPv6 เส้นทางดังนั้น มันต้องใช้สองเส้นทางการค้นหากระบวนการส่งต่อแพ็คเก็ตใด ๆเพื่อ db8 , 2544 : : : 3 : : / 64 เครือข่าย เมื่อเราเตอร์มีการดำเนินการหลายค้นหาในเส้นทางก่อนการส่งต่อแพ็กเก็ต มีการแสดงขั้นตอนที่รู้จักกันเป็น ผลการค้นหาเป็นผู้คงที่ IPv6 เส้นทางที่ถูกต้อง ( คือมันเป็นผู้สมัครในการแทรกตารางเส้นทาง ) เมื่อกำหนดต่อไปโลด ช่วยแก้ปัญหา ไม่ว่าโดยตรงหรือโดยอ้อมกับอินเตอร์เฟซทางออกที่ถูกต้องใช้ตัวตรวจสอบไวยากรณ์ในรูปที่ 3 และรูปที่ 4 การปรับแต่งต่อไปโลด สถิต IPv6 เส้นทางปรับค่าโดยตรงเชื่อมต่อ IPv6 เส้นทางคงที่เมื่อทำการปรับแต่งเส้นทางแบบคงที่บนเครือข่ายจากจุดหนึ่งไปยังอีกจุดหนึ่ง ทางเลือกที่จะใช้ต่อไป Hop ที่อยู่ IPv6 คือการระบุออกอินเตอร์เฟซ นี้เป็นทางเลือกที่ใช้ในเก่าไปใหม่หรือ CEF พิการ เพื่อหลีกเลี่ยงผลการค้นหาปัญหาตัวอย่างในรูปที่ 1 , 3 ที่เชื่อมต่อโดยตรงคงแต่งในเส้นทาง R1 ใช้ออกอินเตอร์เฟซหกตารางเส้นทางสำหรับ R1 ในรูปที่ 2 แสดงให้เห็นว่าเมื่อแพ็คเก็ตเป็น destined สำหรับ db8 , 2544 : : : 3 : : เครือข่าย / 64 , R1 ดูให้ตรงกับตารางเส้นทาง และพบว่า มันสามารถส่ง packet ออกของหมายเลข 0 / 0 / 0 interface . ไม่มีการค้นหาอื่น ๆที่จำเป็นสังเกตว่า ตารางเส้นทาง ลักษณะที่แตกต่างกันสำหรับเส้นทาง : ทางออกอินเตอร์เฟซกว่าเส้นทางการกำหนดค่ากับผู้เข้าการกำหนดค่าเชื่อมต่อโดยตรง คงเป็นเส้นทางออกจากอินเตอร์เฟซช่วยให้ตารางเส้นทางเพื่อแก้ไขออกอินเตอร์เฟซในการค้นหาเดียวแทน สอง การค้นหา จำได้ว่า มีการใช้กลไกของ CEF ส่งต่อเส้นทางคงที่กับทางออกอินเตอร์เฟซที่ถือว่าไม่จำเป็น การค้นหาเดียวจะถูกดำเนินการโดยใช้การรวมกันของ Fib ถ้อยคำที่เก็บไว้ในข้อมูลและตารางเครื่องบินใช้ตัวตรวจสอบไวยากรณ์ในรูปที่ 3 และรูปที่ 4 T
การแปล กรุณารอสักครู่..
