Solved

set ip address on machine

Posted on 2002-07-08
4
273 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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…
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.:
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.

856 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