Solved

problem in adding a virtual host to Solaris 8

Posted on 2001-07-31
1
915 Views
Last Modified: 2013-12-27
Hi, I'm trying to add IP address to hmeo
This is what I'm getting:
Sun Microsystems Inc.   SunOS 5.8       Generic February 2000
mars/% ifconfig -a
lo0: flags=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 213.150.25.230 netmask ffffffe0 broadcast 213.150.25.255
        ether 8:0:20:b7:e8:ed
mars/% ifconfig hme0:1 192.168.1.88 netmask 255.255.255.0
ifconfig: SIOCGLIFNETMASK: hme0:1: no such interface
mars/%

anyone can help ?
0
Comment
Question by:ido_br
1 Comment
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
ID: 6338210
You are getting that failure because you haven't created the interface before trying to configure it. The sequence needs to be:

# ifconfig hme0:1 plumb
# ifconfig hme0:1 192.168.168.1.88 netmask 255.255.255.0

See "man ifconfig" for details and more information.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

840 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