Discussion:
[j-nsp] Generating inet6 routes
Ras
2007-08-14 14:02:02 UTC
Permalink
I'm trying to generate an inet6 route in roughly the same way that I
generate an inet route, but the config checker is disagreeing with me:

[edit routing-options generate]
route 0.0.0.0/0 {
policy generate-default;
metric 10000;
discard;
}
route ::/0 {
metric 10000;
discard;
}

(no policy because the peering isn't up yet)

However, a commit check shows:
# commit check
[edit routing-options generate]
'route ::/0'
RT: invalid destination ::/0 for family inet
error: configuration check-out failed


I had a look around the internet and the documentation, but I can't
find any obvious way to specify that it is an inet6 route.

Help?

Thanks,
Ras
Ras
2007-08-14 14:08:33 UTC
Permalink
Post by Ras
I'm trying to generate an inet6 route in roughly the same way that I
Why is it always 2 minutes after sending an email, the answer that
escaped you for an hour becomes obvious... the solution of course is:

[edit routing-options]
+ rib inet6 {
+ generate {
+ route ::0/0 {
+ metric 10000;
+ discard;
+ }
+ }
+ }


Ras
Sabri Berisha
2007-08-14 14:20:13 UTC
Permalink
On Tue, Aug 14, 2007 at 03:08:33PM +0100, Ras wrote:

Hi,
Post by Ras
Why is it always 2 minutes after sending an email, the answer that
And then you always have someone who is on the bottom of the j-nsp list
and gets this email about 10 minutes later :-)
--
Sabri
JNCIE-M #261
JNCIS-ER #6
Eric Van Tol
2007-08-14 14:18:23 UTC
Permalink
Just taking a stab in the dark here, but couldn't this be accomplished
by using the 'rib' option?

[edit routing-options]
user at foo# set rib inet6.0 generate ::/0 metric 65000 discard

I've never done generated routes before, so this could be incorrect.

-evt
-----Original Message-----
From: juniper-nsp-bounces at puck.nether.net
[mailto:juniper-nsp-bounces at puck.nether.net] On Behalf Of Ras
Sent: Tuesday, August 14, 2007 10:02 AM
To: juniper-nsp at puck.nether.net
Subject: [j-nsp] Generating inet6 routes
I'm trying to generate an inet6 route in roughly the same way that I
[edit routing-options generate]
route 0.0.0.0/0 {
policy generate-default;
metric 10000;
discard;
}
route ::/0 {
metric 10000;
discard;
}
(no policy because the peering isn't up yet)
# commit check
[edit routing-options generate]
'route ::/0'
RT: invalid destination ::/0 for family inet
error: configuration check-out failed
I had a look around the internet and the documentation, but I can't
find any obvious way to specify that it is an inet6 route.
Help?
Thanks,
Ras
_______________________________________________
juniper-nsp mailing list juniper-nsp at puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp
Sabri Berisha
2007-08-14 14:18:36 UTC
Permalink
On Tue, Aug 14, 2007 at 03:02:02PM +0100, Ras wrote:

Hi,
Post by Ras
# commit check
[edit routing-options generate]
'route ::/0'
RT: invalid destination ::/0 for family inet
error: configuration check-out failed
[edit routing-options]
lab at j6300-1# show
rib inet6.0 {
generate {
route ::/0 {
metric 10000;
discard;
}
}
}

[edit routing-options]
lab at j6300-1# commit
commit complete

[edit routing-options]
lab at j6300-1# run show route table inet6.0 hidden

inet6.0: 1 destinations, 1 routes (0 active, 0 holddown, 1 hidden)
+ = Active Route, - = Last Active, * = Both

::/0 [Aggregate] 00:01:04, metric 10000
Discard


http://www.juniper.net/techpubs/software/junos/junos83/swconfig83-routing/id-10388137.html


Enjoy :)
--
Sabri
JNCIE-M #261
JNCIS-ER #6
Continue reading on narkive:
Search results for '[j-nsp] Generating inet6 routes' (Questions and Answers)
10
replies
I want 2 learn basic commands of command prompt.?
started 2009-03-09 02:03:49 UTC
programming & design
Loading...