ubuntu server 怎么设置静态ip

2024-11-18 01:21:39
推荐回答(1个)
回答(1):

在/etc/network/interfaces中设置
gedit /etc/network/interfaces

输入
iface eth0 inet static
address 192.168.1.3
netmask 255.255.255.0
gateway 192.168.1.1
auto eth0