Rob Hudson wrote:
> Anyone have an example of a debian config file
> (/etc/network/interfaces) for the case where you have one main IP, and
> many virtual or aliased IPs? I've never done this on Linux before,
> only on FreeBSD.
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
iface lo inet loopback
# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
iface eth0 inet static
address 192.168.0.5
netmask 255.255.255.0
gateway 192.168.0.1
iface eth0:0 inet static
address 192.168.0.6
netmask 255.255.255.0
iface eth0:1 inet static
address 192.168.0.7
netmask 255.255.255.0
iface eth0:2 inet static
address 192.168.0.8
netmask 255.255.255.0
iface eth0:3 inet static
address 192.168.0.9
netmask 255.255.255.0
iface eth0:4 inet static
address 192.168.0.10
netmask 255.255.255.0
iface eth0:5 inet static
address 192.168.0.11
netmask 255.255.255.0
iface eth0:6 inet static
address 192.168.0.12
netmask 255.255.255.0
iface eth0:7 inet static
address 192.168.0.13
netmask 255.255.255.0
iface eth0:8 inet static
address 192.168.0.14
netmask 255.255.255.0
iface eth0:9 inet static
address 192.168.0.15
netmask 255.255.255.0
iface eth0:10 inet static
address 192.168.0.16
netmask 255.255.255.0
iface eth0:11 inet static
address 192.168.0.17
netmask 255.255.255.0
Why do I have 12 IP addresses on a machine on the internal network?
So it can have 12 distinct functions, and nobody else "knows" that
they're really the same machine.
Here's the interesting part of the DNS map.
# Central Services
=central-services.jogger-egg.com:192.168.0.5:86400
+cs.jogger-egg.com:192.168.0.5:86400
# Name Server
=a.ns.jogger-egg.com:192.168.0.6:86400
.jogger-egg.com:192.168.0.6:a:259200
.0.168.192.in-addr.arpa:192.168.0.6:a:259200
.2.168.192.in-addr.arpa:192.168.0.6:a:259200
.kbobsoft.com:192.168.0.6:a:259200
# Mail Server (someday)
# @jogger-egg.com:192.168.0.7:b::86400
# Time Server
=clock.jogger-egg.com:192.168.0.8:86400
# HTTP and FTP Proxy
# Now an alias for firewall.
# =proxy.jogger-egg.com:192.168.0.9:86400
# Photo Server
=photos.jogger-egg.com:192.168.0.10:86400
# Music Server
=tunes.jogger-egg.com:192.168.0.11:86400
# Staging Web Servers
=staging.jogger-egg.com:192.168.0.12:86400
=staging.kbobsoft.com:192.168.0.13:86400
=staging.exsgi.org:192.168.0.14:86400
=staging.bad-attitude.org:192.168.0.15:86400
=staging.exgeocast.org:192.168.0.16:86400
+staging.exgeocast.com:192.168.0.16:86400
# Local Debian Mirror
=debian.jogger-egg.com:192.168.0.17:86400
--
Bob Miller K<bob>
kbobsoft software consulting
http://kbobsoft.com [EMAIL PROTECTED]