Networking Forums

Networking Forums > Computer Networking > Windows Networking > route add don't support CIDR

Reply
Thread Tools Display Modes

route add don't support CIDR

 
 
route add �支�CIDR
Guest
Posts: n/a

 
      02-15-2006, 12:20 AM
my ip : 10.193.6.53 /24
gw: 10.193.6.254

D:\Profiles>route add 192.168.100.65 mask 255.255.255.0 10.193.6.228
The route addition failed: The specified mask parameter is invalid.
(Destination & Mask) != Destination.

D:\Profiles>route add 192.168.100.0 mask 255.255.255.0 10.193.6.228
Success

 
Reply With Quote
 
 
 
 
Bill Grant
Guest
Posts: n/a

 
      02-15-2006, 12:42 AM
route add ???CIDR wrote:
> my ip : 10.193.6.53 /24
> gw: 10.193.6.254
>
> D:\Profiles>route add 192.168.100.65 mask 255.255.255.0 10.193.6.228
> The route addition failed: The specified mask parameter is invalid.
> (Destination & Mask) != Destination.
>
> D:\Profiles>route add 192.168.100.0 mask 255.255.255.0 10.193.6.228
> Success


192.168.100.65 is a host address. It refers to a single host machine.
Its netmask must be 255.255.255.255 .

192.168.100.0 is a subnet address. Its subnet mask of 255.255.255.0 is
correct .


 
Reply With Quote
 
Ed Horley
Guest
Posts: n/a

 
      02-15-2006, 02:05 AM
The route add command supports VLSM (Variable Length Subnet Masks) but it
will recognize only proper network id associated with a subnet mask. For
instance, the correct network id for the block you are trying to route is
192.168.100.0 with a 255.255.255.0 or /24 subnet. If you wanted to do a
smaller block, say 192.168.100.64-71 you would have to specify
192.168.100.64 with a 255.255.255.248 or /29 subnet. You would not be able
to use 192.168.100.65 in either case even though they are legit IP's within
the range of the subnet.
It just means you need to know how to calc what the network and broadcast
id's are for a given subnet prior to adding that subnet block to the routing
table.
Regards,
Ed Horley
Microsoft MVP Server-Networking

"route add ???CIDR" <(E-Mail Removed)> wrote in
message news:E4A2A6EB-687C-4707-91F9-(E-Mail Removed)...
> my ip : 10.193.6.53 /24
> gw: 10.193.6.254
>
> D:\Profiles>route add 192.168.100.65 mask 255.255.255.0 10.193.6.228
> The route addition failed: The specified mask parameter is invalid.
> (Destination & Mask) != Destination.
>
> D:\Profiles>route add 192.168.100.0 mask 255.255.255.0 10.193.6.228
> Success
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CIDR Shorthand Question Michael Ruebner Linux Networking 4 03-18-2006 11:38 PM
Why doesn't route support this??? Justin Todd Linux Networking 8 12-14-2005 07:02 PM
Subnet, supernet and cidr calculator Clive Network Routers 3 11-03-2004 04:03 PM
C code for CIDR comparison Jem Berkes Linux Networking 1 02-14-2004 07:04 AM
Help with CIDR notation Siddharth Mathur Linux Networking 2 09-08-2003 04:10 PM



1 2 3 4 5 6 7 8 9 10 11