summaryrefslogtreecommitdiffstats
path: root/ip
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-08-05 03:07:16 +0200
committerSuren A. Chilingaryan <csa@suren.me>2018-08-05 03:07:16 +0200
commitd721f36bef886fbccb61238235244e51d930abad (patch)
tree548bcd049692d8f3e507eb552bd82e66b6be8e3f /ip
downloadmlx-d721f36bef886fbccb61238235244e51d930abad.tar.gz
mlx-d721f36bef886fbccb61238235244e51d930abad.tar.bz2
mlx-d721f36bef886fbccb61238235244e51d930abad.tar.xz
mlx-d721f36bef886fbccb61238235244e51d930abad.zip
ipecamera3
Diffstat (limited to 'ip')
-rwxr-xr-xip/ipecamera3.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/ip/ipecamera3.sh b/ip/ipecamera3.sh
new file mode 100755
index 0000000..65fc84f
--- /dev/null
+++ b/ip/ipecamera3.sh
@@ -0,0 +1,28 @@
+./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