Il y a 389 articles et 19 utilisateurs inscrits (ce bandeau est défini dans MediaWiki:Sitenotice)

« Linux réseau » : différence entre les versions

De AJLSM
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
Scanner le réseau :
Scanner le réseau :


<syntaxhighlight lang="bash">$nmap -T4 -sP 192.168.123.0/24</syntaxhighlight>
<syntaxhighlight lang="bash">$nmap -T4 -sP 192.168.123.0/24
 
Starting Nmap 5.21 ( http://nmap.org ) at 2013-03-19 09:59 CET
Nmap scan report for trinity (192.168.123.2)
Host is up (0.00067s latency).
Nmap scan report for 192.168.123.3
Host is up (0.00037s latency).
Nmap scan report for 192.168.123.4
Host is up (0.0012s latency).
Nmap scan report for 192.168.123.6
Host is up (0.00022s latency).
Nmap scan report for 192.168.123.7
Host is up (0.00088s latency).
Nmap scan report for 192.168.123.8
Host is up (0.0024s latency).
Nmap scan report for 192.168.123.12
Host is up (0.062s latency).
Nmap scan report for moorea (192.168.123.16)
Host is up (0.00025s latency).
Nmap scan report for tahiti (192.168.123.18)
Host is up (0.00039s latency).
Nmap scan report for 192.168.123.27
Host is up (0.00066s latency).
Nmap scan report for 192.168.123.30
Host is up (0.00051s latency).
Nmap scan report for mpf (192.168.123.150)
Host is up (0.0012s latency).
Nmap scan report for 192.168.123.254
Host is up (0.0068s latency).
Nmap done: 256 IP addresses (13 hosts up) scanned in 2.59 seconds</syntaxhighlight>


Adresse IP de sa machine :
Adresse IP de sa machine :
Ligne 23 : Ligne 53 :
<syntaxhighlight lang="bash">$ hostname
<syntaxhighlight lang="bash">$ hostname
iles</syntaxhighlight>
iles</syntaxhighlight>


Adresse IP d'une autre machine :
Adresse IP d'une autre machine :

Version du 19 mars 2013 à 09:01


Scanner le réseau :

$nmap -T4 -sP 192.168.123.0/24
Starting Nmap 5.21 ( http://nmap.org ) at 2013-03-19 09:59 CET
Nmap scan report for trinity (192.168.123.2)
Host is up (0.00067s latency).
Nmap scan report for 192.168.123.3
Host is up (0.00037s latency).
Nmap scan report for 192.168.123.4
Host is up (0.0012s latency).
Nmap scan report for 192.168.123.6
Host is up (0.00022s latency).
Nmap scan report for 192.168.123.7
Host is up (0.00088s latency).
Nmap scan report for 192.168.123.8
Host is up (0.0024s latency).
Nmap scan report for 192.168.123.12
Host is up (0.062s latency).
Nmap scan report for moorea (192.168.123.16)
Host is up (0.00025s latency).
Nmap scan report for tahiti (192.168.123.18)
Host is up (0.00039s latency).
Nmap scan report for 192.168.123.27
Host is up (0.00066s latency).
Nmap scan report for 192.168.123.30
Host is up (0.00051s latency).
Nmap scan report for mpf (192.168.123.150)
Host is up (0.0012s latency).
Nmap scan report for 192.168.123.254
Host is up (0.0068s latency).
Nmap done: 256 IP addresses (13 hosts up) scanned in 2.59 seconds

Adresse IP de sa machine :

$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:12:3f:76:d5:00  
          inet adr:192.168.123.6  Bcast:192.168.123.255  Masque:255.255.255.0
          adr inet6: fe80::212:3fff:fe76:d500/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:10254 erreurs:0 :0 overruns:0 frame:0
          TX packets:6962 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reçus:9310556 (9.3 MB) Octets transmis:951093 (951.0 KB)
          Interruption:17

L'adresse IP de la machine est : 192.168.123.6

Nom de sa machine :

$ hostname
iles


Adresse IP d'une autre machine :

host nomdelamachine
$host mw.ajlsm.com
mw.ajlsm.com is an alias for local.ajlsm.com.
local.ajlsm.com has address 82.225.177.85

$ host redmine.ajlsm.com
redmine.ajlsm.com is an alias for local.ajlsm.com.
local.ajlsm.com has address 82.225.177.85

$ host local.ajlsm.com
local.ajlsm.com has address 82.225.177.85