Unix Technical Forum

How to add new interface card and set IP ?

This is a discussion on How to add new interface card and set IP ? within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> I have Sun ULtra2, 2x168MHz and OS is Solaris 2.5.1. I have one build in 10Mbps interface card. "/etc/hostname.hme0" ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 06:21 AM
Pom
 
Posts: n/a
Default How to add new interface card and set IP ?

I have Sun ULtra2, 2x168MHz and OS is Solaris 2.5.1.
I have one build in 10Mbps interface card. "/etc/hostname.hme0"
But now I have new FastEthernet 10/100 card. I want to add
in my system.
I don"t know any file to config and set IP that
system will know new FastEthernet card and have 2 IP
address. (IP from old and new interface card)
Please let me know more detail how to add and set IP.
thank you very much.
regards.
Pom.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 06:22 AM
Kent Smith
 
Posts: n/a
Default Re: How to add new interface card and set IP ?

On 14 Aug 2003 04:47:57 -0700, pom2001@my-deja.com (Pom) wrote:

>I have Sun ULtra2, 2x168MHz and OS is Solaris 2.5.1.
> I have one build in 10Mbps interface card. "/etc/hostname.hme0"
> But now I have new FastEthernet 10/100 card. I want to add
>in my system.
> I don"t know any file to config and set IP that
>system will know new FastEthernet card and have 2 IP
>address. (IP from old and new interface card)
> Please let me know more detail how to add and set IP.
> thank you very much.
> regards.
> Pom.


To add a SECOND interface, you need to install it and do a boot -r.
Then you need to plumb and then enable the interface. Something like:

# ifconfig hme1 plumb
# ifconfig hme1 <new_ip_address> netmask <your_netmask> broadcast + up

substituting real numbers where appropriate, of course.

man ifconfig for all the gory details.

--Kent

=================================
Kent Smith * IPSO Incorporated
Business * Technology * Solutions
Financial Services and Accounting Systems Consulting

http://www.ipsoinc.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 06:22 AM
Barry Margolin
 
Posts: n/a
Default Re: How to add new interface card and set IP ?

In article <7c0bff59.0308140347.4e3bfd40@posting.google.com >,
Pom <pom2001@my-deja.com> wrote:
>I have Sun ULtra2, 2x168MHz and OS is Solaris 2.5.1.
> I have one build in 10Mbps interface card. "/etc/hostname.hme0"
> But now I have new FastEthernet 10/100 card. I want to add
>in my system.
> I don"t know any file to config and set IP that
>system will know new FastEthernet card and have 2 IP
>address. (IP from old and new interface card)
> Please let me know more detail how to add and set IP.


/etc/hostname.hme1 and /etc/hostname.hme1:0

"man ifconfig" and search for "logical interfaces"

--
Barry Margolin, barry.margolin@level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-12-2008, 06:22 AM
Rett
 
Posts: n/a
Default Re: How to add new interface card and set IP ?

In article <7c0bff59.0308140347.4e3bfd40@posting.google.com >, pom2001
@my-deja.com says...
> I have Sun ULtra2, 2x168MHz and OS is Solaris 2.5.1.
> I have one build in 10Mbps interface card. "/etc/hostname.hme0"
> But now I have new FastEthernet 10/100 card. I want to add
> in my system.
> I don"t know any file to config and set IP that
> system will know new FastEthernet card and have 2 IP
> address. (IP from old and new interface card)
> Please let me know more detail how to add and set IP.
> thank you very much.
> regards.
> Pom.


a. You have to use boot -r to get the system to recognize it.

b. Does the Ultra 2 have a local-mac-address setting at the "ok" prompt?
Do a printenv, and see. If it does, then set that value to true.

c. You have to add an IP address and name for the new interface in
/etc/hosts.

d. Your first interface has the name in a file called
/etc/hostname.AAA0, where "AAA" depends on what card it is. (That's the
same name as in /etc/hosts.) You have to create another, similar, file
for the new interface, that contains the name you assigned to the new
interface (in step c). If you installed a different kind of interface,
then the "AAA" will be different. If you installed the same kind, then
"AAA" will be the same but the last character will be a "1" instead of a
zero.

For step "d" you're probably going to have to check out the
documentation for the interface card, and read a few "man" pages... (My
explanation above is kind of crappy. Correct, but crappy.)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:29 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com