SUMMARY : New routing table - Solaris

From: <kristianto.setiawan_at_sun.co.id>
Date: Thu Mar 04 2004 - 21:17:28 EST
Sorry for late SUMMARY,
I got several replies that could have been useful. 
Some people comment to add NIC, run command 'route', and *not 
impossible* 
Thanks to Bageshwar Kumar,Peter Stokes, Darren Dunham, James 
Zhao,Crist Clark, Jim Seymour, Russel Page for their response.

Any way, the routing is *WORK*

*WORK* command :
----------------
route -n add 172.16.50.0 -netmask 255.255.255.0 172.16.1.18 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.50.0          172.16.1.18           UG       1    247
172.16.1.0           172.16.1.6            U        1   8349  eri0
224.0.0.0            172.16.1.6            U        1      0  eri0
default              172.16.1.1            UG       1  38369
127.0.0.1            127.0.0.1             UH      3425745158  lo0


----- Original Message -----
From: kristianto.setiawan@sun.co.id
Date: Thursday, February 12, 2004 9:45 pm
Subject: New routing table - Solaris

> 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
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Mar 4 21:17:11 2004

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:29 EST