[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gateway doesn't locate at the same subnet of the IP Address.



On Thu, 02 Apr 2009 07:20:09 +0200, Ron Johnson
<ron.l.johnson@cox.net> wrote:

>The config file you need is /etc/network/interfaces.  Mine is:
>
>$ cat /etc/network/interfaces | grep -v \#
>
>auto lo
>iface lo inet loopback
>
>allow-hotplug eth0
>iface eth0 inet static
>	address 192.168.1.10
>	netmask 255.255.255.0
>	network 192.168.1.0
>	broadcast 192.168.1.255
>	gateway 192.168.1.251
>	dns-nameservers 68.105.28.12 68.105.29.12
>	dns-search homelan
>
>You'll have to restart /etc/init.d/networking after editing the 
>interfaces file.

This is _NOT_ my case.  I mean, in my case, the IP and Gateway are not
on the same subnet.  In this case, I must also add some route in order
to send the packet from my host the Gateway first but I don't know how
to do it.

-- 
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.


Reply to: