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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple interfaces on sun solaris machine

Status
Not open for further replies.

COTLG

Technical User
Apr 15, 2003
107
US
Hi All,

I want to install a second network interface on a sun solaris 8 machine. The new nic will be used for a diffrent purpose entirely and its ip address should resolve to a different name. Can anyone please give me a step by step guideline on how to do this?

Best regards,
Chike.
 
Add this to /etc/hosts
xxx.xxx.xxx.xxx machine_name

Create /etc/hostname.int1
machine_name

ifconfig int1 plumb
ifconfig int1 xxx.xxx.xxx.xxx netmask + broadcast + up
 
Hi

(assuming hme)


ifconfig hme1 plumb
ifconfig hme1 'ip_address' netmask \ 255.255.255.0 up

Once you've got your nic installed you need to make the address permanent so create a new file called /etc/hostname.hme1 (if it's hme) and add a hostname that you want to associate with hme1 in your hosts file.

then add entry to /etc/hosts ie.-

192.168.1.94 orange #hme0
192.168.2.33 orang1 #hme1

more /etc/hostname/hme*
hostname.hme
orange
hostname.hme1
orange1


 
Thanks Cofeysm and Birky.

1. I believe machine_name should be different from the original hostname else there will be a conflict in the DNS with regards to hostname resolution. Right?

2. What of the issue of mac address to ip address? Can the mac address be associated to more than one ip address?

3. if I do a touch /reconfigure and boot -r from the ok> are these okay for the new device to be detected?

4. Are there any issues with reconfiguration boot since I the machine has external disks with rm6 installed.

Regards,
Chike.
 
It has to be different then the original hostname, just because it would cause an internal problem with Solaris (try to bring up to interfaces with the same name). DNS does not really matter unless you add the entry to it, which I am assuming you are doing.

By default Solaris uses the same MAC address for every NIC, which is the MAC of the machine. You can disable this by going to the ok> prompt and typing setenv local-mac-address? true. You can also do this from the command prompt by typing: eeprom "local-mac-address?=true", without having to reboot.

Yes, a boot -r should be sufficient for your machine to pickup the new devices.

There should be no problems with the external disks unless the drive paths have changed.
 
Thanks Coffeysm. I should give you a feedback after I am through.

Regards,
Chike.
 
Hi Coffeysm,

It went fine though I have not yet attached the hostname since I have not been provided with that yet, but the system recognised the NIC and I believe the rest will also go nicely.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top