Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Apr 2004 02:18:52 +0300
From:      hugle <hugle@vkt.lt>
To:        freebsd-isp@freebsd.org, freebsd-net@freebsd.org
Subject:   got two GATEWAYS!
Message-ID:  <34300782252.20040407021852@vkt.lt>

next in thread | raw e-mail | index | archive | help
Hello all.
I currently have 2 different gateways..
one deafult x.x.x.161 (ip on my NIC is x.x.x.162(fxp1))
and x.x.x.141 (ip on my NIC is x.x.x.142 (using vlan0))
I'm currently running NAT using IPNAT, by
map fxp1 from 192.168.1.8 ! to 192.168.0.0/16 -> x.x.x.162/32 portmap tcp auto
all works fine
how do i map for example ip 1.100
map vlan0 from 192.168.1.100 ! to 192.168.0.0/16 -> x.x.x.142/32 portmap tcp auto
doesn't do the trick..
need somehow to add gateway for x.x.x.142/30 default gw for it would
be x.x.x.141

tried
route add -net x.x.x.142/32 x.x.x.141
add net x.x.x.142: gateway x.x.x.141

no luck.. the same ;[

when pinging gateway 2 (VLAN)
PING x.x.x.141 (x.x.x.141): 56 data bytes
64 bytes from x.x.x.141: icmp_seq=0 ttl=255 time=0.832 ms
64 bytes from x.x.x.141: icmp_seq=1 ttl=255 time=0.818 ms
it's ok

PING gw2 local IP:
PING x.x.x.142 (x.x.x.142): 56 data bytes
36 bytes from x.x.x.141: Redirect Host(New addr: x.x.x.142)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 23b6   0 0000  fd  01 6cdc x.x.x.142  x.x.x.142

64 bytes from x.x.x.142: icmp_seq=0 ttl=253 time=1.489 ms
36 bytes from x.x.x.141: Redirect Host(New addr: x.x.x.142)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 23fd   0 0000  fd  01 6c95 x.x.x.142  x.x.x.142

64 bytes from x.x.x.142: icmp_seq=1 ttl=253 time=1.732 ms

not really ok?:) (it's after route add -net x.x.x.142/32 x.x.x.141)

-- 

Best regards,Hugle



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34300782252.20040407021852>