Solved

listning to more that one IP

Posted on 2000-04-11
2
212 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

Independent Software Vendors: 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

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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 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…
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.

762 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