This commit is contained in:
kyodev 2017-12-04 13:23:54 +01:00
parent 5242eddea1
commit 6953ef435b
1 changed files with 35 additions and 4 deletions

View File

@ -4,6 +4,7 @@
> * l'installation du script est possible en option. il se mettra alors éventuellement à jour automatiquement
> * l'option -us permet la mise à jour du script en place, sans installation et sans test ultérieur de
nouvelle version
> * jusqu'à en trouver un, les utilitaires suivants seront utilisés: dig (dnsutils) / wget / curl / telnet / nc
## chargement du script:
@ -19,9 +20,14 @@ chmod +x getIp
## help
`./getIp -h` ou `getIp -h` (si installé)
```text
getIp 1.15.0
_ ___
__ _ ___| |_|_ _|_ __
/ _' |/ _ \ __|| || '_ \
| (_| | __/ |_ | || |_) |
\__, |\___|\__|___| .__/
|___/ |_|
1.16.0 - 4/12/2017
----------------------------------------------------------------------
./getIp : exécution normale
getIp : exécution normale si script installé dans le système
@ -31,9 +37,13 @@ chmod +x getIp
options:
-h, --help : affichage aide
-4, --ip4 : affiche ipv4 public
-6, --ip6 : affiche ipv6 public
-46 --public : afiche ipv4 & ipv6 public
'', --local : affiche adresses mac / ip privées / passerelle
-us : upgrade spécial du script (pas de mise à jour auto, maj du script en place)
-i, --install : installation du script dans le système
@ -49,6 +59,14 @@ chmod +x getIp
`./getIp` ou `getIp` (si installé)
```text
_ ___
__ _ ___| |_|_ _|_ __
/ _' |/ _ \ __|| || '_ \
| (_| | __/ |_ | || |_) |
\__, |\___|\__|___| .__/
|___/ |_|
1.16.0 - 4/12/2017
ip locale(s):
192.168.1.129/24 ( wlp1s0 ) (wifi)
@ -63,9 +81,22 @@ chmod +x getIp
```
## IP publiques
`./getIp -46` ou `getIp -46` (si installé)
```text
185.126.105.135
2a01:e0c:8bd5:13b0:e8ef:5cdb:f9a8:d308
```
ou
```text
pas de connectivité ipv4
pas de connectivité ipv6
```
## IP publiques ipv4
`./getIp -4` ou `getIp -4` (si installé)
`./getIp -4` ou `getIp -4` (si installé)
```text
185.126.105.135
```
@ -77,7 +108,7 @@ pas de connectivité ipv4
## IP publiques ipv6
`./getIp -6` ou `getIp -6` (si installé)
`./getIp -6` ou `getIp -6` (si installé)
```text
2a01:e0c:8bd5:13b0:e8ef:5cdb:f9a8:d308
```