Re: Configure DSL and Linux network
From: Bit Twister (BitTwister_at_mouse-potato.com)
Date: Thu, 16 Jun 2005 21:47:02 -0500
On 16 Jun 2005 19:32:04 -0700, email@example.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
> route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0
> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
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
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.
$ cat /etc/resolv.conf
> 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.