Netzwerk: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(6 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 2: | Zeile 2: | ||
= Links = | = Links = | ||
* [[TcpDump]] | |||
* [[Shorewall6]] | |||
* [[Proxmox-Netzwerk]] | |||
* [[IP6]] | |||
* [[Dig]] | |||
= Using command IP = | = Using command IP = | ||
Zeile 19: | Zeile 24: | ||
# Remove a static route: | # Remove a static route: | ||
ip route del 10.10.20.0/24 | ip route del 10.10.20.0/24 | ||
# === | |||
ip link dev eth0 { up | down } | |||
</pre> | |||
* IP6: | |||
<pre> | |||
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 | |||
</pre> | </pre> | ||
== Permanente Route definieren == | == Permanente Route definieren == | ||
Zeile 30: | Zeile 47: | ||
#########{Static Route}########### | #########{Static Route}########### | ||
up ip route add 10.10.20.0/24 via 192.168.50.100 dev eth0 | up ip route add 10.10.20.0/24 via 192.168.50.100 dev eth0 | ||
</pre> | |||
== DNS configurieren == | |||
* /etc/resolv.conf | |||
<pre> | |||
domain crown.infeos.de | |||
search infeos.de | |||
nameserver 213.136.95.10 | |||
</pre> | </pre> | ||
Aktuelle Version vom 28. November 2023, 14:53 Uhr
Kategorie:Netzwerk
Links[Bearbeiten]
Using command IP[Bearbeiten]
# 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[Bearbeiten]
- /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[Bearbeiten]
- /etc/resolv.conf
domain crown.infeos.de search infeos.de nameserver 213.136.95.10
Netzwerkmanager[Bearbeiten]
Konfiguration[Bearbeiten]
Ethernet[Bearbeiten]
/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[Bearbeiten]
/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