Linux Network Setup

IP

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.147
netmask 255.255.255.0
gateway 192.168.0.1

DNS

1
2
3
4
/etc/resolv.conf
nameserver 1.1.1.1
nameserver 8.8.8.8

文章作者: Barry
文章链接: http://blog.purplelin.com/2021/03/21/LinuxNetWork/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Barry