summaryrefslogtreecommitdiffstats
path: root/ip
diff options
context:
space:
mode:
Diffstat (limited to 'ip')
l---------ip1
-rw-r--r--ip/functions.sh51
-rwxr-xr-xip/ipecamera0.sh7
-rwxr-xr-xip/ipecamera3.sh11
-rwxr-xr-xip/ipecamera4.sh11
-rwxr-xr-xip/ipecamera5.sh9
-rwxr-xr-xip/ipecamera6.sh8
7 files changed, 1 insertions, 97 deletions
diff --git a/ip b/ip
new file mode 120000
index 0000000..2833425
--- /dev/null
+++ b/ip
@@ -0,0 +1 @@
+ip-p2p \ No newline at end of file
diff --git a/ip/functions.sh b/ip/functions.sh
deleted file mode 100644
index f912a6e..0000000
--- a/ip/functions.sh
+++ /dev/null
@@ -1,51 +0,0 @@
-function mlxreload {
- rmmod ib_ucm
- rmmod rdma_ucm
- rmmod ib_uverbs
- modprobe ib_uverbs disable_raw_qp_enforcement=1
- modprobe ib_ucm
- modprobe rdma_ucm
- modprobe mlx4_core fast_drop=1 log_num_mgm_entry_size=-1
- modprobe mlx4_en
-}
-
-function mlxload {
- reload=0
-
- param=$(cat /sys/module/mlx4_core/parameters/log_num_mgm_entry_size)
- [ $param -ne -1 ] && reload=1
-
- [ $reload -eq 1 ] && mlxreload
-}
-
-function portset {
- pci=$1
- mode=$2
- ./connectx_port_config -d "$pci" -c "$mode,$mode" &> /dev/null
-}
-
-function mlxconf {
- mode=$1
-
- mlxload
-
- pci=$(./connectx_port_config -s | grep PCI | grep -Po "[\da-f]{4}:[\da-f]{2}:[\da-f]{2}\.[\da-f]")
- for dev in $pci; do
- echo "Configuring: $dev"
- portset $dev $mode
- done
-}
-
-function ipset {
- int="$1"
- ip="$2"
-
- if [ -n "$ip" ]; then
- ip link set "$int" up
- ip addr flush "$int"
- ip addr show dev "$int" | grep "$ip" || ip addr add "$ip/24" dev "$int"
- else
- ip addr flush "$int"
- ip link set "$int" down
- fi
-}
diff --git a/ip/ipecamera0.sh b/ip/ipecamera0.sh
deleted file mode 100755
index 06d16ce..0000000
--- a/ip/ipecamera0.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-. ip/functions.sh
-
-mlxconf eth
-
-ipset enp4s0 192.168.2.80
-ipset enp8s0 #192.168.2.90
-ipset enp9s0 #192.168.2.100
diff --git a/ip/ipecamera3.sh b/ip/ipecamera3.sh
deleted file mode 100755
index f003a1a..0000000
--- a/ip/ipecamera3.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-. ip/functions.sh
-
-mlxconf eth
-
-ipset ens1 192.168.36.83
-ipset ens1d1 192.168.2.83
-ipset ens11 192.168.34.83
-ipset ens11d1 192.168.35.83
-
-ipset enp6s0f0 #192.168.2.93
-ipset enp7s0f0 #192.168.2.103
diff --git a/ip/ipecamera4.sh b/ip/ipecamera4.sh
deleted file mode 100755
index 81b1e18..0000000
--- a/ip/ipecamera4.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-. ip/functions.sh
-
-mlxconf eth
-
-ipset ens1 192.168.34.84
-ipset ens1d1 192.168.2.84
-ipset ens11 192.168.46.84
-ipset ens11d1 192.168.45.84
-ipset enp6s0f0 #192.168.2.94
-ipset enp7s0f0 #192.168.2.104
-
diff --git a/ip/ipecamera5.sh b/ip/ipecamera5.sh
deleted file mode 100755
index f6660de..0000000
--- a/ip/ipecamera5.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-. ip/functions.sh
-
-mlxconf eth
-
-ipset enp6s0 192.168.2.85
-ipset enp9s0 #192.168.2.95
-ipset enp9s0d1 192.168.35.85
-ipset enp10s0 #192.168.2.105
-ipset enp10s0d1 192.168.45.85
diff --git a/ip/ipecamera6.sh b/ip/ipecamera6.sh
deleted file mode 100755
index dd41e1b..0000000
--- a/ip/ipecamera6.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-. ip/functions.sh
-
-mlxconf eth
-
-ipset enp5s0 192.168.36.86
-ipset enp5s0d1 192.168.2.86
-ipset enp10s0 192.168.46.86
-ipset enp10s0d1 #192.168.2.96