network x.x.x.x n.n.n.n

in CCNA & CCENT
Hi,
Whats the difference between the following routing network statements, dont they both achieve the same goal:
1. network 172.16.1.1 0.0.0.0
This puts network 172.16.1.0 / 24 into the routing table
2. network 172.16.1.0 0.0.0.255
This puts network 172.16.1.0 / 24 into the routing table
Im sure im missing something here?
Thanks for your help in advance
Whats the difference between the following routing network statements, dont they both achieve the same goal:
1. network 172.16.1.1 0.0.0.0
This puts network 172.16.1.0 / 24 into the routing table
2. network 172.16.1.0 0.0.0.255
This puts network 172.16.1.0 / 24 into the routing table
Im sure im missing something here?
Thanks for your help in advance
Comments
-
georgemc Member Posts: 429
1. network 172.16.1.1 0.0.0.0
This puts network 172.16.1.0 / 24 into the routing table - NOT TRUE
your statement provides an exact match for host 172.16.1.1
2. network 172.16.1.0 0.0.0.255
This puts network 172.16.1.0 / 24 into the routing table - TRUEsurfthegecko wrote: »Hi,
Whats the difference between the following routing network statements, dont they both achieve the same goal:
1. network 172.16.1.1 0.0.0.0
This puts network 172.16.1.0 / 24 into the routing table
2. network 172.16.1.0 0.0.0.255
This puts network 172.16.1.0 / 24 into the routing table
Im sure im missing something here?
Thanks for your help in advanceWGU BS: Business - Information Technology Management
Start Date: 01 October 2012
QFT1,PFIT in progress.
TRANSFERRED/COMPLETED: AGC1,BBC1,LAE1,QBT1,LUT1,QLC1,QMC1,QLT1,IWC1,INC1,INT1,BVC1,CLC1,MGC1, CWV1 BNC1, LIT1,LWC1,QAT1,WFV1,EST1,EGC1,EGT1,IWT1,MKC1,MKT1,RWT1,FNT1,FNC1, BDC1,TPV1 REQUIRED: -
surfthegecko Member Posts: 149
Just did this on Router1
int loopback 196 - ip address 196.1.1.1 255.255.255.0
int loopback 197 - ip address 197.1.1.1 255.255.255.0
router eigrp 100
network 196.1.1.1 0.0.0.0
network 197.1.1.1 0.0.0.255
This is what was displayed in Router2's routing table
D 197.1.1.0/24 [90/20640000] via 10.1.3.1, 00:00:38, Serial1/0
D 196.1.1.0/24 [90/20640000] via 10.1.3.1, 00:00:53, Serial1/0
Am I being daft, but it just seems to have done them both as /24 instead of the 196 as an exact match?
Edit: I know the routing table is only supposed to show the networks, but then whats the point of specify exact network wildcards? -
Xenz Member Posts: 140
EIGRP doesn't work the same as OSPF. Try this in OSPF and you'll get the host route you're looking for.
What GeorgeMC is saying is that when you do network 196.1.1.1 0.0.0.0 you will only use the interface 196.1.1.1 to participate in EIGRP rather than the whole 196.1.1.0/24 range.
I honestly don't know how/or if it's possible to install host routes in EIGRP. I know OSPF works the way you're imagining though.Currently working on:
CCNP, 70-620 Vista 70-290 Server 2003
Packet Tracer activities and ramblings on my blog:
http://www.sbntech.info -
jmc012 Member Posts: 134
surfthegecko wrote: »Hi,
Whats the difference between the following routing network statements, dont they both achieve the same goal:
1. network 172.16.1.1 0.0.0.0
This puts network 172.16.1.0 / 24 into the routing table
2. network 172.16.1.0 0.0.0.255
This puts network 172.16.1.0 / 24 into the routing table
Im sure im missing something here?
Thanks for your help in advance
Do you have auto summary turned on under the eigrp process? It sounds like you need to turn it off. Just do a #no auto-summary. -
surfthegecko Member Posts: 149
I already have no auto-summary configured under my eigrp zone, I have however just noticed that although it displays them the same in the routing table, it displays them differently in the running config
router eigrp 100
network 1.0.0.0
network 10.0.0.0
network 172.16.0.0
network 196.1.1.1 0.0.0.0
network 197.1.1.0
no auto-summary
So I'm guessing what this is actually saying is:.....
If I had 3 interfaces - 196.1.1.1 /24, 196.2.2.2 /24, 196.3.3.3 /24 that the only interface within the 196 range that is going to advertise the 196 networks is out of interface 196.1.1.1
Would this make sense? -
jmc012 Member Posts: 134
surfthegecko wrote: »I already have no auto-summary configured under my eigrp zone, I have however just noticed that although it displays them the same in the routing table, it displays them differently in the running config
router eigrp 100
network 1.0.0.0
network 10.0.0.0
network 172.16.0.0
network 196.1.1.1 0.0.0.0
network 197.1.1.0
no auto-summary
So I'm guessing what this is actually saying is:.....
If I had 3 interfaces - 196.1.1.1 /24, 196.2.2.2 /24, 196.3.3.3 /24 that the only interface within the 196 range that is going to advertise the 196 networks is out of interface 196.1.1.1
Would this make sense?
Yes, it will just advertise that specific route and turn eigrp on that interface. The other ones that don't have wildcard masks applied default to classful boundaries. -
surfthegecko Member Posts: 149
But before it advertises the others I would have to make a 2nd routing statement to identify the other two 196 networks
Cool.
Thanks everyone