> > > 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:
> > > 207.10.2.5
> > > 207.10.2.10
> > > 207.10.2.67
> > > 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 207.10.2.5
> > > process2 would be identified to have IP address 207.10.2.10
> > > process3 would be identified to have IP address 207.10.2.67
> > > 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
Quote:> 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.