Forum Moderators: bakedjake

Message Too Old, No Replies

different IP on same server

how to configurate a linux machine to respond on different IP addresses

         

manuelsechi

11:40 am on Jan 20, 2006 (gmt 0)

10+ Year Member



hello all

i have a linux server that respond on a single IP address (example: 192.111.222.333)but in the contract with the farm i can get four other IP addresses, already assigned (example: 192.111.222.334, 192.111.222.335, 192.111.222.336).

i need to know how to configure the server to respond to other IP addresses

thanx all

pmkpmk

11:48 am on Jan 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, Manuel!

Do I understand you right: you HAVE a server from ISP/hoster "A" which has already 4 addresses assigned? And now you want to add ADDITIONAL addresses, which you got from ISP/hoster "B"?

Sounds to me like a lot of routing tables need to be reconfigured for this - which is extremely unlikely to happen.

manuelsechi

11:58 am on Jan 20, 2006 (gmt 0)

10+ Year Member



i have a server in hosting in a server farm.
when i bought it, the IT help gave me 5 IP addresses, ex:
192.111.222.333
192.111.222.334
192.111.222.335
192.111.222.336
192.111.222.337

but, if i do a ping to anyone, only the first one work.

now i want to configure the server to respond to the others IP addresses. they told me that Ip are alredy configured to go to that machine...

sorry for my english :-(

thank you
Manuel

pmkpmk

12:00 pm on Jan 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Log in as root, and check with "ifconfig" if the addresses are bound to the network interface. Check locally(!) if the addresses can be pinged. If so, contact the tech guy and ask him if the addresses get routed to the machines.

manuelsechi

12:19 pm on Jan 20, 2006 (gmt 0)

10+ Year Member



with ifconfig, i have only the first IP address configured on eth0

i can't ping the others IP locally

M

pmkpmk

12:48 pm on Jan 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Then they are not bound to the interface. Try "man ifconfig" for the syntax on how to assign them. And don't forget to edit the configfiles so after a reboot they get assigned automatically.

manuelsechi

1:25 pm on Jan 20, 2006 (gmt 0)

10+ Year Member



ok now i try
thank u a lot

manuelsechi

3:45 pm on Jan 20, 2006 (gmt 0)

10+ Year Member



ok i fixed with
ip addr add 192.111.222.334/24 dev eth0

thank u
Manuel