[Dnsmasq-discuss] Help me please! Multiple IPs on one interface - not working

Sorin Panca sorin.panca at gmail.com
Mon Nov 14 21:47:58 GMT 2005


> Simon Kelley wrote:
> And you were asked for copies of /etc/hosts, /etc/ethers and
> /etc/dnsmasq.conf which show this behaviour. That information will make
> diagnosing the problem much easier.

I did't get the mail... something happend. Sorry for the inconvenience.
Since these two files are small, I won't attach them:
They have no headers, nor footers.
/etc/ethers:

00:E0:18:DC:E0:E8     192.168.0.11
00:0B:DB:DE:42:55     192.168.0.18
EndOfFile

/etc/hosts:
# /etc/hosts:  This file describes a number of hostname-to-address
#              mappings for the TCP/IP subsystem.  It is mostly
#              used at boot time, when no name servers are running.
#              On small systems, this file can be used instead of a
#              "named" name server.  Just add the names, addresses
#              and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8
2003/08/04 20:12:25 azarah Exp $
#
127.0.0.1       localhost zefir
192.168.0.1     zefir   zefir.lasernet.rdslink.ro.      lasernet.rdslink.ro.
192.168.0.9     zefir3
192.168.0.17    zefir4
192.168.0.25    zefir5
192.168.0.33    zefir6
192.168.0.41    zefir7
192.168.0.49    zefir8
192.168.0.57    zefir9
192.168.0.65    zefir10
192.168.0.73    zefir11
192.168.0.81    zefir12
192.168.0.89    zefir13
192.168.0.97    zefir14

192.168.0.10    Termita
192.168.0.18    LordUZZI

# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
EndOfFile

I would have attach my kernel config file but that would make my message
52k large and there is a limit at 40k. I have the support for RTnetlink
activated.

If I set the addresses manually on that machines, I can ping the server.
I use the /29 netmask.

> No, it doesn't depend on the driver. It does depend on the presence in
> the kernel of the RTnetlink facility, which is always available in 2.4
> and 2.6 linux kernels, but has to be specifically enabled in 2.2 Linux
> kernels. That means, also, that multiple IP-address support is not
> available under other OS's, for example FreeBSD.

zefir sorin # uname -a
Linux zefir 2.6.14-rc3 #9 Sun Nov 6 11:58:14 EET 2005 i686 Intel(R)
Celeron(TM) CPU                1200MHz GenuineIntel GNU/Linux
is a vanilla kernel running on Gentoo Linux profile 2005.1

zefir sorin # ip -V
ip utility, iproute2-ss050330
no pacthes applied.

zefir sorin # ifconfig -V
net-tools 1.60
ifconfig 1.42 (2001-04-13)

> 
> Cheers,
> 
> Simon.
> 

Cheers,

Sorin.

-------------- next part --------------
 ### DNS ###
domain-needed
bogus-priv
expand-hosts
domain=lasernet.rdslink.ro
cache-size=256
#localize-queries
# Not for Kerberos5 users
filterwin2k
resolv-file=/etc/resolver
strict-order
# redirect no.net hosts to my webserver
address=/no.net/127.0.0.1
interface=eth1
interface=eth2
no-dhcp-interface=eth0
bind-interfaces
read-ethers
dhcp-authoritative

 ### DHCP ###
dhcp-range=lan1,192.168.0.10,192.168.0.14,255.255.255.248,2m
dhcp-range=lan2,192.168.0.18,192.168.0.22,255.255.255.248,2m
dhcp-range=lan3,192.168.1.18,192.168.1.22,255.255.255.248,2m
dhcp-option=lan1,3,192.168.0.9
dhcp-option=lan2,3,192.168.0.17
dhcp-option=lan3,3,192.168.1.17

# Relay agent:
#dhcp-range=192.168.0.50,192.168.0.150,255.255.255.0,12h
#dhcp-range=no.net,192.168.0.50,192.168.0.150

# Always allocate the host with ethernet address 11:22:33:44:55:66 
# The IP address 192.168.0.60
#dhcp-host=11:22:33:44:55:66,192.168.0.60

# Always set the name of the host with hardware address
# 11:22:33:44:55:66 to be "fred"
#dhcp-host=11:22:33:44:55:66,fred

# Always give the host with ethernet address 11:22:33:44:55:66
# the name fred and IP address 192.168.0.60 and lease time 45 minutes
#dhcp-host=11:22:33:44:55:66,fred,192.168.0.60,45m

# Give the machine which says it's name is "bert" IP address
# 192.168.0.70 and an infinite lease
#dhcp-host=bert,192.168.0.70,infinite

# Always give the host with client identifier 01:02:02:04 
# the IP address 192.168.0.60
#dhcp-host=id:01:02:02:04,192.168.0.60

# Always give the host with client identifier "marjorie"
# the IP address 192.168.0.60
#dhcp-host=id:marjorie,192.168.0.60

# Enable the address given for "judge" in /etc/hosts
# to be given to a machine presenting the name "judge" when
# it asks for a DHCP lease.
#dhcp-host=judge

# Never offer DHCP service to a machine whose ethernet 
# address is 11:22:33:44:55:66
#dhcp-host=11:22:33:44:55:66,ignore

# Ignore any client-id presented by the machine with ethernet
# address 11:22:33:44:55:66. This is useful to prevent a machine 
# being treated differently when running under different OS's or
# between PXE boot and OS boot.
#dhcp-host=11:22:33:44:55:66,id:*

# Send extra options which are tagged as "red" to 
# the machine with ethernet address 11:22:33:44:55:66
#dhcp-host=11:22:33:44:55:66,net:red

