Subscribe via RSS Feed Connect on Google Plus Connect on LinkedIn
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...Loading...

Juniper: Inserindo rota estática com diferentes métricas para next-hops

16 de abril de 2011 0 Comments
ShareTweet about this on TwitterShare on TumblrShare on LinkedInShare on Google+Share on FacebookPin on PinterestEmail this to someonePrint this page

Resolvi postar essa dica pra mim mesmo! Quando estou no JUNOS sempre me esqueço do qualified-next-hop que eles inventaram.

O qualified-next-hop serve para usarmos métricas ou preferencia em rota estática com diferentes  next-hops! Nos roteadores Cisco já estamos acostumados com:

 ip route 200.60.0.0 255.255.255.0 200.196.0.5

ip route 200.60.0.0 255.255.255.0 100.0.0.5 5

 

No Juniper (JUNOS) é simples também mas de outra forma.

set routing-options static route 200.60.0.0/16 next-hop 200.196.0.5
set routing-options static route 200.60.0.0/16 qualified-next-hop 100.0.0.5 metric 5

wolfz@Juniper> show configuration routing-options

 static {

    route 200.60.0.0/16 {
        next-hop 200.196.0.5;
        qualified-next-hop 100.0.0.5 {
            metric 5;
        }
    }
}

wolfz@Juniper>show route 200.60.0.0                              

inet.0: 9 destinations, 10 routes (8 active, 0 holddown, 1 hidden)
+ = Active Route, – = Last Active, * = Both

200.60.0.0/16      *[Static/5] 00:35:29
                    > to 200.196.0.5 via em2.0
                    [Static/5] 00:18:41, metric 5
                    > to 100.0.0.5 via em1.0

Referências:

http://www.juniper.net/techpubs/software/junos/junos90/swconfig-routing/specifying-an-independent-preference-for-a-static-route.html#id-10373744

http://www.juniper.net/techpubs/software/junos/junos90/swconfig-routing/qualified-next-hop.html

Seu ip é:
54.80.234.9

ShareTweet about this on TwitterShare on TumblrShare on LinkedInShare on Google+Share on FacebookPin on PinterestEmail this to someonePrint this page

About the Author:

O autor trabalha com tecnologia de redes há 13 anos, participa de congressos no Brasil e no mundo, e contribui para melhoria de protocolos e sistemas com fabricantes de equipamentos de rede.