Netzwerk
Kategorie:Netzwerk
Links
Using command IP
# Geräte auflisten: ip addr show # IP-Adresse zuweisen ip addr add 192.168.50.5 dev eth1 # IP-Adresse aktivieren ip link set eth1 up # IP-Adresse entziehen: ip addr del 192.168.50.5/24 dev eth1 # == Routing ip route show # Add a static route: ip route add 10.10.20.0/24 via 192.168.50.100 dev eth0 # Remove a static route: ip route del 10.10.20.0/24 # === ip link dev eth0 { up | down }
- IP6:
ip -6 addr add 2001:0db8:0:f101::1/64 dev eth0 ip -6 addr del 2001:0db8:0:f101::1/64 dev eth0 ip -6 route show dev eth0 ip -6 route add default via 2001:0db8:0:f101::1 ip -6 route del default via 2001:0db8:0:f101::1 ip -6 route add default dev eth0 metric 1 ip -6 route del default dev eth0
Permanente Route definieren
- /etc/networking/interfaces
auto eth0 iface eth0 inet static address 192.168.50.2 netmask 255.255.255.0 gateway 192.168.50.100 #########{Static Route}########### up ip route add 10.10.20.0/24 via 192.168.50.100 dev eth0
DNS configurieren
- /etc/resolv.conf
domain crown.infeos.de search infeos.de nameserver 213.136.95.10
Netzwerkmanager
Konfiguration
Ethernet
/etc/NetworkManager/system-connections/enp2s0
[connection] id=enp2s0 uuid=8ab2397e-98bc-4bfc-97be-8c435b32deb5 type=ethernet interface-name=enp2s0 permissions= timestamp=1560831441 [ethernet] mac-address=8C:16:45:92:9A:C6 mac-address-blacklist= [ipv4] address1=192.168.2.50/24,192.168.2.3 dns-priority=100 dns-search= may-fail=false method=manual [ipv6] addr-gen-mode=stable-privacy dns-priority=100 dns-search= ip6-privacy=0 method=ignore
WLan
/etc/NetworkManager/system-connections/zweisiedler
[connection] id=Zweisiedler uuid=bbe62b85-30b3-44ab-a45e-78384b5ba260 type=wifi permissions=user:hm:; timestamp=1561554161 [wifi] mac-address=50:5B:C2:E9:38:01 mac-address-blacklist= mode=infrastructure seen-bssids=C0:25:06:64:D3:B6; ssid=Zweisiedler [wifi-security] key-mgmt=wpa-psk psk=<cleartext-password> [ipv4] dns-search= method=auto [ipv6] addr-gen-mode=stable-privacy dns-search= ip6-privacy=0 method=auto