[H-GEN] Static Routing
Mark Suter
suter at zwitterion.humbug.org.au
Thu Apr 29 07:54:23 EDT 2004
David,
> I have a machine which sits on network 192.168.6.0/24. My gateway is
> 192.168.6.1. There is also another network 192.168.4.0/24. I can ping they're
> gateway 192.168.4.1. How can I set a static route so that I can ping hosts on
> the 192.168.4.0/24 network. I've tried a few things but it hasn't worked yet.
There are two main commands to do this, either route or iproute[1].
I prefer iproute because it's clearer:
ip route add 192.168.4.0/24 via 192.168.6.1
ip route add 192.168.4.0/24 dev eth0
Yours sincerely,
-- Mark John Suter | I know that you believe you understand
suter at humbug.org.au | what you think I said, but I am not sure
gpg key id 2C71D63D | you realise that what you heard is not
mobile 0411 262 316 | what I meant. Robert J. McCloskey
More information about the General
mailing list