Re: Routing weird IPs
First of all, than you everyone for the replies.
François TOURDE wrote:
Le 15182ième jour après Epoch,
Paulo Santos écrivait:
Plus this routes:
10.0.0.0 /255.0.0.0 - 10.120.43.158
22.214.171.124/255.224.0.0 - 10.200.34.158
192.168.168.0/255.255.255.192 - 10.120.43.158
If your syntax is "ip/mask - gateway", then the second line use a
gateway not in your ip range (10.200... vs 10.120...), or this is a typo
It is "IP/Mask - Gateway". Those 3 lines are a copy&paste of the email
the provider sent me. Seeing it is impossible for the 2nd line to work,
I'll contact them to clarify it.
You can't have 2 gateway lines, because gateway is equiv to "route
default", and you can't have 2 default destinations.
Ok. I'll correct that in the end of the day, since it's in production I
can't restart the network.
But when I try any of the other 2, I get:
route: bogus netmask 255.225.255.192
Look at the "225" instead of "255" in the second byte of the netmask. Is
it a typo error?
Indeed it is a typo made when executing the command. Correcting it
worked, the route was added.