Network command

Have a question or want to start a discussion? Post it! No Registration Necessary.  Now with pictures!

Threaded View
I am using the EIGRP protocol, I have a router that has its ports with
the following IP addresses(10.2.3.4 , 10.2.3.5 , 10.2.3.6)
What would be better for the network command, that is used in the EIGRP
configuration,

(Network 10.2.3.0 )
or the
(Network 10.0.0.0)

OK, now what if the port IP addresses of the router were
(190.186.2.3 , 190.186.2.4 , 190.186.2.5)
will it be
(Network 190.168.2.0)
or the
(Network 190.0.0.0)

Did you get my idea, I mean: should we use the smallest or the biggest
network range inside the network command, and is there any difference
when the network type is A, B or C.


Re: Network command
I thought that you have to specify the full class network address of the
subnet you want to add in EIGRP. So for 10.1.2.0/24 it becomes 10.0.0.0 and
for 172.23.6.7 it becoves 172.23.0.0 and voor 192.168.4.5 is becomes
192.168.4.0...

 Not sure, though.

Quoted text here. Click to load it



Re: Network command
10.2.3.0 is correct

10.0.0.0 is a diffrent network altogether


CCNA Nerd wrote:
Quoted text here. Click to load it


Re: Network command
On Mon, 04 Sep 2006 19:59:22 -0700, lrantisi@gmail.com wrote:

Quoted text here. Click to load it


10.2.3.0 is ok. EIGRP is classless. Take the smallest possible in order to
have advertisements going out on only the interfaces you want. You can do
network 10.0.0.0. however, you may not want to have neighborship on an
interface that has IP address 10.2.6.0 configured, for example.
And, make sure the network statement does 'cover' the subnets you
configure on the interfaces.

If, however, you want to advertise a loopback address of 10.2.3.5/32 only.
Then of course you will need "network 10.2.3.5 0.0.0.0".


Re: Network command
Quoted text here. Click to load it

1. Use the smaller range when possible
2. Make sure the ranges match for connected peers on connected subnets

Good point in another message - EIGRP is classless.  On that note, use this
version of the command for effect:
    router eigrp 17
     network 10.2.3.0 0.0.0.7
That way you will set the absolute range of just 0 - 7 in that last octet.
The other provided answer was to use the whole class C range:
    router eigrp 17
     network 10.2.3.0 0.0.0.255
That wastes adresses, but let's move on.

If your three routers are connected via Ethernet (10/100/whatever) to each
other, they all are connected on the same subnet (same VLAN).  They all have
to have the same network statement for the range, you cannot have one router
missing the network statement or else they will not peer.  Don't get into
the mindset that if one router advertises that range which they all connect
in that the other ones do not have to.

TIP:
Want to see the config starting from your EIGRP section?  Try this:
    show running-config | begin router eigrp

Enjoy!  Study!  Succeed!

<=- Overlord -=>
1 test away from CCNP!



Re: Network command
lrantisi@gmail.com wrote:
[snip]
Quoted text here. Click to load it

It's mostly meaningless for EIGRP.  Ideally, try to be more specific so
you won't run EIGRP on interfaces you don't want to run EIGRP.
Remember, unlike BGP, eigrp/ospf both use NETWORK statement to tell the
router what interfaces should run the routing protocol.




--

hsb


"Somehow I imagined this experience would be more rewarding" Calvin
**************************ROT13 MY ADDRESS*************************
Due to the volume of email that I receive, I may not be able to
reply to emails sent to my account. Please post a followup instead.
********************************************************************

Re: Network command
Hansang Bae wrote:
Quoted text here. Click to load it

Yup. I tend to do one of two things with network statements in OSPF. Either
very specific or very broad.

If the network has been designed and addresses properly I go for broad. E.G.

net 10.0.0.0 0.0.255.255 a 0
net 10.1.0.0 0.0.255.255 a 1
net 10.2.0.0 0.0.255.255 a 2
net 10.3.0.0 0.0.255.255 a 3

Which will then put any interface that begins 10.0 into area 0, 10.1 into area
1 etc.

If the network has not been designed properly I go very specigic;

int fas 0/1
ip add 10.1.1.1 255.255.255.128

