Re: Why this default route doesn't work ?

Tech-Archive recommends: Fix windows errors by optimizing your registry



If the mask is correct, the command should be:

route add 2.0.0.0 MASK 255.0.0.0 1.1.1.254

If the network ID is correct but the mask is wrong, the command should be:

route add 2.2.2.0 MASK 255.255.255.0 1.1.1.254

Also, if you only need to reach one machine as opposed to an entire network,
you can use a static route with the host IP and a full mask:

route add 2.2.2.2 MASK 255.255.255.255 1.1.1.254

Doug Sherman
MCSE, MCSA, MCP+I, MVP

"Magoo" <magoo-nospam@xxxxxxxxxxx> wrote in message
news:%23mNmST6ZFHA.2900@xxxxxxxxxxxxxxxxxxxxxxx
> Pardon me, I sent you misinformation:
> I have no default gateway set on the TCP/IP properties. That's why I
> configured the default route.
> correct, assume the subnet mask is correct (I edited the IP address before
> posting this message and in the process I didn't reflect my correct mask).
>
> Therefore all information is correct :
> Assume I have the correct default route set with the right subnect mask:
> route 2.2.2.0 MASK 255.0.0.0 1.1.1.254.
> It still returns destination host unreachable.
> How can this be ?
>
>
>
> "Doug Sherman [MVP]" <dsherman@xxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:Oy2lUN6ZFHA.1368@xxxxxxxxxxxxxxxxxxxxxxx
> > Well first of all, if the router/computer at 1.1.1.254 knows where to
send
> > packets destined for 2.2.2.2, then there is no need for a static route.
> > Second, if the router/computer at 1.1.1.254 does not know where to send
> > packets destined for 2.2.2.2, then a static route pointing to that
gateway
> > will not help. Finally, if you want to configure a static route to the
> > network on which 2.2.2.2 resides, it would be 2.0.0.0 NOT 2.2.2.0.
> >
> > Doug Sherman
> > MCSE, MCSA, MCP+I, MVP
> >
> > "Magoo" <magoo-nospam@xxxxxxxxxxx> wrote in message
> > news:uyNLjF6ZFHA.1456@xxxxxxxxxxxxxxxxxxxxxxx
> > > I have a Win2003 server named ISA with the following configuration
under
> > > TCP/IP Properties:
> > >
> > > IP address=1.1.1.1
> > > Subnet mask=255.0.0.0
> > > Defaut gateway=1.1.1.254
> > >
> > > That's it.
> > >
> > > Now I need to make sure this server will reach mypublisheserver.com.
> > > On the host file of ISA Server, I put
> > > mypublished server 2.2.2.2.
> > >
> > > Then I add a route:
> > > Route add -p 2.2.2.0 MASK 255.0.0.0 1.1.1.254
> > > I do a route print and I confirm the persistent, static route has been
> > > added.
> > >
> > > Then I ping mypublished server. It resolves to IP 2.2.2.2
accordingly,
> > but
> > > it returns:
> > > "Destination host unreachable"
> > >
> > > What's wrong ?
> > >
> > >
> > >
> >
> >
>
>


.



Relevant Pages

  • Re: Option 249 Classless Static Routes
    ... >The mask is wrong. ... >the address the network portion. ... >> I can ping the network IP 172.16.0.0 and it returns ... >> Static Route I am able to ping it. ...
    (microsoft.public.windows.server.networking)
  • Re: DHCP 033 mask
    ... I need to assign a static route to clients through DHCP, ... and there's no way to specify a mask with the GUI. ...
    (microsoft.public.windows.server.networking)
  • Gated
    ... I'm using RIP with gated and I have many static route. ... I would like to prevent that gated announces a particular static route. ... x.y.0.0 mask 255.255.255.0 restrict; ... where x.y.0.0 mask 255.255.255.0 is a particular static route. ...
    (comp.os.linux.networking)
  • Re: Determining what should be blocked in and out?
    ... mask, the .0, will always make the last byte of the IP address you're ... zero always for the purposes of checking if it's to be blocked. ... IP address you are trying to contact is on the same network as you. ... Since this equals the same network to be blocked, ...
    (comp.security.firewalls)
  • Re: TCP/IP connection problem
    ... that includes routers) but a mask problem. ... These changes depend upon what type network connectivity ... then the mask on the VMS system is not ... With those ranges you can use subnetting which is usually ...
    (comp.os.vms)