Solved

set ip address on machine

Posted on 2002-07-08
4
269 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
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
billwcc earned 20 total points
Comment Utility
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
Comment Utility
what is the brodcast there
means ?

tq
0
 

Author Comment

by:ismahwati
Comment Utility
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
Comment Utility
yep, and put your broadcast in /etc/netmasks too.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now