<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>On reviewing the subject of my post, I think I should have used the word "Prevent" instead of "Restrict" - would have been clearer as to what I want to do...<br><br>Will<br><br><hr>From: willarddennis@live.com<br>To: dnsmasq-discuss@lists.thekelleys.org.uk<br>Date: Fri, 19 Apr 2013 14:59:03 -0400<br>Subject: [Dnsmasq-discuss] Restrict DHCP providing default gateway to *one* host on one network<br><br>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir=ltr><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>Hi all,</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText> </p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>Trying to do something with dnsmasq that I believe is
possible, but I cannot get it to work... First, please take a look at my
topology</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>diagram:</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText> </p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText><font color="#0000ff"><a href="http://s1096.photobucket.com/user/willdennis/media/testbed_topology_diagram.png.html" target=_blank>http://s1096.photobucket.com/user/willdennis/media/testbed_topology_diag</font>ram.png.html</a><font face="Times New Roman">
</font></p><p style="" class=ecxMsoPlainText> </p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>My problem is with the "WANem VM" host. It is
connected to the two LANs, and I want the "10-net" interface to get a
specific IP assigned, as well as a default gateway (this is working.) </p><p style="" class=ecxMsoPlainText>The
problem is, I want the other NIC to get an IP assigned (which is working), but,
NO default gateway set for that NIC. So the state I want to end up with is:</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>Eth0 ("10-net") -> specific IP address
assigned, has default gateway set (same as all other hosts on that network that
use DHCP)</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>Eth1 ("20-net") -> pool IP address assigned,
NO default gateway set (unlike the other hosts on this network that use DHCP,
which all need a default gateway assigned)</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText> </p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>Right now, the eth1 on the WANem host IS getting a
default gateway assigned, which leads to this host having two default paths
out:</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText> </p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>Destination<span style=""> </span>Gateway<span style=""> </span>Genmask<span style=""> </span>Flags<span style=""> </span>Metric<span style=""> </span>Ref<span style=""> </span>Use Iface</p><font face="Times New Roman">
</font><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText><netroutes redacted></p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>0.0.0.0<span style=""> </span>192.168.10.254<span style=""> </span>0.0.0.0<span style=""> </span>UG<span style=""> </span>0 0<span style=""> </span>0<span style=""> </span>eth0<font face="Times New Roman">
</font></p><p style="" class=ecxMsoPlainText>0.0.0.0<span style=""> </span>192.168.20.254<span style=""> </span>0.0.0.0<span style=""> </span>UG<span style=""> </span>0 0<span style=""> </span>0<span style=""> </span>eth1<font face="Times New Roman">
</font></p><p style="" class=ecxMsoPlainText> </p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>This is causing a reachability problem with this host.</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText> </p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>Here are the active stanzas in dnsmasq.conf currently:</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText> </p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>interface=vl10-ovsbr0</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>interface=vl20-ovsbr0</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>bind-interfaces</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>dhcp-range=vl10-ovsbr0,192.168.10.50,192.168.10.150,4h</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>dhcp-range=vl20-ovsbr0,192.168.20.50,192.168.20.150,4h</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>dhcp-host=52:54:00:d5:ee:4d,id:*,192.168.10.1</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>dhcp-mac=set:wanem-20,52:54:00:45:8c:6a</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>dhcp-option=vl10-ovsbr0,3,192.168.10.254</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>dhcp-option=vl20-ovsbr0,3,192.168.20.254</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>dhcp-option=net:wanem-20,3</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText> </p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>I'm sure it's a simple config change, but I cannot seem
to figure it out... If someone could help me out here, I'd sure appreciate
it...</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText> </p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>Thanks,</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText>Will</p><font face="Times New Roman">
</font><p style="" class=ecxMsoPlainText> </p><font face="Times New Roman">
</font> </div>
<br>_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss </div></body>
</html>