Urgent Default gateway problem

Hi,

I have an ip configuration and route print (i have given them manually ip is static too). I have a firewall which is internal ip is 10.25.0.2 and i want my laptop to go through that firewall.

10.16.166.35 255.255.0.0 ipconfig of my laptop

Destination Gateway Genmask Flags Metric Ref Use Iface
10.16.0.0 * 255.255.0.0 U 0 0 0 eth0
10.20.0.0 10.16.0.1 255.255.0.0 UG 0 0 0 eth0
10.25.0.0 10.16.0.1 255.255.0.0 UG 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo

I have 2 gws/switches from my laptop to firewall which is 10.16.0.1 and 10.20.0.1 . I can ping the 10.25.0.2 (the firewall) from this route. But when i try to do below

route add default gw 10.25.0.2 i got the error
SIOCADDRT:No such process.

What must be the correct configuration to use the 10.25.0.2 firewall for my laptop and how can i fix the last error.

Regards

You will probably find it easier to configure your network settings in Yast’s Network Devices, Network Settings screen

And if you’re using static ip addressing through a gateway on 10.25.0.2 I would have thought it would make sense to set the laptop’s ip as something like 10.25.0.3

Hi

Your default gateway must be on the same ip subnet as your machine.

When you say you want your laptop to use 10.25.0.2 what do you mean.

You already have a route to this device. Do you mean that you want all internet traffic from the laptop to go via this firewall ?

Add a separate interface to your laptop for the 10.25.0.0 subnet or an additional interface to the firewall on the 10.16.0.0 network.

Regardless the default gateway must be on the same subnet.

hth

Tux-IT Open Source - BSD and Linux Solutions