The network command for IGP (OSPF RIP etc) enables IGP on the interfaces
(BGP is a different case). Like for OSPF it tells the router which
interfaces are in which areas. And it causes the router to start sending
OSPF hellos on matching interfaces. In the example, the mask indicates that
any interfaces in the range 131.108.0.0 through 131.108.31.255 should be in
area 0, and interfaces in the range 131.108.64.0  through 131.108.95.255
should be in area 2.

Area 1             Area2

131.108.  0.  0      131.108. 64.  0 
  0.  0. 31.255        0.  0. 31.255 
---------------      --------------- 
131.108. 31.255      131.108. 95.255

Here's the Cisco router configuration: 

interface Ethernet 0 
ip address 131.108.1.2 255.255.255.192 
interface Serial 0 
ip address 131.108.64.1 255.255.255.192 

router ospf 1 
network 131.108.0.0 0.0.31.255 area 0 
network 131.108.64.0 0.0.31.255 area 2 

Some people prefer to Keep It Simple, configuring network 131.108.1.2
0.0.0.0 area 0. This tells the router that precisely the address 131.108.1.2
is in area 0. That's certainly simple: keep the mask 0.0.0.0, and just
specify each interface address. Of course, it's a bunch of typing on a
bigger router with lots of interfaces.

Now in case of Juniper, You add interfaces under OSPF configuration instead
of network commands.
Here is the Juniper router configuration:

ospf {
        area 0.0.0.0 {
          interface fe-0/0/0.0 
        
        }

        area 0.0.0.2 {
          interface se-0/0/0.0;
        }
}


Regards,
Masood

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Maurice Gil Cruz
Sent: Wednesday, November 26, 2008 9:05 PM
To: juniper-nsp@puck.nether.net
Subject: [j-nsp] cisco "network" command equivalent

Hi guys,

I just would like to know the equivalent of the cisco command 
    "network <ip> mask <mask>" 
in juniper. If there is none, I would like to know as to how junos is able
to advertise the routes without declaring the networks/unicast addresses to
be advertised.

Please help. God bless!

 
Sincerely,

Maurice


      New Email names for you! 
Get the Email name you&#39;ve always wanted on the new @ymail and
@rocketmail. 
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
_______________________________________________
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp

_______________________________________________
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp

Reply via email to