7 lines
142 B
Bash
Executable File
7 lines
142 B
Bash
Executable File
#!/bin/sh
|
|
localIp='192.168.2.10/24'
|
|
localBroadcast='192.168.2.255'
|
|
netAdp=$1
|
|
|
|
sudo ip addr add $localIp broadcast $localBroadcast dev $netAdp
|