Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

set ip address on machine

Posted on 2002-07-08
4
Medium Priority
?
284 Views
Last Modified: 2013-12-27
hello experts out there..

 my machine has 2 networks cards.
 but when i issue $ ifconfig -a
 i get;

 lo0:lags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4>
     mtu 8232 index 1 inet 127.0.0.1 netmask ff000000
 hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4>
        mtu 1500 index 2
        inet 190.254.31.59 netmask ffffffe0 broadcast
         190.254.31.63 ether 8:0:20:9d:eb:47

 which shown that solaris only detect 1 network card.
 i didn't assign any IP address yet to the second card.
 my question is;

 1) how to detect/configure the second network card
    so that i can assign an IP address to it.

  any help greatly appreciated.

 tq
0
Comment
Question by:ismahwati
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
billwcc earned 80 total points
ID: 7139296
You have to plumb the interface before it will come up.

It goes something like:

#ifconfig hme1 plumb
#ifconfig hme1 190.254.61.XX netmask 255.255.255.0 \
broadcast 190.254.61.255

See man (1M) ifconfig.

0
 

Author Comment

by:ismahwati
ID: 7139381
what is the brodcast there
means ?

tq
0
 

Author Comment

by:ismahwati
ID: 7139409
ok it works..
anyway, first i need to create
hostname.hme1 in /etc.

then

#ifconfig hme1 plumb
#ifconfig hme1 190.254.61.XX netmask 255.255.255.0 \
broadcast 190.254.61.255
#ifconfig hme1 up


thanks
0
 
LVL 1

Expert Comment

by:billwcc
ID: 7140573
yep, and put your broadcast in /etc/netmasks too.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

604 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