Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- conname=$(nmcli con | awk ' $1 !~ "NAME|lo"{print $1}')
- ifname=$(nmcli dev | awk ' $1 !~ "DEVICE|lo"{print $1}')
- echo $conname
- echo $ifname
- test3 test4 test5
- enp0s3 enp0s8 enp0s9
- nmcli con del *test3*
- nmcli con del *test4*
- nmcli con del *test5*
- nmcli con add type ethernet con-name ABC ifname *enp0s3*
- nmcli con add type ethernet con-name ABC ifname *enp0s8*
- nmcli con add type ethernet con-name ABC ifname *enp0s9*
Add Comment
Please, Sign In to add comment