Solved

listning to more that one IP

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Title # Comments Views Activity
Shell script errors 10 141
how to check for shares on aix 1 85
how to check for shares on HP-UX 1 64
Linux : adding the new user with password option, 11 113
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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 how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

828 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