linux網絡設置

網絡配置:vim

1 IP配置  臨時IP #ifconfig eth0 192.168.136.251  網絡

          永久IP #setup rest

                 #vim /etc/sysconfig/network-scipts/ifcfg-eth0server

                  onboot=yesip

                 #service network restartci

                 #ifconfig it

          廣播命令#wall  "reboot 17:30"class


2 主機名配置 臨時 #hostname lamp登錄

                  #exit配置

                 在登陸

             永久修改#vim /etc/sysconfig/network

                     HOSTNAME=lamp

3 DNS設置1)   #vim /etc/resolv.conf

            nameserver 8.8.8.8 

         2)   #setup

相關文章
相關標籤/搜索