Netzwerk: Unterschied zwischen den Versionen

Aus Info-Theke
Zur Navigation springen Zur Suche springen
Zeile 2: Zeile 2:


= Links =
= Links =
* [[Shorewall6]]


= Using command IP =
= Using command IP =

Version vom 1. August 2019, 16:00 Uhr

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

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

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