4.3 KiB
4.3 KiB
Networking
Hosts
sudo vim /etc/hosts
127.0.0.1 localhost
127.0.1.1 <hostname>.local <hostname>
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
#
192.168.1.254 mabbox.bytel.fr
# local
192.168.1.10 bikinibottom
192.168.1.11 bob
192.168.1.12 carlo
192.168.1.13 gary
192.168.1.14 sandy
192.168.1.15 krabs
192.168.1.16 sheldon
192.168.1.17 bernie
#
192.168.1.53 recalbox
# Optional
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section
Broadcom (WiFi)
Réf. : https://wiki.debian.org/WiFi/HowToUse
cd /lib/firmware/brcm/
ln -s brcmfmac43455-sdio.AW-CM256SM.txt brcmfmac43455-sdio.pine64,rockpro64-v2.0.txt
ln -s brcmfmac43455-sdio.AW-CM256SM.txt brcmfmac43455-sdio.pine64,rockpro64-v2.1.txt
sudo rmmod brcmfmac
sudo modprobe brcmfmac
sudo vim /etc/systemd/network/25-wlan.network
[Match]
Name=wlan0
[Network]
DHCP=ipv4
[DHCP]
UseDNS=yes
sudo vim /etc/network/interfaces.d/local
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# allow-hotplug end0
auto wlan0
iface wlan0 inet static
address 192.168.1.xx
netmask 255.255.255.0
gateway 192.168.1.254
dns-nameservers 1.1.1.1
dns-nameservers 1.0.0.1
# This is an autoconfigured IPv6 interface
iface end0 inet6 auto
sudo vim /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
ctrl_interface=DIR=/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="BikiniBottom"
#psk="transatlantique"
psk=e5b692f43ab186494b7f37949d9084e1c0e97fd74d8f14a6325be2e62309067e
}
sudo systemctl enable --now wpa_supplicant@wlan0.service
sudo su -l -c "systemctl enable --now systemd-networkd"
Ethernet
Debian
sudo vim /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
sudo vim /etc/network/interfaces.d/local
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# allow-hotplug end0
auto end0
iface end0 inet static
address 192.168.1.12
netmask 255.255.255.0
gateway 192.168.1.254
dns-nameservers 45.90.28.0
dns-nameservers 45.90.30.0
# This is an autoconfigured IPv6 interface
iface end0 inet6 auto
sudo systemctl restart networking.service
Ubuntu
sudo vim /etc/netplan/50-cloud-init.yaml
network:
version: 2
renderer: networkd
ethernets:
end0:
dhcp4: no
addresses:
- 192.168.1.13/24
routes:
- to: default
via: 192.168.1.254
nameservers:
addresses: [45.90.28.0, 45.90.30.0]
sudo netplan apply
DNS Servers
| DNS | Adresses IPv4 | Adresses IPv6 |
|---|---|---|
| 1 [Cloudflare 1.1.1.1] | 1.1.1.1 1.0.0.1 |
2606:4700:4700::1111 2606:4700:4700::1001 |
| 2 Cisco OpenDNS Home | 208.67.222.222 208.67.220.220 |
2620:119:35::35 2620:119:53::53 |
| 3 Neustar UltraDNS Public | 64.6.64.6 64.6.65.6 |
2620:74:1b::1:1 2620:74:1c::2:2 |
| 4 NextDNS | 45.90.28.0 45.90.30.0 |
2a07:a8c0:: 2a07:a8c1:: |
| 5 Google Public DNS | 8.8.8.8 8.8.4.4 |
2001:4860:4860::8888 2001:4860:4860::8844 |
| 6 Quad9 | 9.9.9.9 149.112.112.112 |
2620:fe::fe, 2620:fe::9 |
| 7 Comodo Secure DNS | 8.26.56.26 8.20.247.20 |
– |
| 8 Yandex.DNS | 77.88.8.8 77.88.8.1 |
2a02:6b8::feed:0ff 2a02:6b8:0:1::feed:0ff |
| 9 SafeDNS | 195.46.39.39 195.46.39.40 |
2001:67c:2778::3939 2001:67c:2778::3940 |