[suncommunity] Re: setup 2 NICs in solaris 9

  • From: Gary Currier <gcurrier@xxxxxxxxxxx>
  • To: suncommunity@xxxxxxxxxxxxx
  • Date: Fri, 22 Aug 2003 14:39:26 -0700

I took a quick look at the instruction sheet, it appears he showed you 
how to make a
virtual NIC connection not a physical card.

1. ifconfig hme1 plumb -notrailers
2. touch /etc/hostname.hme1
3. vi /etc/hostname.hme1
     enter name for this connection.
4. eeprom local-mac-address?=true
This makes the OS use the hardwards MAC address from both
NICs.  
5. vi /etc/hosts
     add system name and ip address for this new connection
6. You will want to add this edit if you want ip_forwarding to function
     vi /etc/init.d/inetinit

find these two lines:
                echo 'Machine is an IPv4 router.'
                /usr/sbin/ndd -set /dev/ip ip_forwarding 1

and copy them and add them back in as the last two lines in the file.
This will ensure ip_forwarding is working.  
7. halt and reboot -r

That should do it.


jmd5@xxxxxxxxxxxxx wrote:

>This message was sent from: Sun Community Forum.
><http://www.gekkou.co.uk/forum/read.php?f=1&i=623&t=623> 
>----------------------------------------------------------------
>
>Someone suggested i post my solaris questions to this list. I hope I am in
>the right place. Let me preface by saying I am a hobbyist and trying to
>build a home network to allow for the use of sun rays.  the hardware i have
>is: spracstation 5 to run as a proxy server. ultra5 for main desktop and of
>course one sun ray for now. the ss5 has 2 NICs and one is a working dhcp
>for inbound from a cable modem and off the shelf gateway/firewall. unless i
>find a better application i plan to install squid on the ss5.
>
>my problem is on the ss5. i can get the network up on the second card,
>however, it is not assigning the IP i have set in /etc/hosts. ifconfig -a
>shows the interface plumbed but no IP address is assigned. i have followed
>the instructions on this link: http://www.spitzner.net/interfaces.html . is
>this still a valid way to set the network parameters? maybe i have edited
>the files wrong. i just followed examples given in the specific files.
>
>the primary interface on the ss5 has connection to the outside world.
>
>thanks for any help. 
>jeff duncan
>
>----------------------------------------------------------------
>Sent using Phorum software version 3.4.3a <http://phorum.org> 
>
>
>  
>



Other related posts: