Ubuntu的基本网络配置

网卡配置文件: /etc /network/interfaces

        iface eth0 inet dhcp

        iface etho inet static

        address 10.189.9.200

        gateway 10.189.9.254

        netmask 255.255.255.0

DNS配置文件:  /etc /resolv.conf

        nameserver 202.96.209.5

        nameserver 202.96.209.133



重启网卡并应用新的配置:

    sudo /etc/init.d/networking restart

你可能感兴趣的:(ubuntu,网卡配置)