PDA

View Full Version : How to set up a network when default Gw is not in the same range as Ip Address.


emfadz
2007-01-30, 07:59 PM CST
I need to setup this ip address on my notebook.
If it is in SUSE, i will use yast to add additional routing but in FC6, it just can't be done. Can anyone check my mistake here?

IP address : 202.188.29.43
subnet mask : 255.255.255.0
default gw : 172.16.1.252

---------------------------------------

The problem is, I cant ping 172.16.1.252 and it states Destination Host Unreachable
I have already add -- route add -net 172.16.0.0 netmask 255.255.0.0 dev eth0

Can anyone understand what kind of problem i'm facing now?

Please...

Zotter
2007-01-30, 10:55 PM CST
By definition, the default gateway can *NOT* be outside the IP range. Least as I understand it.

There're things that surprise me and I learn something everyday. But, the default gateway is where all IP traffic is sent that doesn't go to the local network or another specified route. Local network is defined by your IP and the netmask. In your example any IP 202.188.29.0 through 202.188.29.255 are your local network.

Now, all this don't mean you can't have a route to that gateway - but it'll be a specified route, not a default.

emfadz
2007-02-01, 01:20 AM CST
It can be done but you have to put a new route
In SUSE.. it can be done by using yast and in the advance setting of the network.

SatelliteX
2007-02-01, 08:58 PM CST
What are the network settings provided by your ISP?
Start from there.

emfadz
2007-02-11, 04:22 AM CST
202.188.29.43

zemb
2007-02-12, 01:25 AM CST
If that gw is not in you same network (and it seems no to be), how is your computer supposed to reach it? For computers in your same network, your computer just have to throw out packages, using the network interface; for other computers, it should ask a gw to do it for him. In your case, that gw is unreacheable, unless you add another gw before.