[Sussex] Persistent routes

Jan Henkins jan at henkins.za.net
Tue May 15 13:13:25 UTC 2012


Hello Steve,

On Tue, May 15, 2012 13:48, Steve Dobson wrote:
[...]
> ***   If your not reading this is a fix width font ***
> ***           then it may not be as clear!         ***
>
> 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.

I agree that your next-hop (gateway) for a static route should be on the
same network. In this case, it is. Look at the HostMax address in the
following output from ipcalc:


---start---
# ipcalc -n --nobinary 192.168.64.140/26
Address:   192.168.64.140
Netmask:   255.255.255.192 = 26
Wildcard:  0.0.0.63
=>
Network:   192.168.64.128/26
HostMin:   192.168.64.129
HostMax:   192.168.64.190
Broadcast: 192.168.64.191
Hosts/Net: 62                    Class C, Private Internet
---end---


-- 
Regards,
Jan Henkins




More information about the Sussex mailing list