summaryrefslogtreecommitdiffstats
path: root/ip/ipecamera3.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ip/ipecamera3.sh')
-rwxr-xr-xip/ipecamera3.sh40
1 files changed, 12 insertions, 28 deletions
diff --git a/ip/ipecamera3.sh b/ip/ipecamera3.sh
index 65fc84f..ceb78b6 100755
--- a/ip/ipecamera3.sh
+++ b/ip/ipecamera3.sh
@@ -1,28 +1,12 @@
-./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
-./connectx_port_config -d 0000:06:00.0 -c eth,eth &> /dev/null
-./connectx_port_config -d 0000:07:00.0 -c eth,eth &> /dev/null
-
-ip link set ens1 up
-ip addr show dev ens1 | grep 192.168.61.83 || ip addr add 192.168.61.83/24 dev ens1
-
-ip link set ens1d1 up
-ip addr show dev ens1d1 | grep 192.168.2.93 || ip addr add 192.168.2.93/24 dev ens1d1
-
-ip link set ens11 up
-ip addr show dev ens11 | grep 192.168.41.83 || ip addr add 192.168.41.83/24 dev ens11
-
-ip link set ens11d1 up
-ip addr show dev ens11d1 | grep 192.168.2.83 || ip addr add 192.168.2.83/24 dev ens11d1
-
-ip link set enp6s0 up
-ip addr show dev enp6s0 | grep 192.168.62.83 || ip addr add 192.168.62.83/24 dev enp6s0
-
-ip link set enp6s0d1 up
-ip addr show dev enp6s0d1 | grep 192.168.2.103 || ip addr add 192.168.2.103/24 dev enp6s0d1
-\
-ip link set enp7s0 up
-ip addr show dev enp7s0 | grep 192.168.42.83 || ip addr add 192.168.42.83/24 dev enp7s0
-
-ip link set enp7s0d1 up
-ip addr show dev enp7s0d1 | grep 192.168.2.113 || ip addr add 192.168.2.113/24 dev enp7s0d1
+. ip/functions.sh
+
+mlxconf eth
+
+ipset ens1 #192.168.61.83
+ipset ens1d1 #192.168.2.93
+ipset ens11 192.168.41.83
+ipset ens11d1 192.168.2.83
+ipset enp6s0 #192.168.62.83
+ipset enp6s0d1 #192.168.2.103
+ipset enp7s0 #192.168.42.83
+ipset enp7s0d1 #192.168.2.113