mynote/linux/interface.md
2020-07-11 22:48:23 +08:00

14 lines
205 B
Markdown

# /etc/network/interface 配置
## static ip
``` bash
auto eth0
iface eth0 inet static
address 192.168.2.34
netmask 255.255.255.0
gateway 192.0.2.254
dns-nameservers 114.114.114.114
```