Adding To Route Table

Soldato
Joined
9 Dec 2006
Posts
9,289
Location
@ManCave
Hi all,

I'm trying to add a line to the routing table, i have 2 broadband connections
& i want Youtube To use BE As Virgin is having serious issues with youtube at the moment.

So Router 1 192.168.0.1
Router 2 192.168.0.254

All traffic Goes though 0.1 But i want Youtube to go though 0.254

Can you please tell me whats wrong with below?
route add 173.194.34.102 MASK 255.255.255.0 192.168.0.254
Error: The Route Addition Failed: The Parameter is incorrect
 
The problem you are having is that the mask for a host would be 255.255.255.255 and not 255.255.255.0.

If you want to use /24 (255.255.255.0), then you'll have to make the entry Route add -P 173.194.34.0 mask 255.255.255.0 192.168.0.254

Always use -P, unless you want to add it after each reboot ;)
 
The problem you are having is that the mask for a host would be 255.255.255.255 and not 255.255.255.0.

If you want to use /24 (255.255.255.0), then you'll have to make the entry Route add -P 173.194.34.0 mask 255.255.255.0 192.168.0.254

Always use -P, unless you want to add it after each reboot ;)

that worked cheers,

does that mean .0 - .254 will go that way?
 
Back
Top Bottom