Voici mon ifconfig. J'ai plein de trucs Docker mais on voit bien que Eth0 et Eth2 sont montés et que Eth1 est down, ce qui est normal (pas de cable sur ce port).
	
	
	
		
La commande ip -a nécessite un argument complémentaire ; lequel veux-tu ?
Concernant ton script, j'ai activé l'ipv6, l'interface à checker est eth02 et celles à désactiver est mise sur eth0.
J'ai aussi désactivé gotify.
	
	
	
		
				
			
		Code:
	
	docker0   Link encap:Ethernet  HWaddr 02:42:8E:37:90:F7
          inet addr:172.17.0.1  Bcast:172.17.255.255  Mask:255.255.0.0
          inet6 addr: fe80::42:8eff:fe37:90f7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:76109103 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26798074 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:100704038461 (93.7 GiB)  TX bytes:8303529724 (7.7 GiB)
docker-0d Link encap:Ethernet  HWaddr 02:42:01:45:5E:4E
          inet addr:192.168.10.1  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
docker-71 Link encap:Ethernet  HWaddr 02:42:48:B6:1A:01
          inet addr:172.21.0.1  Bcast:172.21.255.255  Mask:255.255.0.0
          inet6 addr: fe80::42:48ff:feb6:1a01/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:51 errors:0 dropped:0 overruns:0 frame:0
          TX packets:69 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:92436 (90.2 KiB)  TX bytes:11383 (11.1 KiB)
docker002 Link encap:Ethernet  HWaddr 3E:70:D0:85:B0:8A
          inet6 addr: fe80::3c70:d0ff:fe85:b08a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:29 errors:0 dropped:0 overruns:0 frame:0
          TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5598 (5.4 KiB)  TX bytes:8480 (8.2 KiB)
docker128 Link encap:Ethernet  HWaddr 9E:BB:6D:D3:27:AF
          inet6 addr: fe80::9cbb:6dff:fed3:27af/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7366 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6883 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:784403 (766.0 KiB)  TX bytes:19081037 (18.1 MiB)
docker176 Link encap:Ethernet  HWaddr 0E:82:8B:0F:0C:DF
          inet6 addr: fe80::c82:8bff:fe0f:cdf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3745 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3772 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:741657 (724.2 KiB)  TX bytes:15220416 (14.5 MiB)
docker47c Link encap:Ethernet  HWaddr 7E:9D:68:41:74:E2
          inet6 addr: fe80::7c9d:68ff:fe41:74e2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3242 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3264 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:7656447 (7.3 MiB)  TX bytes:1213773 (1.1 MiB)
docker4be Link encap:Ethernet  HWaddr BE:1C:A3:DA:73:04
          inet6 addr: fe80::bc1c:a3ff:feda:7304/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1314 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1720 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2911204 (2.7 MiB)  TX bytes:839592 (819.9 KiB)
docker4fd Link encap:Ethernet  HWaddr A6:C2:AE:14:EA:17
          inet6 addr: fe80::a4c2:aeff:fe14:ea17/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:82 errors:0 dropped:0 overruns:0 frame:0
          TX packets:142 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:11436 (11.1 KiB)  TX bytes:39993 (39.0 KiB)
docker7a9 Link encap:Ethernet  HWaddr 36:83:45:A4:91:FE
          inet6 addr: fe80::3483:45ff:fea4:91fe/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:75421178 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25914065 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:100250642458 (93.3 GiB)  TX bytes:5257141866 (4.8 GiB)
docker8fb Link encap:Ethernet  HWaddr AA:5F:48:07:F5:90
          inet6 addr: fe80::a85f:48ff:fe07:f590/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1746 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1388 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:930908 (909.0 KiB)  TX bytes:2923025 (2.7 MiB)
docker966 Link encap:Ethernet  HWaddr 96:56:F7:9B:0F:3F
          inet6 addr: fe80::9456:f7ff:fe9b:f3f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:254232 errors:0 dropped:0 overruns:0 frame:0
          TX packets:256794 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:90096626 (85.9 MiB)  TX bytes:98151139 (93.6 MiB)
docker9a3 Link encap:Ethernet  HWaddr 16:39:17:AC:D4:FA
          inet6 addr: fe80::1439:17ff:feac:d4fa/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14325 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12994 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:20241599 (19.3 MiB)  TX bytes:3666360 (3.4 MiB)
docker9fd Link encap:Ethernet  HWaddr D2:D4:F7:48:36:B6
          inet6 addr: fe80::d0d4:f7ff:fe48:36b6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25 errors:0 dropped:0 overruns:0 frame:0
          TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2764 (2.6 KiB)  TX bytes:11472 (11.2 KiB)
