Solved

listning to more that one IP

Posted on 2000-04-11
2
224 Views
Last Modified: 2010-04-21
Hi guys,
I have a Unix machine and it listen to 2 IPs.
How do I take off/add one permanently???
what is the name of the file it stores the IP in????

pls fast.....
0
Comment
Question by:gschetrit
[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 Comments
 
LVL 21

Expert Comment

by:tfewster
ID: 2704655
Which Unix? How many network cards do you have?

Removing an IP address may be as easy as commenting it out of /etc/hosts & rebooting, or it may be in (OS specific) configuration files.

Adding addresses will be similar - do you want multiple addresses on the same NIC?
0
 

Accepted Solution

by:
encilar earned 20 total points
ID: 2706288
In general, you can assign more that one IP address to your machine, that is if you have a Secondary Network Interface (qe ports; ie; qe0, qe1, qe2, etc) installed and configured in your system, this is aside from your Primary Network Interface (hme0 or le0).  

Lets say you have two Secondary Network Interface that you want to configure: (qe0 and qe1)

Edit your entry in /etc/hosts file and create a hostname.qe0, hostname.qe1 file in your system's /etc directory.  If you will notice, you have an existing /etc/hostname.hme0 file.  This is now your primary network interface which is initially configured in your system.

Example Data Entry of Files to Configure:

1.  /etc/hosname.hme0
     server_name
2. /etc/hostname.qe0
     server_name-00
3. /etc/hostname.qe1
     server_name-01
4. /etc/hosts
     127.0.0.1           localhost
     1.111.111.10     server_name       loghost
     1.111.111.11     server_name-00
     1.111.111.12     server_name-01
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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…
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…
Suggested Courses

623 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