Rob,

Assuming you have netgear NIC's as well as a netgear hub:

/etc/conf.modules
-----------------
alias eth0 tulip

/etc/sysconfig/network-scripts/ifcfg-eth0
-----------------------------------------
#If you use the quote marks, then RedHat's netconfig and linuxconf
# can each be used (they _can_ be used interchangably without hurting 
# each other).
DEVICE="eth0"
IPADDR="192.168.1.1"
NETMASK="255.255.255.0"
HOSTNAME=myhost
ONBOOT="yes"

/etc/hosts
----------
127.0.0.1 localhost localhost.localdomain
192.168.1.1 myhost myhost.mydomain.com
192.168.1.2 myclient myclient.mydomain.com

/etc/resolv.conf
----------------
search mydomain.com
nameserver xxx.xxx.xxx.xxx #your ISPs nameserver

I can't remember where Redhat would have you put special routing 
instructions--there's a file somewhere, probably in /etc/sysconfig/????

For masquerading, use a separate script, or the basic
hack of adding this to:
/etc/rc.d/rc.local
------------------
#Please add more to this, it is a minimalist script only!!
/sbin/ipfwadm -F -p deny
/sbin/ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0

On your client machines to the masquerading machine, you need to add a 
route to find the gateway that's doing the masquerading:
on linux: route add -net 0.0.0.0 gateway eth0 #or something like that
on windoze:
Enter the ip of the linux box as the default route, or:
C:\>route add 0.0.0.0 mask 0.0.0.0 192.168.1.8

If you're doing samba, you'll want an /etc/lmhosts, which
is similar to /etc/hosts.

You can use "ifup eth0" to bring the interface up, and
"ifdown eth0" to bring it down.  By the way, 192.168.0.0 may or may
not be considered a valid network, but it does seem to work in Linux 
and Windoze; still, I'd avoid it because many people seem to question 
it's validity. 

Ralph

At 05:09 PM 1/8/00 -0800, Rob wrote:
>I'm slowly getting both my systems ready for networking.  I've got
>the right drivers in place for my NIC cards.  I went and bought a
>Netgear hub.  
>
>After I connect the cables, what next?  
>
>I saw somewhere that I need to have a
>/etc/sysconfig/network-scripts/ifcfg-eth0 file... 
>
>Anyone have an example of what goes in there?  I read the Ethernet
>HOWTO, and surprisingly, it didn't tell me much about that.

Reply via email to