From: Wianecki, Christopher (Christopher.Wianecki@sothebys.com)
Date: Wed Aug 11 2004 - 16:58:25 EDT
All I have to do to access my 192.168.17.12 interface is:
route delete default 192.168.16.1; route add default 192.168.17.1
If I want to access my interface 192.168.16.12 I just do
route delete default 192.168.17.1; route add default 192.168.16.1
Is there any way not to do any of the above lines and be able to access
either 192.168.16.12 and 192.168.17.12? There must be a way to do this. I
just cant imagine this is impossible task... :( please help.
Sorry, my diagram was not totally correct.. Here is the updated version of
it which will I think explain the problem slightly more. My PC does not have
2 interfaces, it has only one interface and it is connected to a switch,
then my switch is connected to two different routers/locations.
+-------- T1 -------- 192.168.16.1 -------
192.168.16.2 -----+
| router1 switch1
|
| Georgia
|
|
192.168.16.12 |
+-------+ +---+--+
+-----+---+
| my PC +------+Router|
| Sun Box |
+-------+ +---+--+
+-----+---+
| NY
192.168.17.12 |
+-------- T1 -------- 192.168.17.1 -------
192.168.17.2 -----+
router2 switch2
# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.16.0 192.168.16.12 U 1 43 bge1
192.168.17.0 192.168.17.12 U 1 4 bge0
224.0.0.0 192.168.17.12 U 1 0 bge0
default 192.168.16.1 UG 1 153
127.0.0.1 127.0.0.1 UH 3 14 lo0
# route get 192.168.17.1
route to: 192.168.17.1
destination: 192.168.17.0
mask: 255.255.255.0
interface: bge0
flags: <UP,DONE>
recvpipe sendpipe ssthresh rtt,ms rttvar,ms hopcount mtu
expire
0 0 0 0 0 0 1500
0
# route get 192.168.16.1
route to: 192.168.16.1
destination: 192.168.16.0
mask: 255.255.255.0
interface: bge1
flags: <UP,DONE>
recvpipe sendpipe ssthresh rtt,ms rttvar,ms hopcount mtu
expire
0 0 0 0 0 0 1500
0
# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.17.12 netmask ffffff00 broadcast 192.168.17.255
ether 0:3:ba:61:c4:e3
bge1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 192.168.16.12 netmask ffffff00 broadcast 192.168.16.255
ether 0:3:ba:61:c4:e4
I am not really sure what to do at this point. Network .16. and network .17.
are not connected in any way together in that location. I do not care if I
can connect to 192.168.16.12 from both ends, all I care that I can connect
to 192.168.16.12 trough one T1 and I can also connect to 192.168.17.12 using
the second T1 from my PC or any other system inside this location. I would
not like to setup my Sun box as a router since I don't want any traffic to
pass trough my Sun server except for what is directed to it....
Any other suggestions are more than welcome, I already got few replies and
hope I can get this to work using your help.
Once again thanks so much for help.
Chris
-----Original Message-----
From: Wianecki, Christopher [mailto:Christopher.Wianecki@sothebys.com]
Sent: Wednesday, August 11, 2004 1:35 PM
To: sunmanagers@sunmanagers.org
Subject: Solaris8 network question
I have a system in a different location. I have two ways to get to that
environment. One is going trough New York dedicated T1 and the other is
going trough Georgia dedicated T1.
I did setup my system with two IP's
bge0 interface has 192.168.17.12 IP
and
bge1 interface has 192.168.16.12 IP
I have switches in front of those two interfaces. They have 192.168.17.2 and
192.168.16.2 IP addresses. There are also routers with 192.168.17.1 and
192.168.16.1 IP's.
Now, I can get to both switches and routers without any problem but
depending on which IP has a default gateway on my unix I can get to it only
from one direction. So if I set it up with 192.168.16.1 as a default gateway
I am only to get to 192.168.16.12 IP address and the same is if I do it for
.17. network.
Is there a way to setup my Solaris 8 box to be able to get to either IP
without any problems from two different/separate routes?
If yes what do I need to do to make it working?
+-------- T1 -------- 192.168.16.1 ------- 192.168.16.2 -----+
| router1 switch1 |
| |
| |
192.168.16.12
+--+--+ +-----+---+
|my PC| | Sun Box |
+--+--+ +-----+---+
| |
192.168.17.12
+-------- T1 -------- 192.168.17.1 ------- 192.168.17.2 -----+
router2 switch2
Any help or suggestion is greatly appreciated.
Thanks.
Chris
www.sothebys.com
**********************************************************************
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
www.sothebys.com
**********************************************************************
_______________________________________________
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:29:16 EDT