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

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

 



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


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux