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.
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
Leave a Reply