[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 2009-04-01 23:41, hongyi.zhao@gmail.com wrote:
Hi all,

I've a host which has windowsxp installed on it and has the following
ip configurations:

---------------------------------
        Physical Address. . . . . . . . . : 00-1B-FC-2E-2B-6C
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 210.73.34.32
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 159.226.135.129
        DNS Servers . . . . . . . . . . . : 159.226.135.10
                                            129.226.8.7
---------------------------------

Now, I switched from windowsxp to debian with the above ip
configurations, but I don't know how should I set my debian using the
above ip configurations, to be more specifically, the main issue in my
case is that:  the gateway doesn't locate at the same subnet of the IP
Address.

How can I config my debian network with the above informations? Thanks
in advance.

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.

--
Scooty Puff, Sr
The Doom-Bringer


Reply to: