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

Re: Access to sub network unreachable.

Robin Laing wrote:
Simon Slater wrote:
    Hi all,
I'm sure I have missed something simple (or done something stupid) but
have no idea what so I'll ask anyhow.

    All the computers on our SOHO network had static addresses in the range with netmask of and all worked fine
for ages.  Now I have a Linksys gateway which has a default address of for configuration.  It works fine as a DSL router but I
cannot use a browser to access the configuration.  All I get is "An
error occurred while loading Could not connect to
host."  Pinging returns "Destination Host Unreachable".

I changed the netmask for the ethx device to but this made
no difference.  What have I forgotten?

Odds are that the router also has a netmask of (or a /24).
If that's the case, then it can't talk to your client since your client isn't on the router's LAN as far as the router is concerned. Your
client can talk to the router with a /16, but the router can't reply to
you as it'd try to talk to you over its WAN port.  Options:

1. Change all of your client machines to 192.168.1.xxx with netmasks of (/24) to conform to the router's defaults, or

2. Change the netmask on the router to (/16) and all of the
client machines to the same, or

3. Change the IP and netmask of the router to 192.168.0.xxx/24 and leave
your clients alone.

I'd vote for number 3...it makes your new router look like the old router. Remember, though, that if you ever reset your router to the
factory defaults, you'll need to change its IP again afterward or
you'll be right back here where you started.  :-)

How to change it?  On your client:

1. # ifconfig eth0 192.168.1.whatever netmask
2. (browse to and change the IP on the router)
3. # ifconfig eth0 192.168.0.whatever netmask (needed
because your router is now on

- Rick Stevens, Systems Engineer                      ricks nerd com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-  Animal testing is futile.  They always get nervous and give the   -
-                             wrong answers                          -

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