Solved

listning to more that one IP

Posted on 2000-04-11
2
204 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
2 Comments
 
LVL 20

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sort command HPUX 11 76
Image not there 4 53
Install MySQL 5.6 and PHP on Centos Linux 6 119
unix solaris snoop command 6 99
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

776 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