dockerba0 Link encap:Ethernet  HWaddr FE:2C:C6:9B:C0:2D
          inet6 addr: fe80::fc2c:c6ff:fe9b:c02d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:1966 (1.9 KiB)
dockerc63 Link encap:Ethernet  HWaddr EA:2C:28:F5:D8:05
          inet6 addr: fe80::e82c:28ff:fef5:d805/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1024 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1378 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5373378 (5.1 MiB)  TX bytes:220156 (214.9 KiB)
dockerd0f Link encap:Ethernet  HWaddr 7E:E2:57:8C:34:92
          inet6 addr: fe80::7ce2:57ff:fe8c:3492/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:5458 (5.3 KiB)
dockerdfb Link encap:Ethernet  HWaddr 2E:E9:4C:DD:33:35
          inet6 addr: fe80::2ce9:4cff:fedd:3335/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:271186 errors:0 dropped:0 overruns:0 frame:0
          TX packets:436092 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:727234758 (693.5 MiB)  TX bytes:2094151107 (1.9 GiB)
dockerf7a Link encap:Ethernet  HWaddr 72:E1:A8:C8:A9:CD
          inet6 addr: fe80::70e1:a8ff:fec8:a9cd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:5458 (5.3 KiB)
eth0      Link encap:Ethernet  HWaddr 00:11:32:EF:B1:C7
          inet addr:192.168.0.17  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:32ff:feef:b1c7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:264689 errors:0 dropped:0 overruns:0 frame:0
          TX packets:185743 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:36441333 (34.7 MiB)  TX bytes:701434330 (668.9 MiB)
          Interrupt:97 base 0xc000
eth1      Link encap:Ethernet  HWaddr 00:11:32:EF:B1:C8
          inet addr:169.254.104.3  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:96 base 0xa000
eth2      Link encap:Ethernet  HWaddr 00:E0:4C:68:1A:30
          inet addr:192.168.0.26  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:4cff:fe68:1a30/64 Scope:Link
          inet6 addr: fe80::2e0:4cff:fe68:1a30/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:35014926 errors:0 dropped:0 overruns:0 frame:0
          TX packets:85948712 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:15382908920 (14.3 GiB)  TX bytes:113071574222 (105.3 GiB)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2661526 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2661526 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:462191291 (440.7 MiB)  TX bytes:462191291 (440.7 MiB)
myst0     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.182.0.1  P-t-P:10.182.0.1  Mask:255.255.255.0
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1420  Metric:1
          RX packets:194506 errors:0 dropped:0 overruns:0 frame:0
          TX packets:447581 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:15379091 (14.6 MiB)  TX bytes:599577182 (571.8 MiB)
myst2     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.182.2.1  P-t-P:10.182.2.1  Mask:255.255.255.0
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1420  Metric:1
          RX packets:47613 errors:0 dropped:0 overruns:0 frame:0
          TX packets:51565 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:16430776 (15.6 MiB)  TX bytes:19618756 (18.7 MiB)
myst3     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.182.3.1  P-t-P:10.182.3.1  Mask:255.255.255.0
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1420  Metric:1
          RX packets:49409 errors:0 dropped:0 overruns:0 frame:0
          TX packets:55338 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:4807108 (4.5 MiB)  TX bytes:39666591 (37.8 MiB)
myst4     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.182.4.1  P-t-P:10.182.4.1  Mask:255.255.255.0
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1420  Metric:1
          RX packets:6247 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5645 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:668329 (652.6 KiB)  TX bytes:2428104 (2.3 MiB)La commande ip -a nécessite un argument complémentaire ; lequel veux-tu ?
Concernant ton script, j'ai activé l'ipv6, l'interface à checker est eth02 et celles à désactiver est mise sur eth0.
J'ai aussi désactivé gotify.
		Bash:
	
	#   Set to no for no ipv6, or yes to let ipv6 activated (global parameter: it's for all interfaces)
ipv6="yes"
#   Set to the interface in 2,5G/5G you want to check : eth0 or eth1, or eth2 ...
#   In Synology NAS :
#       - eth0 = LAN1
#       - eth1 = LAN2
#       - eth2 = LAN3
#       - eth3 = LAN4
interface="eth2"
# Add embedded interfaces you want to disable when $interface is up and running correctly
# and enable when $interface isn't working correctly.
# Choose wisely!
embedded_interface_to_deactivate=("eth0")
#   Set the gateway to test (could be whatever IP address you want to ping)
#   or let the script determine the default gateway set by setting the value to "".
gateway=""
# gateway="192.168.2.203"
## Variables Gotify
# Set gotify_notif to   false to disable gotify notification
#                       true to enable gotify notification
gotify_notif=false
gotify_url=https://gotify.ndd.tld
gotify_token=xxxx-token-xxx 
	 
	 
 
		
 
 
		



