Solved

listning to more that one IP

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now