IPv6 Static Routing On Juniper

IPv6 Static Route Juniper Example, Juniper Static Routing Example

IPv6 Static Route Juniper Example

In this IPv6 Static Route Juniper Example lesson, we will focus on IPv6 static routing on Juniper routers. You can also view Cisco IPv6 static route example. On a Juniper router to create a static route for IPv6, firstly we use “routing-options” hierarchy as we do for 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 and two networks. To inform the edge routers about the other edge network, we will use static routes, but this time we will do this with IPv6 addresses.

 

Fristly, let ‘s configure ipv6 addresses of the router interfaces. To do this, we will use “set address ipv6-address” command.

 


 

For Junos1 Router:

root> configure

[edit]

root# set interfaces em0 unit 0 family inet6

[edit interfaces em0 unit 0 family inet6]

root# set address 2001:200:20:1::1/64

 

For Junos 2 Router:

root> configure

[edit]

root# set interfaces em0 unit 0 family inet6

[edit interfaces em0 unit 0 family inet6]

root# set address 2001:200:20:1::2/64

[edit interfaces em0 unit 0 family inet6]

root# set interfaces em1 unit 0 family inet6

[edit interfaces em1 unit 0 family inet6]

root# set address 2001:200:30:2::2/64

 

For Junos 3 Router:

root> configure

[edit]

root# set interfaces em0 unit 0 family inet6

[edit interfaces em0 unit 0 family inet6]

root# set address 2001:200:30:2::1/64

 

After 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

 

For Junos 3 Router:

[edit routing-options rib inet6.0]

root# set static route 2001:200:20:1::1/128 next-hop 2001:200:30:2::2

[edit routing-options rib inet6.0]

root# commit

 

We can check our configurations by “run show | display set “ command under “edit mode”. The results are below:

 

 

Lasty, it is time to ping from one end to another to test IPv6 static routing on Juniper routers. to do this, we will use “ping inet6 target-ipv6-address” command.

 

juniper-ipv6-ping-test-ipcisco

 

As shown on above output, ping from the Junos Router 1 to Junos Router 2 is successfull.

 


Download GNS3 IPv6 Static Routes on Juniper Routers Lab.


 

Lesson tags: IPv6, Static Routing, junos, juniper
Back to: JNCIS > Protocol-Independant Routing

Leave a Reply

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