diff options
-rw-r--r-- | ip/functions.sh | 2 | ||||
-rwxr-xr-x | ip/ipecamera6.sh | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ip/functions.sh b/ip/functions.sh index 2941953..3f45f63 100644 --- a/ip/functions.sh +++ b/ip/functions.sh @@ -7,7 +7,7 @@ function portset { function mlxconf { mode=$1 - pci=$(./connectx_port_config -s | grep PCI | grep -Po "\d{4}:\d{2}:\d{2}\.\d") + 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 diff --git a/ip/ipecamera6.sh b/ip/ipecamera6.sh new file mode 100755 index 0000000..f31ea21 --- /dev/null +++ b/ip/ipecamera6.sh @@ -0,0 +1,8 @@ +. ip/functions.sh + +mlxconf eth + +ipset enp5s0 192.168.61.86 +ipset enp5s0d1 192.168.2.86 +ipset enp10s0 192.168.62.86 +ipset enp10s0d1 192.168.46.86 |