如何更换ubuntu系统的ip地址

2007-07-12 阅读 197

编辑网络配置文件/etc/network/interfaces,就可以更换Ubuntu系统的ip地址了。具体文件内容如下。

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
         address 192.168.10.12
         netmask 255.255.0.0
         gateway 192.168.10.1

ubuntu 更换 ip

更新于 2023年03月28日