[Sussex] Persistent routes

Paul Howard paul at phoward.com
Tue May 15 13:14:12 UTC 2012


On Tue, May 15, 2012 at 1:48 PM, Steve Dobson <steve at dobbo.org> wrote:

> Hi Paul
>
> On 15/05/12 11:43, Paul Howard wrote:
> > auto eth1:0
> > iface eth1:0 inet static
> > address 192.168.64.140
> > netmask 255.255.255.192
> > gateway 192.168.64.190
>
> ***   If your not reading this is a fix width font ***
> ***           then it may not be as clear!         ***
>
>                                              V
> Netmask (bin): 1111 1111.1111 1111.1111 1111.1100 0000
> Host    (bin): 1100 0000.1010 1000.0101 1110.1000 1100
> Gateway (bin): 1100 0000.1010 1000.0101 1110.1100 0000
>                                              ^
>
> Note: The gateway is on a different network to the host.  The least
> significant bit of the network address is different between the host IP
> address and the gateway IP address.  So how do packets on the server on
> network 192.168.64.128/26 network get to the 192.168.64.190/26 network?
>
> You need to give your host an IP address on the 192.168.64.190/26
> network (possible you meant to give it IP address 192.168.64.204
> (1100 0000.1010 1000.0101 1110.1100 1100).  If you do this then you
> won't need a route(8) config like I suggested in my earlier e-mail.
>
> Steve
>
> --
> Steve "Dobbo" Dobson
>
>

Hi Steve,

I am a bit confused by your post.

The IP address / mask used:

192.168.64.140
255.255.255.192

Means the IP address is in the 192.168.64.128/26 range. As is the gateway
192.168.64.190  (address range for 192.168.64.128/26  is 192.168.64.128 -
192.168.64.191)



-- 
*Paul Howard*

web: phoward.com  / phowardimages.co.uk  |   twitter:
@phowardcom<http://twitter.com/phowardcom>
/ @phowardimages <https://twitter.com/phowardimages>

tel (UK):  +44 (0)1293 738158  |  mobile (UK):  +44 (0)7903 505153   |
tel (US) : +1 251 243 0058
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/sussex/attachments/20120515/1f52c0d8/attachment.htm>


More information about the Sussex mailing list