[1499] in linux-net channel archive
Re: Setting up for Ethernet
daemon@ATHENA.MIT.EDU (sct@dcs.ed.ac.uk)
Thu Dec 7 17:52:35 1995
From: sct@dcs.ed.ac.uk
Date: Wed, 6 Dec 95 18:29 GMT
To: Sean LeBlanc <leblancs@tsagate.com>
Cc: linux-net@vger.rutgers.edu
In-Reply-To: <199512041446.OAA01033@gateway.Tsagate.com>
Hi,
"Sean" == Sean LeBlanc <leblancs@tsagate.com> writes:
> We are using 10BaseT at our site, and I am trying to get Linux (card is
> Eagle NE2000) to recognize at least our Internet gateway.
Read the networking HOWTO's --- they cover most of the detail. The
two commands you need are "ifconfig" and "route".
> I've done some RTFM'ing, but I can't seem to get this to work. It
> seems that ifconfig sets up route tables, correct?
No, ifconfig just sets up a single network device. To add a route to
the network, you need the route(8) command.
Make sure that your networks (including loopback) are listed in
/etc/networks, then:
route add -net <your.ip.network.0> eth0
route add default gw <your.ip.gateway.addr>
That should do it.
For trouble-shooting, "route -a" is useful. Observing the use count
for a route will help you debug your routing tables. You might need
to add the "-n" flag to route to avoid doing name lookup if dns
resolution isn't working yet.
Cheers,
Stephen.
--
Stephen Tweedie <sct@dcs.ed.ac.uk>
Department of Computer Science, Edinburgh University, Scotland.