sexta-feira, 12 de janeiro de 2024

Raspberrypi set static ip with network-manager

0 comentários

 Fonte: static-ip | wiki.pcw.de


#!/bin/bash

nmcli c mod "Wired connection 1" ipv4.addresses 192.168.31.16/24 ipv4.method manual

nmcli con mod "Wired connection 1" ipv4.gateway 192.168.31.1

nmcli con mod "Wired connection 1" ipv4.dns "192.168.31.16,192.168.31.17"

nmcli c down "Wired connection 1" && nmcli c up "Wired connection 1"

Leave a Reply