<br><br><div class="gmail_quote">On Tue, May 15, 2012 at 1:48 PM, Steve Dobson <span dir="ltr"><<a href="mailto:steve@dobbo.org" target="_blank">steve@dobbo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Paul<br>
<div class="im"><br>
On 15/05/12 11:43, Paul Howard wrote:<br>
> auto eth1:0<br>
> iface eth1:0 inet static<br>
> address 192.168.64.140<br>
> netmask 255.255.255.192<br>
> gateway 192.168.64.190<br>
<br>
</div>*** If your not reading this is a fix width font ***<br>
*** then it may not be as clear! ***<br>
<br>
V<br>
Netmask (bin): 1111 1111.1111 1111.1111 1111.1100 0000<br>
Host (bin): 1100 0000.1010 1000.0101 1110.1000 1100<br>
Gateway (bin): 1100 0000.1010 1000.0101 1110.1100 0000<br>
^<br>
<br>
Note: The gateway is on a different network to the host. The least<br>
significant bit of the network address is different between the host IP<br>
address and the gateway IP address. So how do packets on the server on<br>
network <a href="http://192.168.64.128/26" target="_blank">192.168.64.128/26</a> network get to the <a href="http://192.168.64.190/26" target="_blank">192.168.64.190/26</a> network?<br>
<br>
You need to give your host an IP address on the <a href="http://192.168.64.190/26" target="_blank">192.168.64.190/26</a><br>
network (possible you meant to give it IP address 192.168.64.204<br>
(1100 0000.1010 1000.0101 1110.1100 1100). If you do this then you<br>
won't need a route(8) config like I suggested in my earlier e-mail.<br>
<div class="HOEnZb"><div class="h5"><br>
Steve<br>
<br>
--<br>
Steve "Dobbo" Dobson<br><br></div></div></blockquote><div><br></div><div><br></div><div>Hi Steve,</div><div><br></div><div>I am a bit confused by your post.</div><div><br></div><div>The IP address / mask used:</div>
<div><br></div><div>192.168.64.140</div><div>255.255.255.192</div><div><br></div><div>Means the IP address is in the <a href="http://192.168.64.128/26">192.168.64.128/26</a> range. As is the gateway 192.168.64.190 (address range for <a href="http://192.168.64.128/26">192.168.64.128/26</a> is 192.168.64.128 - 192.168.64.191) </div>
<div><br></div><div><br></div></div><div><br></div>-- <br><b>Paul Howard</b><br><br><font color="#666666">web: </font><font color="#666666"><a href="http://phoward.com" target="_blank">phoward.com</a></font><font color="#666666"> / <a href="http://phowardimages.co.uk" target="_blank">phowardimages.co.uk</a> | twitter: </font><font color="#666666"><a href="http://twitter.com/phowardcom" target="_blank">@phowardcom</a> / <a href="https://twitter.com/phowardimages" target="_blank">@phowardimages</a></font><font color="#666666"><br>
<br>tel (UK): +44 (0)1293 738158 | mobile (UK): +44 (0)7903 505153 | tel (US) : +1 251 243 0058</font><br>