[TriLUG] strange networking ipcalc question

Chris Bullock cgbullock at yahoo.com
Thu May 3 11:36:25 EDT 2007


I am trying to implement a new subnet in my network but CentOS will not
let me add the route.  I keep getting an "RTNETLINK answers: Invalid
argument"
Also please note the last ipcalc output.
Here is the output.

[cgb at router ~]$ sudo vi /usr/local/sbin/routes
[cgb at router ~]$ sudo /sbin/ip r add 172.24.8.0/24 via 192.168.10.2
[cgb at router ~]$ sudo /sbin/ip r add 172.24.8.0/22 via 192.168.10.2
[cgb at router ~]$ sudo /sbin/ip r add 172.24.8.0/20 via 192.168.10.2
RTNETLINK answers: Invalid argument
[cgb at router ~]$ ipcalc -bnm 172.24.8.0/24
NETMASK=255.255.255.0
BROADCAST=172.24.8.255
NETWORK=172.24.8.0

[cgb at router ~]$ ipcalc -bnm 172.24.8.0/22
NETMASK=255.255.252.0
BROADCAST=172.24.11.255
NETWORK=172.24.8.0

[cgb at router ~]$ ipcalc -bnm 172.24.8.0/20
NETMASK=255.255.240.0
BROADCAST=172.24.15.255
NETWORK=172.24.0.0

*** Notice the Network on the last.
cgb
 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the TriLUG mailing list