[ale] Interenet connection

Geoffrey esoteric at 3times25.net
Thu Feb 20 15:02:51 EST 2003


What does your network look like?  Point is, if the machine you are 
trying to get to the internet from has another machine sitting between 
it and the internet, then you are dealing with two gateways as follows:

machine1 <-> machine2 <-> internet


machine1 should see machine2 as it's gateway.  machine2 should see your 
internet providers gateway.

Are you using two different subnets?

Here is my route output for my machine:

Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
172.16.255.0    *               255.255.255.0   U     0      0        0 eth0
default         b.home.edu      0.0.0.0         UG    0      0        0 eth0

The b.home.edu machine is the way my other machines get across my dmz. 
The routing for b.home.edu is:

Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
dmz-edu         *               255.255.255.0   U     0      0        0 eth0
home-edu        *               255.255.255.0   U     0      0        0 eth1
loopback        *               255.0.0.0       U     0      0        0 lo
default         a.dmz.edu       0.0.0.0         UG    0      0        0 eth0

Note the default route for this machine has the gateway identified as 
a.dmz.edu . That machine is the machine that is connected to my dsl.


ChangingLINKS.com wrote:
> I tried putting in the IPaddress of the box I ping to get to the internet.
> I tried putting in the IP address of the ISPs nameserver.
> I tried putting in 192.168.0.1
> 
> None of those were successful. AND when I do that route -n I do NOT get a 
> 0.0.0.0 gateway.
> 
> Drew
> 
> On Thursday 20 February 2003 1:31 pm, Mike Lockhart wrote:
> 
>>do a 'cat /etc/sysconfig/network' and see if your gateway is set. If not
>>add it it then restart the network.  Might help *shrug*
>>
>>On Thu, 2003-02-20 at 14:20, ChangingLINKS.com wrote:
>>
>>>Still no luck with the "manual setting:"
>>>
>>>root]# route add default gw 192.168.123.120 metric 1
>>>root]# /etc/init.d/network restart
>>>Shutting down interface bond0:                             [  OK  ]
>>>Shutting down interface eth0:                              [  OK  ]
>>>Shutting down interface eth1:                              [  OK  ]
>>>Setting network parameters:                                [  OK  ]
>>>Bringing up interface lo:                                  [  OK  ]
>>>Bringing up interface bond0:                               [  OK  ]
>>>Bringing up interface eth0:                                [  OK  ]
>>>Bringing up interface eth1:                                [  OK  ]
>>>[root at links root]# ping www.yahoo.com
>>>ping: unknown host www.yahoo.com
>>>root]#
>>>
>>>Traffic on the LAN is fine. Even running an NFS server. Just can't get 
> 
> out.
> 
>>>Please help.
>>>
>>>Drew
>>>
>>>On Thursday 20 February 2003 7:17 am, Joe wrote:
>>>
>>>>"ChangingLINKS.com" <x3 at ChangingLINKS.com> writes:
>>>>
>>>>
>>>>>On Wednesday 19 February 2003 3:55 pm, cfowler wrote:
>>>>>
>>>>>>#1) Make sure the default gqteway is setup
>>>>>
>>>>>How? Ok. I was looking for a gQteway file for a while. Ok. I am pretty 
>>>
>>>sure 
>>>
>>>>>that it is a problem with setting up the "gateway."  Where do I put 
> 
> the IP 
> 
>>>>>for it (tried google and man -k)?
>>>>
>>>>Your DHCP server should set this up. If you have to do it manually,
>>>>do "route add default gw <IP address of gateway> metric 1"
>>>>at the command line. IMPORTANT: the <IP address of gateway> has
>>>>to be the address of the gateway ON YOUR LOCAL LAN, *not* the
>>>>address of the gateway interface facing your internet.
>>>>
>>>>I am clue-free about the organization of Redhat's startup
>>>>scripts (I'm a Slackware man from way back), but it's
>>>>certainly possible to add that command to some script to
>>>>make it happen on every boot. But again, I'd say you need
>>>>to get DHCP working properly if you really want to resolve
>>>>this.
>>>>
>>>>
>>>>>>#2) Make sure resolv.conf is setup. etc/resolv.conf:
>>>>>
>>>>>domain domain.suffix
>>>>>nameserver 24.93.40.62
>>>>>nameserver  24.93.40.63
>>>>>search domain.suffix
>>>>
>>>>Again, if the machine is set up to configure itself via DHCP,
>>>>then DHCP should populate resolv.conf automagically. I
>>>>assume the name "domain.suffix" has been changed to protect
>>>>the innocent? (I bet it's really something like
>>>>"austin.rr.com"?)
>>>>
>>>>Are you using a black-box gateway unit (like a Linksys or
>>>>something)? Or is your gateway a PC firewall?
>>>>
>>>>Cheers,
>>>>
>>>>-- Joe
>>>>_______________________________________________
>>>>Ale mailing list
>>>>Ale at ale.org
>>>>http://www.ale.org/mailman/listinfo/ale
>>>>
>>>>
>>>
>>>-- 
>>>Wishing you Happiness, Joy and Laughter,
>>>Drew Brown
>>>http://www.ChangingLINKS.com
>>>_______________________________________________
>>>Ale mailing list
>>>Ale at ale.org
>>>http://www.ale.org/mailman/listinfo/ale
>>>
>>
>>
>>_______________________________________________
>>Ale mailing list
>>Ale at ale.org
>>http://www.ale.org/mailman/listinfo/ale
>>
>>
> 
> 

-- 
Until later: Geoffrey		esoteric at 3times25.net

The latest, most widespread virus?  Microsoft end user agreement.
Think about it...

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list