i realise this is a bit OT but I know there are network guys on this list and I'm hoping for a quick solution. I need to temporarily host another web site on my server. I don't want to chage any DNS registrations as it's only for one day. How do I bind/associate more than one ip address with my NIC. I tried `ipconfig add xxx.xxx.xxx.xxx` and it seemed to work but it only works for local subnet conmnections. What am I missing? -- Simon Oliver
On Thu, Mar 07, 2002 at 03:23:48PM +0000, Simon Oliver wrote:
How do I bind/associate more than one ip address with my NIC.
To add these 2 very virtual ip's on eth0: echo "Listening to 295.124.143.44" ifconfig eth0:0 295.124.143.44 route add -host 295.124.143.44 dev eth0:0 echo "Listening to 295.124.143.45" ifconfig eth0:1 295.124.143.45 route add -host 295.124.143.45 dev eth0:1 HTH, Olivier -- _________________________________________________________________ Olivier Mueller - om@8304.ch - PGPkeyID: 0E84D2EA - Switzerland qmail projects: http://omail.omnis.ch - http://webmail.omnis.ch
Thanks, works great now. -- Simon Oliver
Am Donnerstag, 7. März 2002 16:23 schrieb Simon Oliver:
i realise this is a bit OT but I know there are network guys on this list and I'm hoping for a quick solution. I need to temporarily host another web site on my server. I don't want to chage any DNS registrations as it's only for one day.
How do I bind/associate more than one ip address with my NIC.
I tried `ipconfig add xxx.xxx.xxx.xxx` and it seemed to work but it only works for local subnet conmnections. What am I missing?
While Oliviers solution works for you, and which I used for 2 years, I had
some errors due the error-prone increasing of 2 values (Alias and IP) I use
nowadays this :
--------------------------
#! /bin/sh
#
# Author: Peter Wiersig
I tried the same thing a while back, and it actually is possible with Yast and I think a network restart. I admit I don't trust Yast enough to do it for my remote server, but on my workstation I'm happily running 4 extra ips on the machine. I believe all I did differently was that when Yast offers a list of devices, I entered another device of: eth0:0 Just in case that's of interest. Hen
participants (4)
-
Henri Yandell
-
Olivier M.
-
Peter Wiersig
-
Simon Oliver