# Send extra options which are tagged as "red" to 
# any machine with ethernet address starting 11:22:33:
#dhcp-host=11:22:33:*:*:*,net:red

# Send extra options which are tagged as "red" to any machine whose
# DHCP vendorclass string includes the substring "Linux"
#dhcp-vendorclass=red,Linux

# Send extra options which are tagged as "red" to any machine one 
# of whose DHCP userclass strings includes the substring "accounts"
#dhcp-userclass=red,accounts



# Send options to hosts which ask for a DHCP lease.
# See RFC 2132 for details of available options.
# Note that all the common settings, such as netmask and
# broadcast address, DNS server and default route, are given
# sane defaults by dnsmasq. You very likely will not need any
# any dhcp-options. If you use Windows clients and Samba, there
# are some options which are recommended, they are detailed at the
# end of this section.
# For reference, the common options are:
# subnet mask - 1
# default router - 3
# DNS server - 6
# broadcast address - 28

# NTP time server
#dhcp-option=42,192.168.0.1

# Set the NTP time server address to be the same machine as 
# is running dnsmasq
dhcp-option=42,0.0.0.0

# Set the default time-to-live to 50
#dhcp-option=23,50

# Set the "all subnets are local" flag
#dhcp-option=27,1

# Send the etherboot magic flag and then etherboot options (a string).
#dhcp-option=128,e4:45:74:68:00:00
#dhcp-option=129,NIC=eepro100

# Specify an option which will only be sent to the "red" network 
# (see dhcp-range for the declaration of the "red" network)
#dhcp-option=red,42,192.168.1.1

# The following DHCP options set up dnsmasq in the same way as is specified
# for the ISC dhcpcd in 
# http://www.samba.org/samba/ftp/docs/textdocs/DHCP-Server-Configuration.txt
# adapted for a typical dnsmasq installation where the host running
# dnsmasq is also the host running samba.
# you may want to uncomment them if you use Windows clients and Samba.
#dhcp-option=19,0           # option ip-forwarding off 
dhcp-option=44,0.0.0.0     # set netbios-over-TCP/IP nameserver(s) aka WINS server(s)
dhcp-option=45,0.0.0.0     # netbios datagram distribution server
dhcp-option=46,8           # netbios node type
dhcp-option=47             # empty netbios scope.

# Send encapsulated vendor-class specific options. The vendor-class
# is sent as DHCP option 60, and all the options marked with the
# vendor class are send encapsulated in DHCP option 43. The meaning of
# the options is defined by the vendor-class. This example sets the 
# mtftp address to 0.0.0.0 for PXEClients
#dhcp-option=vendor:PXEClient,1,0.0.0.0

# Set the boot filename and tftpd server name and address
# for BOOTP. You will only need this if you want to
# boot machines over the network.
#dhcp-boot=/var/ftpd/pxelinux.0,boothost,192.168.0.1

# Set the limit on DHCP leases, the default is 150
#dhcp-lease-max=150

# The DHCP server needs somewhere on disk to keep its lease database.
# This defaults to a sane location, but if you want to change it, use
# the line below.
dhcp-leasefile=/var/lib/misc/dnsmasq.leases

dhcp-authoritative
#cache-size=150
#no-negcache
#local-ttl=
bogus-nxdomain=64.94.110.11 # VeriSign

# If you want to fix up DNS results from upstream servers, use the
# alias option. This only works for IPv4.
# This alias makes a result of 1.2.3.4 appear as 5.6.7.8
#alias=1.2.3.4,5.6.7.8
# and this maps 1.2.3.x to 5.6.7.x
#alias=1.2.3.0,5.6.7.0,255.255.255.0

# Return an MX record named "maildomain.com" with target
# servermachine.com and preference 50
#mx-host=maildomain.com,servermachine.com,50

# Set the default target for MX records created using the localmx option.
#mx-target=servermachine.com

# Return an MX record pointing to the mx-target for all local
# machines.
#localmx

# Return an MX record pointing to itself for all local machines.
#selfmx

# Change the following lines if you want dnsmasq to serve SRV 
# records.  These are useful if you want to serve ldap requests for
# Active Directory and other windows-originated DNS requests.
# See RFC 2782.
# You may add multiple srv-host lines. 
# The fields are <name>,<target>,<port>,<priority>,<weight>
# If the domain part if missing from the name (so that is just has the
# service and protocol sections) then the domain given by the domain=
# config option is used. (Note that expand-hosts does not need to be
# set for this to work.)

# A SRV record sending LDAP for the example.com domain to
# ldapserver.example.com port 289
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389

# A SRV record sending LDAP for the example.com domain to
# ldapserver.example.com port 289 (using domain=)
#domain=example.com
#srv-host=_ldap._tcp,ldapserver.example.com,389

# Two SRV records for LDAP, each with different priorities
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,1
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,2

# A SRV record indicating that there is no LDAP server for the domain
# example.com 
#srv-host=_ldap._tcp.example.com


# Change the following lines to enable dnsmasq to serve TXT records.
# These are used for things like SPF and zeroconf. (Note that the
# domain-name expansion done for SRV records _does_not 
# occur for TXT records.)

#Example SPF.
#txt-record=example.com,v=spf1 a -all

#Example zeroconf
#txt-record=_http._tcp.example.com,name=value,paper=A4


# For debugging purposes, log each DNS query as it passes through
# dnsmasq.
log-queries

# Include a another lot of configuration options.
#conf-file=/etc/dnsmasq.more.conf


More information about the Dnsmasq-discuss mailing list