Re: New Thread: ethernet and Shaw Cable


Subject: Re: New Thread: ethernet and Shaw Cable
From: Carlos Xavier (cbastos@embratel.net.br)
Date: Wed Feb 21 2001 - 02:43:33 MST


Donn wrote:
>

> The difficulty as I see it is that I can set up my machine as both a
> server and client while operating under Linux. There are many more
> settings to configure, including the connection to the ethernet card
> itself and this is where I have some confusion. I'm also dealing with a
> few different methods of entering through the different interfaces.
> Perhaps my best way would be to get a listing of the affected files that
> contain the necessary information and where they should reside so that I
> could tweak to my particular setup.

Hi, maybe this can help you to setup your network...
I'll try to describe the files

/etc/sysconfic/network - at this file you setup your gateway
NETWORKING=yes
FORWARD_IPV4=false #if you have more interfaces this should be
true
HOSTNAME=host.yourdomain.com
DOMAINNAME=yourdomain.com
GATEWAY=ip.of.the.gateway
GATEWAYDEV=eth0 #this could be one ppp connection

/etc/sysconfig/network-scripts/ #in this directory you have the config.
of your interfaces

/etc/sysconfig/network-scripts/ifcfg-eth0 #it can be configured
statically or via dhcp
if you have more than one interface there will be one ifcfg-ethX for
each interface
DEVICE=eth0
IPADDR=ip.of.the.host
NETMASK=netmask.of.the.net
NETWORK=first-address.of.the.net
BROADCAST=last-address.of.the.net
ONBOOT=yes

this one is for dhcp
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes

/etc/resolv.conf #here you point your provider dns server
search your.provider.domain.com
nameserver ip.of.dns.server

/etc/named.conf #you set up this in order to resolve dns queries for
the machines behind yours

// generated by named-bootconf.pl

options {
        directory "/var/named";
        /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below. Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
        // query-source address * port 53;
        forward only;
        forwarders{
                ip.of.dns.server;
                        };
};

//
// a caching only nameserver config
//
zone "." {
        type hint;
        file "named.ca";
};

zone "0.0.127.in-addr.arpa" {
        type master;
        file "named.local";
};

if you intend to share your connection with machines behind yours you
must use ipchains. if you need i can send you one script that allows
this.

Carlos



This archive was generated by hypermail 2a24 : Wed Feb 21 2001 - 02:44:38 MST