New routing table - Solaris

From: kristianto.setiawan@sun.co.id
Date: Thu Feb 12 2004 - 09:45:52 EST


Hello the NetExpert,

I have only 1 network interface (eri0) and this is the exist network
config :

Hostname : hosta
Host IP Address : 172.16.1.6

/etc/hosts :
#
# Internet host table
#
127.0.0.1 localhost
172.16.1.6 hosta hosta.buana.co.id loghost
172.16.1.7 hostb hostb.buana.co.id

/etc/netmasks :
172.16.0.0 255.255.255.0

/etc/default/router :
172.16.1.1

# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500
index 2
        inet 172.16.1.6 netmask ffffff00 broadcast 172.16.1.255
        ether 0:3:ba:a:cc:4d

#netstat -rn
Routing Table: IPv4
  Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
172.16.1.0 172.16.1.6 U 1 47 eri0
224.0.0.0 172.16.1.6 U 1 0 eri0
default 172.16.1.1 UG 1 15
127.0.0.1 127.0.0.1 UH 14922790303 lo0

=====================================================================
So far the network connection was normal...
=====================================================================

Next scenario :

To make a connection to IP : 172.16.1.X using IP Gateway : 172.16.1.1
(current router)
To make a connection to IP : 172.16.5.X using IP Gateway : 172.16.5.1
(new router)

Example :
---------
If i want to telnet 172.16.1.[N] from hosta will automatically using
172.16.1.1
        hosta --> 172.16.1.1 --> 172.16.1.[N]
If i want to telnet 172.16.5.[V] from hosta will automatically using
172.16.5.1
        hosta --> 172.16.5.1 --> 172.16.5.[V]

Is it possible & How to setup if it's possible ?

TIA
Kristianto
_______________________________________________
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:28:02 EDT