[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: redhat--config-network corrupts my hosts-file



At 10:56 AM 2/26/2004, Harry Hoffman wrote:
>Don't run "redhat-config-network" :-)
>All of the files are in /etc/sysconfig/

I agree.  Below are my personal notes. You requirements may vary.  This is a guide, how I did it, not gospel or exactness.  Hope it helps.

Network Configuration Notes
---------------------------
TOOLS:
        chkconfig network on
        service network restart
        ifconfig

DOCS:
        http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/ch-networkscripts.html
        /usr/share/doc/initscripts-<version>/sysconfig.txt

FILE: /etc/hosts
        127.0.0.1       localhost.localdomain localhost
        192.168.1.2     me.xyz.com me

FILE: /etc/resolv.conf
        search xyz.com
        domain xyz.com
        nameserver 192.168.1.200

FILE: /etc/sysconfig/network
        NETWORKING=yes
        HOSTNAME=me
        GATEWAY=192.168.1.1
        GATEWAYDEV=eth0
        #DOMAINNAME=xyz.com             # Obsoleted
        #FORWARD_IPV4=no                # Obsoleted

FILE: /etc/sysconfig/network-scripts/ifcfg-eth0
        DEVICE=eth0
        BOOTPROTO=none
        HWADDR=<custom>
        IPADDR=192.168.1.2
        NETMASK=255.255.255.0
        BROADCAST=192.168.1.255         # To be obsoleted
        NETWORK=192.168.1.0             # To be obsoleted
        ONBOOT=yes
        TYPE=Ethernet
        USERCTL=no
        PEERDNS=no




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]