您的位置:首页 > 其它

ubuntu系统下设置静态IP

2014-11-04 09:17 141 查看
修改 /etc/network/interfaces文件 添加以下内容

# The loopback network interface

auto lo eth0

iface lo inet loopback

# The primary network interface

allow-hotplug eth0

iface eth0 inet static

        address 192.168.0.200

        netmask 255.255.255.0

        gateway 192.168.0.1

allow-hotplug eth0:1

iface eth0:1 inet static

        address 192.168.1.100

        netmask 255.255.255.0

        network 192.168.1.0

        broadcast 192.168.1.1
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: