linux中配置网络

摘自余洪春《构建高可用Linux服务器》

    查看网卡:lspci |grep Ether

    配置网卡的IP地址: vi /etc/sysconfig/network-scripts/ifcfg-eth0  (Redhat系列),配完后执行server network restart即可

    修改机器名:vim /etc/sysconfig/network

    配置DNS:vi /etc/resolv.conf

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.