doc:appunti:linux:sa:etc_network_interfaces
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:linux:sa:etc_network_interfaces [2016/10/19 11:50] – [WiFi interfaces with WPA] niccolo | doc:appunti:linux:sa:etc_network_interfaces [2023/03/17 11:53] (current) – [/etc/network/interfaces] niccolo | ||
---|---|---|---|
Line 5: | Line 5: | ||
* **'' | * **'' | ||
* **'' | * **'' | ||
- | * **'' | + | * **'' |
* **''/ | * **''/ | ||
* **''/ | * **''/ | ||
Line 14: | Line 14: | ||
See this two pages: [[http:// | See this two pages: [[http:// | ||
- | Simple configuration with **automatic | + | **Automatic |
< | < | ||
allow-hotplug wlan0 | allow-hotplug wlan0 | ||
- | iface wlan0 inet manual | + | iface wlan0 inet dhcp |
#wpa-ssid MyESSID | #wpa-ssid MyESSID | ||
#wpa-psk MyWPASecret | #wpa-psk MyWPASecret | ||
Line 38: | Line 38: | ||
</ | </ | ||
- | ==== WiFi interfaces | + | **Static IP address, |
< | < | ||
Line 51: | Line 51: | ||
wireless-key off | wireless-key off | ||
</ | </ | ||
+ | |||
+ | ==== Static address, not managed by NetworkManager ==== | ||
+ | |||
+ | Debian (9 Stretch) installs the **network-manager** package, which handles the configuration of Ethernet interface automatically, | ||
+ | |||
+ | < | ||
+ | allow-hotplug enp2s0 | ||
+ | iface enp2s0 inet static | ||
+ | address 10.0.1.2 | ||
+ | netmask 255.255.255.0 | ||
+ | gateway 10.0.1.252 | ||
+ | dns-nameservers 144.76.67.15 8.8.8.8 | ||
+ | </ | ||
+ | |||
+ | You need the **resolvconf** package to make the // |
doc/appunti/linux/sa/etc_network_interfaces.1476870613.txt.gz · Last modified: 2016/10/19 11:50 by niccolo