Solaris 10 Source Routing #12 Volume 4, Issue 14 Response

From: Lisa Kachold (l_iesa@yahoo.com)
Date: Fri Jul 27 2007 - 00:04:53 EDT


Original Request:

 Solaris 10 - Source routing
First, this network is badly broken, that much I already
 know...however.

Seeing if there is a host based solution for my Sol 10 host "Server A".

Two hosts

Server A
         ce0 is on 192.168.0.2
         ce1 is on 172.16.0.2

Client B
         eth0 is on 192.168.0.5

Connect from Client B to 172.16.0.2 on Server A, the routing permits
this, the traffic arrives inbound but the replies are via Server A's
default router via the ce0 interface.

Is there any way to pin the routing based on its source rather than
the default based on destination? Meaning if the packet originates on
the ce1 interface, so too should the replies go back out that
interface.

--------------end initial Sun Manager Question--------------

Questions:

1) Are you using Solaris 10 and Zones?

If so see:

http://meljr.com/~meljr/Solaris10LocalZoneDefaultRoute.html

2) You have two interfaces, so:

ce1 is on 172.16.0.2
 
Add a route for the 172.n network bound to that interface using the -ifp

What does netstat -r look like?

Here's a paper with exact syntax:

http://jeffgehlbach.com/?cat=4

Solution Example:

# route add -host 172.16.0.0 172.16.0.254 -ifp ce1

 
or add add host 172.29.7.31: gateway 10.4.2.254

Hope this helps!

(602)325-5325 SIP: voip.obnosis.com
(503)754-4452 Sprint Cell - EDVO/CDMA on Dell PII Kubuntu
Obnosis - http://www.obnosis.com
       
---------------------------------
Shape Yahoo! in your own image. Join our Network Research Panel today!
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:42:09 EDT