router ospf 10
net 10.1.1.1 0.0.0.0 a 0

and so on.

I don't get why people make it difficult and go

int fas 0/1
ip add 10.1.1.1 255.255.255.128

router ospf 10
net 10.1.1.0 0.0.0.127 a 0
--
Paul Matthews                          
paul@cattytown.me.uk
http://www.hepcats.co.uk

Re: Network command
Paul Matthews wrote:
[snip]
Quoted text here. Click to load it


Just to "over engineer" it for the sake of being fancy!  

I find that with OSPF, at the ABRs, you have to be careful if you run
multiple areas.  But in EIGRP, I don't know that it matters to much.

Couldn't agree more about being specific or very broad.  


--

hsb


"Somehow I imagined this experience would be more rewarding" Calvin
**************************ROT13 MY ADDRESS*************************
Due to the volume of email that I receive, I may not be able to
reply to emails sent to my account. Please post a followup instead.
********************************************************************

Re: Network command
Hansang Bae wrote:

Quoted text here. Click to load it

Given the people who I see do it, I suspect there is a degree of ignorance, and
they think that is what they need to do by inverting the mask. One "expert"
within an organisation can do quite a bit of damage...
--
Paul Matthews                          
paul@cattytown.me.uk
http://www.hepcats.co.uk

Re: Network command
Quoted text here. Click to load it
I thought that you have to specify the full class network address of
the
Quoted text here. Click to load it
10.0.0.0 and

with
EIGRP
biggest
difference


The wildcard mask option was added in IOS 12.0(4)T for the EIGRP
network statement.


Re: Network command
Quoted text here. Click to load it
Paul Matthews wrote:
Quoted text here. Click to load it

Just to "over engineer" it for the sake of being fancy!  

I find that with OSPF, at the ABRs, you have to be careful if you run
multiple areas.  But in EIGRP, I don't know that it matters to much.

Couldn't agree more about being specific or very broad.  


--

hsb


[/quote:c94f321a50]


You can now enable OSPF under the interface for IPv4 in newer IOS
versions.  This means the network statement isn't needed under the
routing process which is the way it should have always been if you
ask me ;)

See below:

R6(config)#    
R6(config)#router ospf 1  <- enable the process
R6(config-router)#int g0/0
R6(config-if)#ip ospf 1 area 0
R6(config-if)#do sho ip ospf interface g0/0
GigabitEthernet0/0 is up, line protocol is up
  Internet Address 150.1.56.6/24, Area 0
  Process ID 1, Router ID 150.1.6.6, Network Type BROADCAST, Cost: 1
  Enabled by interface config, including secondary ip addresses
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 150.1.6.6, Interface address 150.1.56.6
  Backup Designated router (ID) 150.1.5.5, Interface address
150.1.56.5
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit
5
    oob-resync timeout 40
    Hello due in 00:00:03
  Supports Link-local Signaling (LLS)
  Index 1/1, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 2
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1, Adjacent neighbor count is 1
    Adjacent with neighbor 150.1.5.5  (Backup Designated Router)
  Suppress hello for 0 neighbor(s)
R6(config-if)#
R6(config-if)#do show version | include flash:
System image file is
"flash:c2800nm-adventerprisek9-mz.124-5a.bin"
R6(config-if)#


Re: Network command
ie2210 wrote:

Quoted text here. Click to load it

Swings and roundabouts TBH. I like all RPs being consistent with each other and
networks added under the RP section of the config rather than having to lookat
various bits to see what OSPF is doing - I'd rather the interface type bit be
under the main OSPF config.
--
Paul Matthews                          
paul@cattytown.me.uk
http://www.hepcats.co.uk

Re: Network command
ie2210 wrote:
Quoted text here. Click to load it

On the other hand, it's kinda nice seeing all the ospf stuff in one
place.  But I didn't know this was even possible.

[snip]
Quoted text here. Click to load it

I do like the above though.  When did it become available?  Not being
able to do show commands while in config mode was always a pain in the
ass.

--

hsb


"Somehow I imagined this experience would be more rewarding" Calvin
**************************ROT13 MY ADDRESS*************************
Due to the volume of email that I receive, I may not be able to
reply to emails sent to my account. Please post a followup instead.
********************************************************************

Site Timeline