$ UUID=`nmcli connection show | tail -1 | awk ‘’` # Mint The UUID is saved in the script by the command like that shown below so that it can be used in the nmcli commands shown earlier. The prominent UUID shown in each of them is collected from the output of this command: $ nmcli connection show Prior to running the commands shown above, the script collects the variables used to make sure the commands are set up correctly-largely by running commands that report on the current settings. If a new IP address is requested, the script will check the format of the address requested and make sure that it is compatible with the current network. Sudo nmcli connection modify $UUID thod manual Sudo nmcli connection modify $UUID IPv4.gateway $router Sudo nmcli connection modify $UUID IPv4.address $IP/ $sz
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |