Re: Gateway in a different net

From: Bill Vermillion (bv_at_wjv.com)
Date: 10/15/04


Date: Fri, 15 Oct 2004 14:05:01 GMT

In article <416ef25d_1@newsfeed.slurp.net>,
+Alan Hicks+ <alan@lizella.netWORK> wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1

>In comp.unix.bsd.freebsd.misc, Alexander Lapp dared to utter,
>
>> Unfortunately it is necessary to set up a route to another net
>> to reach the gateway. How can I realize this?

>Um, this shouldn't be possible. You can only reach machines on your
>local network address space as determined by your IP and netmask. To
>reach others, you have to pass through a gateway (a.k.a. router).

And the OP didn't give any details of his system.
In his rc.conf he at least needs the defaultrouter directive.
It also easy to make the local machine an router.

Those command could include gateway_enable and/or router_enable.

>> The server ip is: x.x.118.91 and the gateway to reach the net is
>> x.x.117.1.

>Most likely you have your netmask set wrong. You're probably using a
>255.255.255.0 netmask, which would let you reach IPs x.x.118.1-255.
>What happens if you use something like 255.255.0.0? Granted, that
>probably isn't your proper netmask and that can create problems
>reaching certain IP addresses, but should let you talk to that router.

And the OP never even said that those are on his local network.
He just routed out eth0 and we have no clue as to what is connected
to that.

>First thing to do is contact your ISP or network admin and verify that
>your IP settings are correct.

As they say 'the devil is in the details'. And I've never
been able to determing just who 'they' are.

Bill

-- 
Bill Vermillion - bv @ wjv . com


Relevant Pages

  • Re: Networking problem
    ... I'm not sure why the router doesn't "route" those ... the packets just get sent out on the local network device. ... (On my net, 10.1.1.1 is my gateway.) ...
    (Fedora)
  • Re: Xen in Etch, basic setup
    ... netmask 255.255.255.0 ... running as the gateway. ... Normally the eth1:1 and eth0 auto lines are ... was bouncing between this machine being the router and a wireless router ...
    (Debian-User)
  • Re: Xen in Etch, basic setup
    ... netmask 255.255.255.0 ... running as the gateway. ... Normally the eth1:1 and eth0 auto lines are ... was bouncing between this machine being the router and a wireless router ...
    (Debian-User)
  • Re: Changing default gateway from the command line (fc3)
    ... > If it is still set to use a netmask of 255.255.255.0 things are unlikely ... What sort of device is it (I'm guessing Dlink ... The current default gateway is a Cisco router. ...
    (uk.comp.os.linux)
  • Re: Gateway in a different net
    ... local network address space as determined by your IP and netmask. ... you have to pass through a gateway. ... Most likely you have your netmask set wrong. ... but should let you talk to that router. ...
    (comp.unix.bsd.freebsd.misc)