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

相关文章
相关标签/搜索