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 [2011/11/15 10:56] – [/etc/network/interfaces] niccolo | doc:appunti:linux:sa:etc_network_interfaces [2023/03/17 11:53] (current) – [/etc/network/interfaces] niccolo | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== / | ====== / | ||
- | The manpage | + | The reference documents |
+ | * **'' | ||
+ | * **'' | ||
+ | * **'' | ||
+ | * **''/ | ||
+ | * **''/ | ||
===== Examples ===== | ===== Examples ===== | ||
Line 9: | Line 14: | ||
See this two pages: [[http:// | See this two pages: [[http:// | ||
- | With this configuration the WiFi connection will be not managed by NetworkManager: | + | **Automatic IP address and WPA security** (credential can be in the same file, or in '' |
+ | |||
+ | < | ||
+ | allow-hotplug wlan0 | ||
+ | iface wlan0 inet dhcp | ||
+ | #wpa-ssid MyESSID | ||
+ | #wpa-psk MyWPASecret | ||
+ | wpa-conf / | ||
+ | </ | ||
+ | |||
+ | **Static IP address with WPA security**; with this configuration the WiFi connection will be not managed by NetworkManager: | ||
< | < | ||
Line 18: | Line 33: | ||
gateway 10.0.0.189 | gateway 10.0.0.189 | ||
dns-nameservers 62.48.51.6 151.99.125.2 | dns-nameservers 62.48.51.6 151.99.125.2 | ||
- | wpa-ssid MyESSID | + | |
- | wpa-psk MyWPASecret | + | |
+ | wpa-conf / | ||
</ | </ | ||
+ | |||
+ | **Static IP address, without encryption**: | ||
+ | |||
+ | < | ||
+ | auto eth1 | ||
+ | iface eth1 inet static | ||
+ | address 192.168.0.191 | ||
+ | netmask 255.255.255.0 | ||
+ | gateway 192.168.0.249 | ||
+ | dns-nameservers 62.48.51.6 8.8.8.8 | ||
+ | wireless-essid MyESSID | ||
+ | wireless-mode Managed | ||
+ | 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.1321350974.txt.gz · Last modified: 2011/11/15 10:56 by niccolo