[Dnsmasq-discuss] Problem with multihomed interface]

Sorin Panca sorin.panca at gmail.com
Fri Dec 30 01:10:55 GMT 2005


I tried to use this feature now that 2.24 release is out and in gentoo
portage.
We had a problem some time ago in the 2.23 version.... Then I used two
NICs to test and they worked fine. (No bridge)
Now I have 12 subnetworks on br0 (eth1+eth2).
If I set the static parameter replacing the upper limit of the
dhcp-range I get:
Dec 30 03:01:02 zefir dnsmasq[14099]: DHCPDISCOVER(br0) 02:d0:b7:7e:23:25
Dec 30 03:01:02 zefir dnsmasq[14099]: DHCPOFFER(br0) 192.168.0.10
02:d0:b7:7e:23:25
Dec 30 03:01:05 zefir dnsmasq[14099]: DHCPREQUEST(br0) 192.168.0.10
02:d0:b7:7e:23:25
Dec 30 03:01:05 zefir dnsmasq[14099]: DHCPNAK(br0) 192.168.0.10
02:d0:b7:7e:23:25 wrong network
If I state a dynamic range, I get:
Dec 30 03:03:47 zefir dnsmasq[14099]: DHCPDISCOVER(br0) 02:d0:b7:7e:23:25
Dec 30 03:03:47 zefir dnsmasq[14099]: DHCPOFFER(br0) 192.168.0.10
02:d0:b7:7e:23:25
.... and no response.
iptables-save -t filter output:
# Generated by iptables-save v1.3.4 on Fri Dec 30 03:04:39 2005
*filter
:INPUT DROP [161:33053]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [221:21231]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i br0 -j ACCEPT
-A INPUT -s 213.157.167.7 -i eth0 -p tcp -m tcp --dport 10000 -j ACCEPT
-A INPUT -p icmp -m limit --limit 3/sec --limit-burst 1000 -m icmp
--icmp-type 8 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 20 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 139 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
in nat I have this for 192.168.0.10
-A POSTROUTING -s 192.168.0.10 -o eth0 -j SNAT --to-source 82.79.24.73
and in mangle:
-A FORWARD -i br0 -o br0 -j MARK --set-mark 0x2
-A POSTROUTING -m mark --mark 0x2 -j CLASSIFY --set-class 0001:000a
-A POSTROUTING -s 192.168.0.10 -m mark --mark 0x1 -j CLASSIFY
--set-class 0001:00ba
-A POSTROUTING -d 192.168.0.10 -m mark --mark 0x1 -j CLASSIFY
--set-class 0001:00ba
-A POSTROUTING -s 192.168.0.10 -j CLASSIFY --set-class 0001:00ca
-A POSTROUTING -d 192.168.0.10 -j CLASSIFY --set-class 0001:00ca

I don't think the iptables' rules are a problem.

All this problems are common to all the stations in my network.

-------------- next part --------------
domain-needed
bogus-priv
resolv-file=/etc/resolver
except-interface=eth0
expand-hosts
domain=lasernet.rdslink.ro
read-ethers
dhcp-option=42,0.0.0.0
dhcp-authoritative
bogus-nxdomain=64.94.110.11

dhcp-range=net:subnet1,192.168.0.10,static,2m
dhcp-range=net:subnet2,192.168.0.18,static,2m
dhcp-range=net:subnet3,192.168.0.26,static,2m
dhcp-range=net:subnet4,192.168.0.34,static,2m
dhcp-range=net:subnet5,192.168.0.42,static,2m
dhcp-range=net:subnet6,192.168.0.50,static,2m
dhcp-range=net:subnet7,192.168.0.58,static,2m
dhcp-range=net:subnet8,192.168.0.66,static,2m
dhcp-range=net:subnet9,192.168.0.74,static,2m
dhcp-range=net:subnet10,192.168.0.82,static,2m
dhcp-range=net:subnet11,192.168.0.90,static,2m
dhcp-range=net:subnet12,192.168.0.98,static,2m

-------------- next part --------------
# 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

# IPv4
127.0.0.1       localhost zefir
82.77.126.183	cz
82.77.126.183	cz2
86.125.138.246  tenzi
82.77.127.46    tulcea
82.77.124.193   tomis
212.93.158.212  tomis2
192.168.0.1	home
81.196.40.55    net7
82.77.126.140   sora    www.fortnet.rdscj.ro.   rdscj.ro.
193.226.0.54    peda
193.226.0.70    sincai
81.196.40.210   contab
82.78.161.156   klara
213.157.167.6   azomures1
213.157.167.7   azomures2
86.125.139.229	titi


80.97.138.193   zefir   zefir.lasernet.rdslink.ro.      lasernet.rdslink.ro.
80.97.138.1     gateway1

