Linux-Manual

Ubuntu 网络相关设置问题

网络配置

设置局域网静态 IP(固定 IP)

auto eth0
# iface eth0 inet dhcp
# 注释上面默认配置的 DHCP 设置,改为下面这个 static
iface eth0 inet static 
address 192.168.1.103 # IP 地址
netmask 255.255.255.0 # 子网掩码
gateway 192.168.1.1 # 网关

设置DNS服务器

配置 VPN(作为开发者经常用):

其他常见问题

资料: