How to add your knowledge

Configure basic network settings

    Login as root to edit the files described below in a text editor, and reboot the system for the new configuration to be used.

    You'll need the following from your network administrator:

    • A unique static IP address and host name for your system
    • The network gateway IP address.
    • The subnet mask of your network.
    • DNS server IP address(es).

    /etc/sysconfig/network

    Sample snippet from /etc/sysconfig/network.

    NETWORKING=yes
    HOSTNAME=workstation1
    GATEWAY="10.1.0.25"

    The GATEWAY value is used if no GATEWAY is defined in a network port’s configuration file.

    /etc/resolv.conf

    Sample snippet from /etc/resolv.conf

    nameserver 192.9.201.1

    /etc/hosts

    You may need to edit the loopback setting which may look like 127.0.0.1 vxfhost.localhost.localdomain localhost by default. Optionally add hostname / IP address pairs for other workstations on your network.

    Sample snippet from file:

    127.0.0.1 localhost.localdomain localhost
    192.168.0.100 workstation1

    /etc/sysconfig/network-scripts/ifcfg-ethn

    Edit /etc/sysconfig/network-scripts/ifcfg-ethn, where n specifies the ethernet port number, usually 0 for the first on-board port. If your workstation has an add-on ethernet card installed, the Linux operating system may assign ports eth0 through eth3 to the add-on card. In such a case, the on-board Ethernet ports become eth4 and eth5.

    Optionally set the GATEWAY if not set in /etc/sysconfig/network.

    Sample snippet from file:

    DEVICE="eth0"
    BOOTPROTO="static"
    IPADDR="192.168.1.100"
    NETMASK="255.255.0.0"
    ONBOOT="yes"
    GATEWAY=192.168.0.1

    You'll need the following from your network administrator:

    • A unique static IP address and host name for your system
    • The network gateway IP address.
    • The subnet mask of your network.
    • DNS server IP address(es).