This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:network [2021/07/06 17:19] – tmade | linux:network [2026/06/24 15:38] (current) – [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 a #show running interface(s) configuration | ||
| + | ip addr add 10.0.2.15/ | ||
| + | sudo ip link set enp0s3 down #interface " | ||
| + | sudo ip link set enp0s3 up #interface " | ||
| + | sudo ip route add default via 10.0.2.2 | ||
| + | |||
| + | ===Config=== | ||
| === Commandline Configuration IP command === | === Commandline Configuration IP command === | ||
| Line 218: | Line 229: | ||
| nc -zv 192.168.0.20 25 | nc -zv 192.168.0.20 25 | ||
| + | or: | ||
| + | lsof -Pi :8443 #just local test | ||
| - | Or: | + | or: |
| echo >/ | echo >/ | ||
| echo >/ | echo >/ | ||
| - | + | | |
| - | Additionally you can send Mails with it: | + | === Mails with telnet === |
| ehlo testmail.org (Identify and demand SMTP-Modus) | ehlo testmail.org (Identify and demand SMTP-Modus) | ||
| Line 235: | Line 248: | ||
| Tip: | Tip: | ||
| reset (enables to send additionally emails) | reset (enables to send additionally emails) | ||
| + | | ||
| + | ===curl=== | ||
| + | |||
| + | curl -v -H "Host: my-server.mydomain.com" | ||
| + | curl -v -H "Host: www.example.com" | ||
| + | curl -X GET https:// | ||
| + | curl --noproxy " | ||
| + | curl -v http:// | ||
| + | curl -v 1.2.3.4:80 | ||
| | | ||
| === jmeter (performance tests) === | === jmeter (performance tests) === | ||