Confusing about IPV6 Static Routing command

pvanvu

Member
Feb 19, 2016
37
0
6
HI , guys
I just got an assignment about the IPV6 Static Routing , and the answer made me confuse .

Base on the assignment my answer will be :
R1(config)# ipv6 route ::/0 G0/0 fe80::2

but the answer from Cisco is
-> R1(config)# ipv6 route ::/0 G0/1 fe80::2

Can you guys give me some explanations ? it's totally different from what i read from the cisco book .

confuse.jpg
 

drebo

Diamond Member
Feb 24, 2006
7,035
1
81
G0/1 is the egress interface. When using a link local address as a next hop in a static route, you have to specify the egress interface.

Think about it a different way...why would you conclude from the diagram and question that the egress interface toward the internet from R1 is G0/0?
 

pvanvu

Member
Feb 19, 2016
37
0
6
G0/1 is the egress interface. When using a link local address as a next hop in a static route, you have to specify the egress interface.

Think about it a different way...why would you conclude from the diagram and question that the egress interface toward the internet from R1 is G0/0?

Hi Drebo , thank you very much for your response

These are all the commands , and Infos I read from the Cisco site , and they config on the next hop exit Interface .

Are there somethings wrong with the commands below ? If I'm wrong , or misunderstand somewhere, please tell me
Thank you


778b881.jpg



7865843.jpg



7801e16.jpg
 

Gryz

Golden Member
Aug 28, 2010
1,551
203
106
First a few points.

You are configuring on router R1.

Static routes consist of 1) the prefix that is the destination where you want to send traffic, 2) which way to send packets out for that prefix.

If the way out is over a serial interface, all you need to do is specify over which serial interface you need to send traffic out. Serial interface means there is only 1 router on the other side of the interface. So you can't miss it. :)

On the other hand, over an ethernet interface, there could be multiple other routers. So you need to specify which of those routers you want to send traffic to. (To reach that destination for which you configure the static route). Therefor the static-route-command allows you to configure the next-hop IP-address. In stead of the outgoing interface.

If you tell the router the next-hop IP-address of a static route, that is usually enough for the router to understand over which interface to send the traffic out. In the routing-table, it has entries for all directly connected networks. And there it can find the next-hop ip-address. Easy.

But here we deal with IPv6. And link-local addresses. If you configure a link-local address as next-hop, that is not enough for the router to figure out which interface to send the packet out over. Because on every link (= every interface), there might be a router on the other side using the exact same link-local address. Because link-local addresses are not unique in the world. Or unique in your network. They are only unique on one single link. One single LAN, or one single p2p serial interface. Therefor in this case, you need to configure more. You need to also configure the outgoing interface.

You configure something on R1.
Therefor, in the static routes, you can use only interfaces of R1. A router knows about IP-addresses. And MAC-address. (And more types of addresses maybe). But it doesn't know how another router names its interfaces. The other routers might not be ciscos. They might be Nokia routers, or Juniper routers. And even then, you still don't know what name the other router gave to the interface you are conneting to.

But you know the name of the outgoing interface on your own router. That's G0/1 in the first picture. So that is the name of the outgoing interface that you use in your configuration command.


If you understand this, maybe you will understand the pictures in your second post too.
 

pvanvu

Member
Feb 19, 2016
37
0
6
First a few points.

You are configuring on router R1.

Static routes consist of 1) the prefix that is the destination where you want to send traffic, 2) which way to send packets out for that prefix.

If the way out is over a serial interface, all you need to do is specify over which serial interface you need to send traffic out. Serial interface means there is only 1 router on the other side of the interface. So you can't miss it. :)

On the other hand, over an ethernet interface, there could be multiple other routers. So you need to specify which of those routers you want to send traffic to. (To reach that destination for which you configure the static route). Therefor the static-route-command allows you to configure the next-hop IP-address. In stead of the outgoing interface.

If you tell the router the next-hop IP-address of a static route, that is usually enough for the router to understand over which interface to send the traffic out. In the routing-table, it has entries for all directly connected networks. And there it can find the next-hop ip-address. Easy.

But here we deal with IPv6. And link-local addresses. If you configure a link-local address as next-hop, that is not enough for the router to figure out which interface to send the packet out over. Because on every link (= every interface), there might be a router on the other side using the exact same link-local address. Because link-local addresses are not unique in the world. Or unique in your network. They are only unique on one single link. One single LAN, or one single p2p serial interface. Therefor in this case, you need to configure more. You need to also configure the outgoing interface.

You configure something on R1.
Therefor, in the static routes, you can use only interfaces of R1. A router knows about IP-addresses. And MAC-address. (And more types of addresses maybe). But it doesn't know how another router names its interfaces. The other routers might not be ciscos. They might be Nokia routers, or Juniper routers. And even then, you still don't know what name the other router gave to the interface you are conneting to.

But you know the name of the outgoing interface on your own router. That's G0/1 in the first picture. So that is the name of the outgoing interface that you use in your configuration command.


If you understand this, maybe you will understand the pictures in your second post too.

thank Gryz a lot , you are my savior , I understand everything now .

Big thank to you Bro. :thumbsup::thumbsup::thumbsup: