Linux/IPv4: Difference between revisions
Appearance
< Linux
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
== /etc/network/interfaces == | |||
* dhcp | * dhcp | ||
<blockquote> | <blockquote> | ||
| Line 5: | Line 6: | ||
</pre> | </pre> | ||
</blockquote> | </blockquote> | ||
* static | * static | ||
<blockquote> | <blockquote> | ||
| Line 20: | Line 18: | ||
[[Category:Linux/Network]] | [[Category:Linux/Network]] | ||
[[Category:Linux]] | [[Category:Linux]] | ||
== netplan (Ubuntu 18.04+) == | |||
* | |||
Revision as of 13:24, 4 December 2018
/etc/network/interfaces
- dhcp
iface eth0 inet dhcp
- static
iface eth0 inet static
address 192.168.0.97
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1 10.10.0.2