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
Last revisionBoth sides next revision
linux:network [2020/01/14 11:53] – [Test] tmadelinux:network [2024/01/10 16:32] – [Test] tmade
Line 22: Line 22:
   route add -host hostname.domain gw 192.168.1.1   route add -host hostname.domain gw 192.168.1.1
   route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0   route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0
 +  route add -net 192.168.30.0 netmask 255.255.255.0 gw 192.168.30.2
   route add -host 192.168.0.1 dev ippp0   route add -host 192.168.0.1 dev ippp0
   route del -host 192.168.0.1   route del -host 192.168.0.1
   route add default gw 192.168.0.1    route add default gw 192.168.0.1 
 +  
 +==="ip" command===
 +
 +  ip a                                                            #show running interface(s) configuration
 +  ip addr add 10.0.2.15/24 dev enp0s3                             #temporary set ip to interface "enp0s3"
 +  sudo ip link set enp0s3 down                                    #interface "enp0s3" down
 +  sudo ip link set enp0s3 up                                      #interface "enp0s3" up
 +  sudo ip route add default via 10.0.2.2                          #temporary set default gateway
 +
 +===Config===
  
 === Commandline Configuration IP command === === Commandline Configuration IP command ===
Line 188: Line 199:
   tcpdump -i eth0   tcpdump -i eth0
   tcpdump -niany   tcpdump -niany
-  tcpdump -i eth0 -s 65535 -w tracefile                  #Create dump, which can be imported in wireshark+  tcpdump -i eth0 -s 65535 -w tracefile                               #Create dump, which can be imported in wireshark 
 +  tcpdump -i eth0:0 -s 65535 -w tracefile.`date +%d.%m.%Y.%H.%M.%S` 
 +  tcpdump -i eth1 -s 84 -w tracefile.`date +%d.%m.%Y.%H.%M.%S`        #dump just header files
   tcpdump -i eth1 -qtln icmp   tcpdump -i eth1 -qtln icmp
      
Line 210: Line 223:
   telnet localhost 25     telnet localhost 25  
   telnet IP 25   telnet IP 25
 +  telnet 192.168.0.20 25
   echo quit | telnet 192.168.1.1 22 | grep –i connected   echo quit | telnet 192.168.1.1 22 | grep –i connected
 +  
 +If there´s no telnet:
  
-Additionally you can send Mails with it:+    nc -zv 192.168.0.20 25 
 + 
 +Or: 
 + 
 +  echo >/dev/tcp/localhost/25 
 +  echo >/dev/tcp/192.168.0.20/25 
 +   
 +=== Mails with telnet ===
  
   ehlo testmail.org (Identify and demand SMTP-Modus)   ehlo testmail.org (Identify and demand SMTP-Modus)
Line 223: Line 246:
 Tip: Tip:
   reset (enables to send additionally emails)   reset (enables to send additionally emails)
 +  
 +===curl===
 +
 +  curl -v -H "Host: my-server.mydomain.com" 127.0.0.1:8443                     #test connectivity locally on host to simulate external access
 +  curl -X GET https://my-domain.de:6443                                        #check if port is open
      
 === jmeter (performance tests) === === jmeter (performance tests) ===
linux/network.txt · Last modified: 2024/02/20 15:10 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki