Re: Configure DSL and Linux network

From: Bit Twister (BitTwister_at_mouse-potato.com)
Date: 06/17/05


Date: Thu, 16 Jun 2005 21:47:02 -0500

On 16 Jun 2005 19:32:04 -0700, linuxquestion@yahoo.com wrote:

> cat /etc/hosts
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> 192.168.2.3 red.testrac.com red
> 192.168.2.2 white.testrac.com white
> 127.0.0.1 localhost.localdomain localhost
>

looks ok

>
> route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0
> eth0
> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
> eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
> lo

No gateway set here, that is bad. See the G in my example.
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 10 0 0 eth0
0.0.0.0 192.168.2.1 0.0.0.0 UG 10 0 0 eth0

>
>
> cat /etc/sysconfig/network
> NETWORKING=yes
> HOSTNAME=red.testrac.com

I set GATEWAY and GATEWAYDEV in my Mandrake linux. No idea what you
need since you failed to provide which linux distro you are running.

>
>
> ifconfig -a
> eth0 Link encap:Ethernet HWaddr 00:07:E9:3C:E3:24
> inet addr:192.168.2.3 Bcast:192.168.2.255

Hey, link is up, that is good.

> cat /etc/resolv.conf
> search testrac.com

That is sad, you need at lease one nameserver line with an ip address.
Example:
$ cat /etc/resolv.conf
nameserver 63.240.276.198
nameserver 204.127.99.8

> cat /etc/dhcpd.conf
> cat: /etc/dhcpd.conf: No such file or directory

do not need one if static values are used because you are behind a router.

> route add default gw 192.168.1.1

Hmmm, I would use a straigh throug cable between dsl router and pc
to get everything running, then I would hook in the wireless.



Relevant Pages

  • Re: Configure DSL and Linux network
    ... > route -n ... I set GATEWAY and GATEWAYDEV in my Mandrake linux. ... you need at lease one nameserver line with an ip address. ... I would use a straigh throug cable between dsl router and pc ...
    (comp.os.linux.networking)
  • Re: Configure DSL and Linux network
    ... > route -n ... I set GATEWAY and GATEWAYDEV in my Mandrake linux. ... you need at lease one nameserver line with an ip address. ... I would use a straigh throug cable between dsl router and pc ...
    (linux.redhat.install)
  • Re: Configure DSL and Linux network
    ... > route -n ... I set GATEWAY and GATEWAYDEV in my Mandrake linux. ... you need at lease one nameserver line with an ip address. ... I would use a straigh throug cable between dsl router and pc ...
    (alt.os.linux)
  • Re: Configure DSL and Linux network
    ... > route -n ... I set GATEWAY and GATEWAYDEV in my Mandrake linux. ... you need at lease one nameserver line with an ip address. ... I would use a straigh throug cable between dsl router and pc ...
    (comp.os.linux.hardware)
  • Re: VPN and remote gateway
    ... > It seems you use the wrong route add command. ... > when the VPN connection is established. ... > | using the remote network as my gateway. ...
    (microsoft.public.windows.server.sbs)