Here is the original posting :
> I've a sparc-20 (running Solaris 2.5.1) with two network interfaces
> le0 and le1. The two interfaces are connected to different LANs and
> have the IP addresses 192.168.20.2 (le0) and 22.214.171.124 (le1).
> netmask is 255.255.255.0. The LANs are connected by a router.
> I have a program running on this machine which sends UDP packets from
> 192.168.20.2 to 126.96.36.199. I want the packets to go out through
> go through the router and come back through le1. I tried various
> with the routing table but no use. The packets never go out on the
> because IP figures out that 188.8.131.52 is a local interface and
> the packets back.
> Is there any way to do this ?
I got a lot of suggestions, many of which I had already tried and the others
did not work. Here is a list of things which were tried (in conjuction and
* disabling ip_forwarding (ndd -set /dev/ip ip_forwarding 0)
* removing the local network routing table entry for le1 that is
added during the ifconfig invocation
* adding a routing table entry for 184.108.40.206 through le0 (via the
router or via 192.168.20.2)
* making a (host) routing entry to 220.127.116.11 through le0
* making default route go through le0
* removing localhost routing entry
* setting a large metric value for le1 using ifconfig
* setting large metric value for the routes through le1
I find that the problem has to do with the following entry (gotten
with 'netstat -nra' )
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
18.104.22.168 -- UHL 0 14 le1
There is no way to remove it. Even if I could remove it packets coming
in through le1 probably will not be accepted ! So looks like there is no
way to do it. If someone has more insight into this please let me know.
"Stevan P. Meck" <firstname.lastname@example.org>
email@example.com (Charles Gagnon)
Tom Vayda <firstname.lastname@example.org>
"Liu, Micky (DTSI)" <email@example.com>
"Phil J. DuLong" <DULONGPJ@state.mi.us>
adnan dzinic <firstname.lastname@example.org>
bismark@alta.Jpl.Nasa.Gov (Bismark Espinoza)
"Bruce S. Jurilla" <Jurilla.Bruce@jmco-asia.com>
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:57 CDT