Link to home
Start Free TrialLog in
Avatar of steviewonder
steviewonder

asked on

configuring multi home solaris 8 box

Hi,

I have a solaris 8 box, which has 2 network cards,
one to internet (via a router: ie. 202.20.20.1),
one to local network (192.168.1.100). How can I configure so that only networks other than 192.168.1.x, can go thru
the router?
And I do NOT want it to be a router itself.

I did:  /etc/notrouter
/etc/gateways
and /etc/defaultrouter

but, local machines accessing it has been realy slow, internet access to it is OK.

thanks.
Avatar of k.kidambi
k.kidambi

Here is the detailed procedure how to configure your cards.

consider you have hme0 and hme1 cards.
Make the both ip entries in /etc/hosts file. and create /etc/hostname.hme0[1] files. (this will bring up the interfaces at the boot time)
issue the following commands.

# ifconfig hme0 plumb
# ifconfig hme0 {your base ipaddress} netmask {your netmask} up
 when you do the 2nd step be sure that the physical network connectivity exists to the box.

do the same thing to your hme1 also.

now comes configuring the default gateways to your route.

# route add default {give your default router address} metric 1
 
for 192 network to go thru internet issue
# route add net 192.168.1.0 202.20.20.1 metric 1

If you want you can make this as default rouer also. IF you want to do that create a /etc/defaultrouter file with the 202.20.20.1 ip address. This will pickup the default route at the boot time.


Post your comments here if you have any doubts/clarifications.

Kidambi
 

I'm not sure that I understand what you are trying to do, but I suspect that you are wanting to set the machine up as a NAT'ing gateway. To do that with Solaris you'll need something like IPFilter, which you can get from http://cheops.anu.edu.au/~avalon/ip-filter.html

The slow network performance is probably due to a link mis-negotiation problem between the second NIC and the hub or switch it is connected to. The symptoms of that include slow nework performance and a high collision rate on the Sun box when it is sending data (like with an ftp upload to something). You can fix that by forcing the link speed and mode with:

*
* Force 100Mb FDX on hme
*
set hme:hme_adv_autoneg_cap=0
set hme:hme_adv_100T4_cap=0
set hme:hme_adv_100hdx_cap=0
set hme:hme_adv_100fdx_cap=1
set hme:hme_adv_10fdx_cap=0
set hme:hme_adv_10hdx_cap=0

which will set the link to 100Mbps FDX. You may also, in the case of a switch, need to force the switch port to 100Mbps FDX to get a complete fix.
No comment has been added lately, so it's time to clean up this Topic Area.
I will leave a recommendation for this question in the Cleanup topic area as follows:

- PAQ, no points refunded

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster
Cleanup Volunteer
I have noticed that you have 9 opened questions that are quite old. You have a responsibility to close these questions out.
You can get to them by clicking on your name link at the upper left of the web page.

https://www.experts-exchange.com/questions/20181671/usr-xpg4-bin-id-command-results-different-on-solaris-8-and-2-6.html
https://www.experts-exchange.com/questions/20181063/configuring-multi-home-solaris-8-box.html
https://www.experts-exchange.com/questions/20357606/java-applet-error-running-our-Internet-Explorer-5-5.html
https://www.experts-exchange.com/questions/20375901/CGI-to-display-result-on-a-new-broser-window-in-IE.html
https://www.experts-exchange.com/questions/20361952/upload-file-using-CGI.html
https://www.experts-exchange.com/questions/20336471/CGI-script-to-download-a-file-from-server-to-client's-directory.html
https://www.experts-exchange.com/questions/20164644/Using-Internet-Connection-Sharing-on-Win98-with-a-WinNT-PC.html
https://www.experts-exchange.com/questions/20338617/get-error-failure-audit-when-creating-custom-receipient-in-exchange.html
https://www.experts-exchange.com/questions/20164835/Import-Exchange-5-5-data-into-Exchange-2000-in-a-different-box.html


Please close all of your old questions (older than a month) within 7 days or I have a duty to report this to the site administrators who may take action on your account.
If you have question on how to dispose of a question that doesn't have an answer, just ask me by dropping a line on this question and I will assist you.
Thanks for helping keep Experts Exchange clean

DigitalXtreme
CS Moderator
steviewonder,
Time is running out to handle your open questions.  Leaving this until tomorrow.

SpideyMod
Community Support Moderator @Experts Exchange
ASKER CERTIFIED SOLUTION
Avatar of SpideyMod
SpideyMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial