fachinformatiker-wiki

it's easy when it's here

User Tools

Site Tools


linux:netzwerk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:netzwerk [2021/05/15 19:51] gsyslinux:netzwerk [2026/08/23 09:40] (current) – [Ubuntu] gsys
Line 1: Line 1:
-====== Netzwerk Konfiguration ======+====== Netzwerkkonfiguration ======
  
 ===== Nützliche Befehle ===== ===== Nützliche Befehle =====
  
 <code> <code>
-ping 192.168.1.1           #Dauerping +sysctl -w net.ipv4.ip_default_ttl=128   # TTL temp. setzen 128 = Windows default 
-ping -c 4 192.168.1.1      #4 Pings +ping 192.168.1.1                        # Dauerping 
-netstat -npl               #offene Ports auflisten +ping -c 4 192.168.1.1                   # 4 Pings 
-lsof -i | grep -e LISTEN   #offene Ports auflisten+netstat -npl                            # offene Ports auflisten 
 +netstat -tulpn                          # offene Ports auflisten 
 +ss -tulpn                               # offene Ports auflisten 
 +lsof -i | grep -e LISTEN                # offene Ports auflisten 
 +cat < /dev/tcp/127.0.0.1/22             # Teste Ports mit cat
  
 </code> </code>
  
-===== Debian 10 ===== +===== Debian ===== 
-/etc/network/interfaces+''/etc/network/interfaces.d'' \\ 
 +''/etc/network/interfaces'' 
 + 
 +<code> 
 +sudo systemctl restart networking.service 
 +</code>
  
 ==== Static ==== ==== Static ====
Line 29: Line 38:
 allow-hotplug ens192 allow-hotplug ens192
 iface ens192 inet static iface ens192 inet static
-        address 10.1.1.25/24 +  address 192.168.2.236 
-        gateway 10.1.1.30 +  netmask 255.255.255.0 
-        # dns-* options are implemented by the resolvconf package, if installed +  gateway 192.168.2.254 
-        dns-nameservers 10.1.1.32 +  dns-domain sweet.home 
-        dns-search oes.ml-bw.de +  dns-nameservers 192.168.2.254 1.1.1.1 8.8.8.8
 </code> </code>
  
 +<code>
 +sudo ip addr add 123.222.111.123 dev ens192             #temporär 2. IP hinzufügen (bis reboot)
 +</code>
 ==== DHCP ===== ==== DHCP =====
 <code> <code>
Line 52: Line 63:
 iface ens192 inet dhcp iface ens192 inet dhcp
  
 +</code>
 +
 +===== Ubuntu =====
 +
 +''/etc/netplan'' \\
 +''/etc/netplan/50-cloud-init.yaml''
 +
 +<code>
 +netplan status -a
 +netplan apply
 </code> </code>
  
linux/netzwerk.1621101091.txt.gz · Last modified: (external edit)