summaryrefslogtreecommitdiffstats
path: root/ip/ipecamera4.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ip/ipecamera4.sh')
-rwxr-xr-xip/ipecamera4.sh25
1 files changed, 8 insertions, 17 deletions
diff --git a/ip/ipecamera4.sh b/ip/ipecamera4.sh
index cfa4fe6..4f03d96 100755
--- a/ip/ipecamera4.sh
+++ b/ip/ipecamera4.sh
@@ -1,20 +1,11 @@
-./connectx_port_config -d 0000:01:00.0 -c eth,eth &> /dev/null
-./connectx_port_config -d 0000:03:00.0 -c eth,eth &> /dev/null
+. ip/functions.sh
-ip link set ens1 up
-ip addr show dev ens1 | grep 192.168.41.84 || ip addr add 192.168.41.84/24 dev ens1
+mlxconf eth
-ip link set ens1d1 up
-ip addr show dev ens1d1 | grep 192.168.2.84 || ip addr add 192.168.2.84/24 dev ens1d1
+ipset ens1 192.168.41.84
+ipset ens1d1 192.168.2.84
+ipset ens11 192.168.42.84
+ipset ens11d 192.168.46.84
+ipset enp6s0f0 #192.168.2.104
+ipset enp7s0f0 #192.168.2.114
-ip link set ens11 up
-ip addr show dev ens11 | grep 192.168.42.84 || ip addr add 192.168.42.84/24 dev ens11
-
-ip link set ens11d1 up
-ip addr show dev ens11d1 | grep 192.168.46.84 || ip addr add 192.168.46.84/24 dev ens11d1
-
-ip link set enp6s0f0 up
-ip addr show dev enp6s0f0 | grep 192.168.2.104 || ip addr add 192.168.2.104/24 dev enp6s0f0
-
-ip link set enp7s0f0 up
-ip addr show dev enp7s0f0 | grep 192.168.2.114 || ip addr add 192.168.2.114/24 dev enp7s0f0