1 billlee 2020-07-17 01:36:49 +08:00 写个 shell 脚本调用 ip addr add |
![]() | 2 onetown 2020-07-17 03:02:41 +08:00 ![]() DEV=eth0 PREFIX=192.168.1 for N in {2..254}; do ip addr add $PREFIX.$N dev $DEV; done; |
![]() | 3 ruanimal 2020-07-17 10:33:20 +08:00 ![]() for ip in 192.168.{1..254}; do ip addr add $ip dev $DEV; done |