Guest User

Untitled

a guest
Nov 20th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. conname=$(nmcli con | awk ' $1 !~ "NAME|lo"{print $1}')
  4. ifname=$(nmcli dev | awk ' $1 !~ "DEVICE|lo"{print $1}')
  5.  
  6. echo $conname
  7. echo $ifname
  8.  
  9. test3 test4 test5
  10. enp0s3 enp0s8 enp0s9
  11.  
  12. nmcli con del *test3*
  13. nmcli con del *test4*
  14. nmcli con del *test5*
  15.  
  16. nmcli con add type ethernet con-name ABC ifname *enp0s3*
  17. nmcli con add type ethernet con-name ABC ifname *enp0s8*
  18. nmcli con add type ethernet con-name ABC ifname *enp0s9*
Add Comment
Please, Sign In to add comment