ក្រុមការងារយើងខ្ញុំនិងខិតខំសិក្សារស្រាវជ្រាវចំនេះដឹងបន្ថែមទៀតសំរាប់លោកអ្នក សូមអរគុណសំរាប់ការគាំទ្រ !

3.1 Linux Network Management

3.1 Linux Network Management

Show IP Address

#ifconfig



ens33: ( ethernet network service ) 33 is ID number.
lo : loopback network .

Configure IP Address 

#vi /etc/sysconfig/network-scripts/ifcfg-eth33
           BOOTPROTO=static
           IPADDR=192.168.1.2
           NETWORK=255.255.255.0
           GATEWAY=192.168.1.1




Configure/Verify DNS Resolver

#vi /etc/resolv.conf
         Nameserver 8.8.8.8
#ping google.com
#nslookup (yum -y install bind-utils)

Configure/Verify local DNS Name

#vi /etc/hosts
            192.168.1.2   centos.test.local
#ping centos.test.local

Configure/Verify Hostname
#hostname centos
#hostname

Restart Service

#service network restart


EmoticonEmoticon