IPv6 Static Routing On Juniper Routers

Juniper Static Routing Example

On Juniper routers to create a static route for IPv6 we use “routing-options” hierarchy as IPv4. But this time after this hierarchy, we go under another hierarchy, “ rib inet6.0”. The below example will be a basic example of configuring IPv6 static routes on Juniper routers.

As you see we have three routers again, and two networks. To ınform the edge routers about the other edge network, we will use static routes again, but this time with Ipv6 and on Juniper routers.
With the below commands, set the interfaces Ipv6 addresses.

For Junos1 Router:

[edit interfaces em0 unit 0 family inet6] root# set address 2001:200:20:1::1/64For Junos 2 Router: [edit interfaces em0 unit 0 family inet6] root# set address 2001:200:20:1::2/64 [edit interfaces em0 unit 0 family inet6][edit interfaces em1 unit 0 family inet6] root# set address 2001:200:30:2::2/64For Junos 3 Router:

[edit interfaces em0 unit 0 family inet6] root# set address 2001:200:30:2::1/64After committing these changes, it is time to add static routes and commit:

For Junos 1 Router:

[edit routing-options rib inet6.0] root# set static route 2001:200:30:2::1/128 next-hop 2001:200:20:1::2 [edit routing-options rib inet6.0] root# commit

Lesson tags: IPv6, Static Routing, junos, juniper
Back to: JNCIA Junos > Juniper JUNOS CLI

Leave a Reply

Your email address will not be published. Required fields are marked *