[ale] ethernet

ari myo at thy.dyn.ml.org
Sat Sep 12 15:54:00 EDT 1998


the way the entire network needs to be set up is this:

on the linux machine, configuring the local network for use on eth1:

/sbin/ifconfig eth1 <ip> broadcast <broadcast> netmask <netmask>

where:

<ip> is the ip address of that same linux machine, on the local network
(something like 192.168.1.1, or some other ip address from a nonexistent
network),

<broadcast> is the broadcast of that nonexistent network (in the example
above, it would be 192.168.1.255)

<netmask> is your netmask, usually 255.255.255.0.

you'll want to set all the machines on the local network to ip's on your nonexistent networks (i.e. 192.168.1.[2-254]

then, you set up your routes.

/sbin/route add -net <network> netmask <netmask> eth1

<network> is the network address of your local network (i.e. 192.168.1.0).

<netmask> is the same as your previous netmask (i.e. 255.255.255.0).

/sbin/ifconfig -a (on the linux machine) should show something similar to the
following:

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:536 errors:0 dropped:0 overruns:0 frame:0
          TX packets:536 errors:0 dropped:0 overruns:0 carrier:0 coll:0

eth1      Link encap:Ethernet  HWaddr 00:E0:C5:F4:05:CF  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 coll:0
          Interrupt:11 Base address:0xec80 

(loopback should have been set up previously; if it wasn't, it's something you
should address... but it won't affect your network.  you said you can ping
your local machine, so it should be fine)

at this point, your local network should be set up, and you should be able to
ping your various local machines.


what a messy-looking e-mail.  hrm.

ari


Adam Teja (arteja at yahoo.com) said this stuff:

> I've got a Redhat 4.2 Linux box that I'm trying to get
> to share a cable modem with other machines. 
> 
> I've gotten it to the point where it can actually see 
> two ethernet cards; eth0 is using DHCP from the cable modem and eth1
> thinks it is an IP address...
> 
> the problem.. I can't get my NT machine to ping eth1 on the Linux box
> or vice a versa... The linux box can see itself (duh..) of I ping it
> from it.
> 
> do I need to set up routes? or is that only with DNS?
> 
> what do I need to do to get the LAN running? I'd like to atleast get
> my machines talking before I attempt to
> do the IP masquerading...
> 
> 
> any help would be appreciated...
> 
> Adam
> 
> 
> 
> 
> ==
> ******************************************************************
> all my email accounts are being forwarded to web-mail...
> 
> you may still email to:
> ateja at acm.org, ateja at spsu.edu, arteja at mediaone.net
> arteja at mindspring.com
> 
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com






More information about the Ale mailing list