Centos - Linux network settings Command lines







  • ifconfig -a
  • vi /etc/sysconfig/network-scripts/ifcfg-eth0

    DHCPCLASS=
    IPADDR=192.168.1.100
    NETMASK=255.255.255.0
    ONBOOT=yes
    BOOTPROTO=STATIC


  • vi /etc/sysconfig/network
    Ensure GATEWAY=192.168.1.1 has been set


  • vi /etc/resolv.conf
    nameserver 8.8.8.
    nameserver 8.8.4.4


  • /etc/init.d/network restart

info site

Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.

No comments:

Post a Comment