This commit is contained in:
kyodev 2017-09-04 13:36:24 +02:00
parent f9d96abd43
commit dfa13bf2f0
1 changed files with 15 additions and 7 deletions

View File

@ -15,8 +15,8 @@ chmod +x getIp
## help ## help
`./getIp -h` ou `getIp -h` (si installé) `./getIp -h` ou `getIp -h` (si installé)
```text ```text
getIp 1.6.0 getIp 1.7.0
---------------------------------------------------------------------- ----------------------------------------------------------------------
./getIp : exécution normale ./getIp : exécution normale
@ -29,7 +29,7 @@ chmod +x getIp
-h, --help : affichage aide -h, --help : affichage aide
-4, --ip4 : affiche ipv4 public -4, --ip4 : affiche ipv4 public
-6, --ip6 : affiche ipv6 public -6, --ip6 : affiche ipv6 public
'', --local : affiche ip / passerelle privées '', --local : affiche adresses mac / ip privées / passerelle
-i, --install : installation du script dans le système -i, --install : installation du script dans le système
-r, --remove : suppression du script dans le système -r, --remove : suppression du script dans le système
@ -44,11 +44,15 @@ chmod +x getIp
```text ```text
ip locale(s): ip locale(s):
192.168.1.129/24 ( wlp1s0 ) (wifi) 192.168.1.129/24 ( wlp1s0 ) (wifi)
fe80::96a8:dcbc:b798:370/64 ( wlp1s0 ) (wifi) fe80::96a8:dcbc:b798:370/64 ( wlp1s0 ) (wifi)
passerelle(s): passerelle(s):
192.168.1.5 ( wlp1s0 ) (wifi) 192.168.1.5 ( wlp1s0 ) (wifi)
mac_address:
enp3s0: 00:26:18:69:ec:c2 (ethernet)
wlp1s0: 00:25:d3:43:de:42 (wifi)
``` ```
## IP publiques ipv4 ## IP publiques ipv4
@ -57,12 +61,16 @@ chmod +x getIp
```text ```text
185.126.105.135 185.126.105.135
``` ```
ou
```text
pas de connectivité ipv4
```
## IP publiques ipv6 ## IP publiques ipv6
`./getIp -6` ou `getIp -6` (si installé) `./getIp -6` ou `getIp -6` (si installé)
```text ```text
2a01:e0c:8bd5:26b0:e8ef:5bdb:f7a8:d308 2a01:e0c:8bd5:13b0:e8ef:5cdb:f9a8:d308
``` ```
ou ou
```text ```text