[clug] routing advice needed
kim.holburn at anu.edu.au
Wed Dec 3 09:02:26 GMT 2003
For you router guys out there I need some advice.
I have a machine with 3 interfaces.
eth0 -> 22.214.171.124/26 -> 126.96.36.199 -> internet
eth1 -> 188.8.131.52/24 -> 184.108.40.206/24
-> 220.127.116.11 -> VPN to 18.104.22.168/24
eth2 -> 22.214.171.124/24 -> internal net
default route is -> eth0 126.96.36.199
if I have a packet from eth2 to the special subnet 188.8.131.52/24 I want to it to go via a gateway on eth1 184.108.40.206 (say a VPN) but
if I have a packet from eth1 to 220.127.116.11/24 I want it to go via the default route (eth0).
I use the command:
ip route 18.104.22.168/24 via 22.214.171.124 from 126.96.36.199/24
but what I get is the same as if I ran:
ip route 188.8.131.52/24 via 184.108.40.206
Anyone have an idea how to do that?
Network Consultant - Telecommunications Engineering
Research School of Information Sciences and Engineering
Australian National University - Ph: +61 2 61258620 M: +61 0417820641
Email: kim.holburn at anu.edu.au - PGP Public Key on request
Life is complex - It has real and imaginary parts.
Andrea Leistra (rec.arts.sf.written.Robert-jordan)
More information about the linux