Computing.Net > Forums > Solaris > SUN box as a gateway

SUN box as a gateway

Reply to Message Icon

Original Message
Name: nishanthar
Date: July 15, 2004 at 09:41:08 Pacific
Subject: SUN box as a gateway
OS: Solaris 8
CPU/Ram: 512
Comment:

Dear All,
My network config. as follows.
m/c A - 192.168.100.100 (eri0)
m/c B - 192.168.100.200 (eri0)
172.16.80.5 (eri1)
m/c C - 172.16.80.150

m/c A & m/c B in one LAN. Also m/c B & m/c C in another LAN. (i.e. m/c B has 2 eth ports)

I need to connect (telnet/ftp etc) to m/c C from m/c A.
How do I do the routing configuration ??

Thanks for your help.

Regards,

Nish.

Dear All,
My network config. as follows.
m/c A - 192.168.100.100 (eri0)
m/c B - 192.168.100.200 (eri0)
172.16.80.5 (eri1)
m/c C - 172.16.80.150

m/c A & m/c B in one LAN. Also


Report Offensive Message For Removal


Response Number 1
Name: florocent
Date: July 18, 2004 at 04:11:52 Pacific
Reply: (edit)

create the file /etc/hostname.eri0 with a single line "h1" or anything in the file, create another file /etc/hostname.eri1 with a single line like "h2" or anything.
add h1 and h2 on two seprate lines in /etc/inet/hosts file with the sepecified ip address for each interface.one of them must be of network 192.168.100 and other for 172.x
add appropriate netmasks in the file /etc/netmasks.

touch /etc/defaultroute and leave it empty.
create file /etc/defaultdomain with your domain name on the single line of the file.
try
ndd -get /dev/ip ip_forwarding
if out put is "0" then enable it.restart the system.
hope it will work file.
good luck


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: SUN box as a gateway

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge