[Sussex] Persistent routes
Steve Dobson
steve at dobbo.org
Tue May 15 12:48:34 UTC 2012
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
More information about the Sussex
mailing list