> > > Dear all:
> > > I need to setup multiple hosts (or servers) on the same machine which has
> > > only one LAN interface. That is, I would have IP addresses like:
> > > 18.104.22.168
> > > 22.214.171.124
> > > 126.96.36.199
> > > on the same LAN interface (on one machine) and bind 3 different processes
> > > onto these 3 addresses so that:
> > > process1 would be identified to have IP address 188.8.131.52
> > > process2 would be identified to have IP address 184.108.40.206
> > > process3 would be identified to have IP address 220.127.116.11
> > > I know this is possible in Solaris (but I already forgot how I did it). Is
> > > this also possible in Linux (I actually think so)? How is it done?
> > First you choose three different interface names like eth0, eth0:id1,
> > and eth0:id2. The id after the : can be anything you like. You should
> Actually, this is not neccessarily true. If you install the iproute2
> tools, you can use:
> /sbin/ip addr add ....
> and add multiple IP addresses to eth0 (without the ":idx" suffix).
I wonder what it actually does, after adding one, I cannot see it
with ifconfig. I also wonder what is going on here, how can the
destination host be unreachable:
[root:pts/1:/home/kasperd] /sbin/ip addr add 172.16.42.96 dev eth0
[root:pts/1:/home/kasperd] ping 172.16.42.96
PING 172.16.42.96 (172.16.42.96) 56(84) bytes of data.
64 bytes from 172.16.42.96: icmp_seq=2 ttl=64 time=0.228 ms
64 bytes from 172.16.42.96: icmp_seq=3 ttl=64 time=0.224 ms
From 172.16.42.1 icmp_seq=1 Destination Host Unreachable
64 bytes from 172.16.42.96: icmp_seq=4 ttl=64 time=0.214 ms
--- 172.16.42.96 ping statistics ---
4 packets transmitted, 3 received, +1 errors, 25% packet loss, time 3032ms
rtt min/avg/max/mdev = 0.214/0.222/0.228/0.005 ms, pipe 3
> As for then having different BIND processes listening on the different IP
> addresses, look for "listen-on" in BIND's config file (man named.conf).
> You will have to edit the config files and probably the init scripts to
> make sure that the 3 different bind proceses don't interfere with each
> other (different PID files, etc.)
Nobody said anything about BIND.
Kasper Dupont -- der bruger for meget tid paa usenet.
Their business was zero and it was shrinking.