Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting up dual nics on Solaris 8 and have them use separate subnet an

Status
Not open for further replies.

1971240z

Technical User
Jul 24, 2002
20
US
Does anyone know how to setup dual nics on Solaris? What I would like to do is have two nics running on two separate subnets and set them so that they communicate on separate gateways. Meaning if one nic is on a 192.12.234.0 with a name of test1 and a gateway of 192.12.234.1. The other nic is on 172.23.456.0 subnet, gateway 172.23.456.1 and name test2. So test1 will communicate through 192.12.234.1 gateway and test2 will communicate through 172.23.456.1.

Regards,
 
Here are some files that you will need to modify

***** Configure your netmasks /etc/netmasks *****
***** Define the netmask of each interface *****
# hme0
10.2.2.0 255.255.255.0
# hme1
24.22.21.0 255.255.255.0

***** Configure Default Gateway /etc/defaultrouter *****
***** Where to send packet not in your subnet ******
24.22.21.5


***** Verify routes *****
netstat -rn
 
jtombre,

What you have is most of it. The last part is, how do you setup two gateways so you would have a gateway for hme0 and one for hme1? If you put two gateways in the defaultrouter file, it will take the first one in the file.

Regards,
 
route add ??

Thats a clue ....

read: man route
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top