setting up LAN with linux
From: Alexandre Netto (avbn2003_at_netscape.net)
Date: 29 Nov 2003 19:55:50 -0800
Firstly, let me say that my networking knowledge is about nule,
needing advice on setting it up. The connection is made with a cental
machine that allows me to access the internet through a gateway. It's
not a ISP in the sense i've no email, etc. I've recently changed to
Linux (~6 months), dont have much experience with it.
Now to the problem, within WinME all i need to access the internet is
setting my Ethernet Adapter to use TCP/IP and setting it by assigning
a Fixed IP address and a netmask (e.g. 220.127.116.11 - 255.255.255.0)
assigning the gateway (e.g. 18.104.22.168) and the DNS (2 IP numbers,
the host (this one can be anything) and the domain).
Now within Linux there's trouble configuring an ipv4 connection. The
first day i could make connection sometimes using, strange enough,
dhcpcd. But then it wouldn't work anymore all suddenly. So i tried to
configure it with ifconfig and route. All that i tried didn't work,
iam probably mistepping.. that is what i tried:
ifconfig eth0 22.214.171.124 netmask 255.255.255.0 broadcast
the route command outputs:
IP:126.96.36.199 GW: * ...
i try to create a gateway with:
route add default gw 188.8.131.52
but then the message "Network unreachable".
I tried also setting:
route add -host 184.108.40.206
but things dont work with it neither..
resolv.conf has the 2 ip numbers, and hosts has my host and domain.
I used linuxconf to set all networking parameters but all with no
result.. Tried to install Webmin but it just dont work when i try to
access it with Netscape or Konqueror (e.g.: "http://avbn2003:10000")
-> page unreachable error.
I am sure the hardware is all configured properly, i use an ethernet
card provided within (onboard) a motherboard ASUS A7VX-X. The ethernet
card is a VIA Rhine 10/100 Mbps, and loading its module was
troubleless since the ASUS CD provides a linux driver for it (also it
is already available in the 2.4.5 kernel), linux loads it and assigns
an IRQ and HW address, ok.