<acronym id='0tj4h'><em id='0tj4h'></em><td id='0tj4h'><div id='0tj4h'></div></td></acronym><address id='0tj4h'><big id='0tj4h'><big id='0tj4h'></big><legend id='0tj4h'></legend></big></address>
    <i id='0tj4h'><div id='0tj4h'><ins id='0tj4h'></ins></div></i>

    <span id='0tj4h'></span>

    <dl id='0tj4h'></dl>
    <i id='0tj4h'></i>
      1. <fieldset id='0tj4h'></fieldset>
      2. <tr id='0tj4h'><strong id='0tj4h'></strong><small id='0tj4h'></small><button id='0tj4h'></button><li id='0tj4h'><noscript id='0tj4h'><big id='0tj4h'></big><dt id='0tj4h'></dt></noscript></li></tr><ol id='0tj4h'><table id='0tj4h'><blockquote id='0tj4h'><tbody id='0tj4h'></tbody></blockquote></table></ol><u id='0tj4h'></u><kbd id='0tj4h'><kbd id='0tj4h'></kbd></kbd>

        <code id='0tj4h'><strong id='0tj4h'></strong></code>
          <ins id='0tj4h'></ins>

          1. Ubuntu 网卡ip设置

            • 时间:
            • 浏览:6
            • 来源:124软件资讯网

              1.单网卡配单IP(普遍)

                vi /etc/network/interface

                auto eth0

                iface eth0 inet static

                address IP

                netmask 子网掩码

                gateway 网关

                2.单网卡双IP (情形较少  ,多用于区分服务或者宁静隐藏)

                vi /etc/network/interface

                auto eth0:0

                iface eth0:0 inet static

                address IP

                netmask 子网掩码

                gateway 网关

                auto eth0:1

                iface eth0:1 inet static

                address IP

                netmask 子网掩码

                gateway 网关

                3.双网卡双IP(应用情形较多  ,一样平常为一个内网一个为外网)

                auto eth0

                iface eth0 inet static

                address IP

                netmask 子网掩码

                gateway 网关

                auto eth1

                iface eth1 inet static

                address IP

                netmask 子网掩码

                gateway 网关

                综上  ,设置后生存推出  ,一样平常需要重启下网卡才气设置生效  ,要领许多 ,好比ifdown eth0  ,ifup eth0 ,最直接的要领直接在终端键入/etc/init.d/networking restart www.kissgz.com

                至于DNS,都是一样的  ,如下

                vi /etc/resolv.conf(现实系统默认的并不存在resolv.conf该文件  ,属于自己建立)

                nameserver 主DNS

                nameserver 后备DNS