informatique:linux:commandes_linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
informatique:linux:commandes_linux [2019/02/09 15:18] – [dmesg] pteu | informatique:linux:commandes_linux [2019/04/09 13:08] – [telnet] Envoi d'un mail pteu | ||
---|---|---|---|
Line 1767: | Line 1767: | ||
* '' | * '' | ||
+ | ====fping==== | ||
+ | [[https:// | ||
+ | <code bash> | ||
+ | # va PINGer 5 fois (-c5) le réseau 10.1.2.200/ | ||
+ | # va faire une résolution DNS inversée des IPs (-n) et n' | ||
+ | fping -c5 -g 10.1.2.200/ | ||
+ | test201.local | ||
+ | test202.local | ||
+ | test203.local | ||
+ | test204.local | ||
+ | test205.local | ||
+ | test206.local | ||
+ | |||
+ | # ici les IPs .203, .204 et .206 ne répondent pas | ||
+ | </ | ||
=====pmap===== | =====pmap===== | ||
Line 2322: | Line 2337: | ||
Le port (ici 80) est facultatif (par défaut 23). | Le port (ici 80) est facultatif (par défaut 23). | ||
+ | ====Envoi d'un mail==== | ||
+ | Pour envoyer un mail en SMTP via l' | ||
+ | <code bash> | ||
+ | # lancer l' | ||
+ | $ telnet | ||
+ | |||
+ | telnet> open 10.1.1.55 25 | ||
+ | Trying 10.1.1.55... | ||
+ | Connected to 10.1.1.55. | ||
+ | Escape character is ' | ||
+ | 220 exemple.fr ESMTP Server Ready. Tue, 9 Apr 2019 14:39:14 +0200 | ||
+ | |||
+ | EHLO toto | ||
+ | 250-exemple.fr Hello client.exemple.fr [10.1.2.201], | ||
+ | 250-ENHANCEDSTATUSCODES | ||
+ | 250-PIPELINING | ||
+ | 250-EXPN | ||
+ | 250-VERB | ||
+ | 250-8BITMIME | ||
+ | 250-SIZE 25000000 | ||
+ | 250-DSN | ||
+ | 250-ETRN | ||
+ | 250-DELIVERBY | ||
+ | 250 HELP | ||
+ | |||
+ | MAIL from: | ||
+ | 250 2.1.0 toto@exemple.fr... Sender ok | ||
+ | |||
+ | RCPT to: | ||
+ | 250 2.1.5 dest@domaine.fr... Recipient ok | ||
+ | |||
+ | DATA | ||
+ | 354 Enter mail, end with " | ||
+ | |||
+ | Subject: Test de mail | ||
+ | Ceci est un test de msg | ||
+ | . | ||
+ | 250 2.0.0 x39CdEPw012136 Message accepted for delivery | ||
+ | |||
+ | QUIT | ||
+ | 221 2.0.0 exemple.fr closing connection | ||
+ | Connection closed by foreign host. | ||
+ | </ | ||
=====time===== | =====time===== | ||
informatique/linux/commandes_linux.txt · Last modified: 2024/04/05 06:58 by pteu