multiple IP adresses on one machine

hello people

i hope you can please help me.

i have a server and several ip-addresses pointing to it.

now i want
a) that the server can be reached on all ip adresses from the internet
b) that i can access the internet from the server and decide which IP-address is being used ( i can specify "bind-ip-adress" in my application )

my /etc/networks file looks like this:

default         0.0.0.0
loopback        127.0.0.0
link-local      169.254.0.0
localnet        209.23.47.0

and my /etc/hosts file looks like this:

127.0.0.1       localhost
209.23.47.52   new.box.net.box.net     new.box.net

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

can i simply add the additional ip-addresses to these 2 files or do i have to setup "virtual interfaces" to accomplish my goal?

i am a newbie and researched in google as much as i could, but i would be really happy if you please could point me the right way.

thanks a lot

Neither of these resources is the answer to your question. You need to configure your network interfaces and set up routing properly; however, this is somewhat platform dependent. The important commands are ifconfig and route, and then maybe you have a firewall and need to make it cooperate. On Debian-based systems /etc/network/interfaces collects this stuff but other platforms have other tools and conventions, and basic Linux simply scatters this all over the place.

Dear All,

I have below attached file in which i have many nos, i want the last ascending order nos. The brief description is given below.

File
315
381
432
315
381
432
315
381
432
315
381
432
315
381
432
315
381
432
433
315
381
432
315
381
432
315
381
432
315
381
432
315
381
382
432
315
381
432
315
381
432
315
381
432
315
381
432
315
381
432
315
381
432
315
381
432
315
381
432
315
381
432
315
381
432
315
381
432
315
381
432

The required out put must be as given below. (Only last ascending nos)

315
381
432

thanks maestro. i try my luck

@Pravani1

Please start a new thread in future since your question is completely different from what the thread was started.

Now for your answer,

sort <filename> | uniq | head -3