192.168.0.10     termita
192.168.0.11     cristy
192.168.0.12     betelgeuse
192.168.0.13     mariana
192.168.0.18     lorduzzi
192.168.0.19     emi
192.168.0.20     terorizer
192.168.0.21     valee
192.168.0.26     bestia
192.168.0.27     yogo
192.168.0.28     zed
192.168.0.29     bradg
192.168.0.30     operatorul
192.168.0.34     twilight
192.168.0.35     rambo
192.168.0.36     ilici
192.168.0.42     sorel
192.168.0.43     vanilla
192.168.0.44     zacusca
192.168.0.50     paly
192.168.0.51     indian
192.168.0.52     linkinr
192.168.0.53     athos
192.168.0.58     sinister
192.168.0.59     sirjohn
192.168.0.60     devil
192.168.0.61     blizzard
192.168.0.62     twin
192.168.0.66     giovani
192.168.0.67     dennis
192.168.0.68     bicker
192.168.0.69     tano
192.168.0.70     oprea
192.168.0.74     stonez
192.168.0.75     shaggy
192.168.0.76     lex
192.168.0.77     solmyr
192.168.0.82     loloka
192.168.0.83     zozo
192.168.0.84     nelu
192.168.0.85     karcsi
192.168.0.90     draclight
192.168.0.91     hitman
192.168.0.92     digitekovi
192.168.0.98     sniper
192.168.0.99     dody
192.168.0.101     marius

192.168.0.9     Server9
192.168.0.17     Server17
192.168.0.25     Server25
192.168.0.33     Server33
192.168.0.41     Server41
192.168.0.49     Server49
192.168.0.57     Server57
192.168.0.65     Server65
192.168.0.73     Server73
192.168.0.81     Server81
192.168.0.89     Server89
192.168.0.97     Server97
-------------- next part --------------
     80.97.138.1
02:D0:B7:7E:23:25     192.168.0.10
00:E0:18:DC:E0:E8     192.168.0.11
00:D0:B7:08:31:BC     192.168.0.12
00:11:D8:14:D1:CC     192.168.0.13
00:0B:DB:DE:42:55     192.168.0.18
00:20:ED:86:51:32     192.168.0.19
00:60:08:4F:03:6C     192.168.0.20
00:C0:A8:FB:FC:E6     192.168.0.21
00:0D:61:21:DE:5B     192.168.0.26
00:08:C7:39:EC:4D     192.168.0.27
00:50:04:69:C0:EA     192.168.0.28
00:11:5B:60:27:C7     192.168.0.29
00:0A:E6:AE:82:8F     192.168.0.30
00:11:2F:82:4E:1B     192.168.0.34
00:D0:B7:09:67:B0     192.168.0.35
00:02:44:6D:0B:8F     192.168.0.36
00:04:61:70:B5:E9     192.168.0.42
00:90:27:46:49:23     192.168.0.43
02:90:27:46:49:23     192.168.0.43
00:02:44:85:74:B1     192.168.0.44
00:0F:EA:0A:96:BD     192.168.0.50
00:0B:6A:B0:3F:04     192.168.0.51
00:0D:87:BA:23:B8     192.168.0.52
00:0F:EA:6A:D5:88     192.168.0.53
00:0D:61:B0:79:8E     192.168.0.58
00:DE:FE:CA:71:E0     192.168.0.58
00:50:04:E9:FA:6A     192.168.0.58
00:0A:48:19:75:6B     192.168.0.59
02:E0:18:99:88:77     192.168.0.60
00:0A:E6:AB:E2:01     192.168.0.61
00:00:39:1B:0B:93     192.168.0.62
00:0D:87:B8:C7:C0     192.168.0.66
02:60:97:B9:11:2D     192.168.0.66
00:0D:61:37:3D:DE     192.168.0.67
00:02:B3:8E:A0:14     192.168.0.68
00:04:61:53:DA:C3     192.168.0.69
00:E0:4C:A3:66:5A     192.168.0.70
00:A0:D2:05:D9:76     192.168.0.74
02:02:55:32:C3:0A     192.168.0.75
00:02:55:32:C3:0A     192.168.0.75
00:0A:E6:DC:68:B7     192.168.0.76
00:01:02:B9:26:D3     192.168.0.77
00:0A:E6:57:77:58     192.168.0.82
00:0C:6E:DC:22:F2     192.168.0.83
00:07:95:07:41:A2     192.168.0.84
00:50:FC:9D:68:2F     192.168.0.85
00:0C:76:59:18:89     192.168.0.90
00:40:F4:A6:29:F1     192.168.0.91
00:0E:2E:36:A4:93     192.168.0.92
00:02:B3:8E:87:49     192.168.0.98
00:08:0D:DC:45:FD     192.168.0.99
00:60:08:09:BB:92     192.168.0.101


More information about the Dnsmasq-discuss mailing list