Solved

configuring multi home solaris 8 box

Posted on 2001-09-10
6
333 Views
Last Modified: 2013-12-27
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.
0
Comment
Question by:steviewonder
6 Comments
 
LVL 1

Expert Comment

by:k.kidambi
ID: 6472055
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
 

0
 
LVL 40

Expert Comment

by:jlevie
ID: 6474307
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.
0
 
LVL 20

Expert Comment

by:tfewster
ID: 8051709
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
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

Expert Comment

by:DigitalXtreme
ID: 8061733
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.

http://www.experts-exchange.com/Operating_Systems/Solaris/Q_20181671.html
http://www.experts-exchange.com/Operating_Systems/Solaris/Q_20181063.html
http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20357606.html
http://www.experts-exchange.com/Web/Web_Languages/CGI/Q_20375901.html
http://www.experts-exchange.com/Web/Web_Languages/CGI/Q_20361952.html
http://www.experts-exchange.com/Web/Web_Languages/CGI/Q_20336471.html
http://www.experts-exchange.com/Networking/WinNT_Networking/Q_20164644.html
http://www.experts-exchange.com/Networking/Email_Groupware/Exchange_Server/Q_20338617.html
http://www.experts-exchange.com/Networking/Email_Groupware/Exchange_Server/Q_20164835.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
0
 

Expert Comment

by:SpideyMod
ID: 8100268
steviewonder,
Time is running out to handle your open questions.  Leaving this until tomorrow.

SpideyMod
Community Support Moderator @Experts Exchange
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8120904
PAQ'd and no points refunded

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question