Static Route Configuration on Juniper (JunOS) Routers

Here are sample static route configuration on Juniper routers such as MX and QFX series.

1.Configure IPv4 default route to next hop 192.168.10.3

set routing-options static route 0.0.0.0/0 next-hop 192.168.10.3

 

2.Configure IPv4 default route to next hop 192.168.10.3 via management port

set routing-instances mgmt_junos routing-options static route 0.0.0.0/0 next-hop 192.168.10.3

 

3. Configure IPv4 for 192.168.0.0/16 range to Null interface (e.g. for BGP advertisement)

set routing-options static route 192.168.0.0/16 discard

 

4. .Configure IPv6 default route to next hop fdff:13aa:8bbb:0:192:168:10:3

set routing-options rib inet6.0 static route ::/0  next-hop fdff:13aa:8bbb:0:192:168:10:3

 

5. Configure IPv6 for fdff:13aa::/48 range to Null interface (e.g. for BGP advertisement)

set routing-options rib inet6.0 static route fdff:13aa::/48 discard

Be First to Comment

Leave a Reply

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