[j-nsp] selecting 2ndary addresses to advertise in OSPF
Stacy W. Smith
stacy at acm.org
Tue Feb 22 16:11:19 EST 2011
You can actually specify an IP as an argument to the 'interface' command under [edit protocols ospf area <area>] instead of the normal interface name. When you do so, it only advertises the single prefix.
Something like this should meet your need:
user at host> show configuration interfaces lo0
unit 0 {
family inet {
address 100.252.3.2/32 {
primary;
preferred;
}
address 100.252.3.1/32;
address 100.255.196.1/32;
address 100.253.246.1/32;
}
}
user at host> show configuration protocols ospf
area 0.0.0.3 {
interface 100.252.3.2 {
passive;
}
interface 100.252.3.1 {
passive;
}
}
user at host> show ospf database detail
OSPF link state database, Area 0.0.0.3
Type ID Adv Rtr Seq Age Opt Cksum Len
Router *100.252.3.2 100.252.3.2 0x80000003 33 0x22 0xfb8c 48
bits 0x0, link count 2
id 100.252.3.2, data 255.255.255.255, Type Stub (3)
TOS count 0, TOS 0 metric 0
id 100.252.3.1, data 255.255.255.255, Type Stub (3)
TOS count 0, TOS 0 metric 0
Unfortunately, I don't believe you can do anything equivalent for OSPF3.
--Stacy
On Feb 22, 2011, at 1:43 PM, Bit Gossip wrote:
> Experts,
> in a setup like this one, once lo0.0 is put in ospf ALL of it addresses
> are advertised by OSPF. Is it possible to select which addresses to
> advertise?
> Redistributing direct is not an option because will make them external.
> Thanks,
> bit.
>
> lo0 {
> unit 0 {
> family inet {
> address 100.252.3.2/32 {
> primary;
> preferred;
> }
> address 100.252.3.1/32;
> address 100.255.196.1/32;
> address 100.253.246.1/32;
>
> ospf {
> area 0.0.0.3 {
> interface lo0.0 {
> passive;
>
>
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/juniper-nsp
More information about the juniper-nsp
mailing list