Hi,
I'm trying to create the default gateway on my notebook (Fedora Core 1), but I get a "SIOCADDRT: network unreachable" message. The problem is my eth0 interface on my notebook is on a different subnet than the gateway providing the internet access.
Here's a map of my network :
Code:
_____________________ ______________________
|Home Office Network|-------| Notebook |
| 192.168.11.0/24 | | 192.168.11.215 |
--------------------- ----------------------
|
|
_____________________________
|Home Office Gateway/VPN box |
| 192.168.11.2 |
------------------------------
|
Wireless bridge
|
VPN Tunnel
|
Wireless bridge
|
_______________________
| Main Office VPN box|
| 192.168.12.18 |
-----------------------
|
|
________________________ ______________________________
| Main Office Subnet |------| Main Office Def Gateway/FW |------ Internet
| 192.168.12.0/24 | | 192.168.12.10 |
------------------------ ------------------------------
|
|
___________________________
| Main Office Machines |
| 192.168.12.n |
---------------------------
The VPN works. Machines in the main office can ping the notebook at the home office and vice-versa. But my next goal is to use the internet connection of the main office from the notebook at the home office. Unfortunately I use two 3Com Secure Gateway/Routers as VPN boxes and can't change the default gateways on them (the 3com box will pass the traffic for 192.168.12.0 through the tunnel and the rest to the "ISP" using the Wan interface IP Address). That's the reason I tried to adjust the routing on my notebook and make it use the main office gateway as his default gateway.
But, when I try to add the default gateway :
route add default 192.168.12.10
I get :
SIOCADDRT: Network unreachable
However when I ping 192.168.12.10, I get a response.
Here's my notebook's routing table :
Code:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.11.0 * 255.255.255.0 U 0 0 0 eth0
192.168.12.0 192.168.11.2 255.255.0.0 UG 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
What's wrong with this ?
Thanks,