chore: Change IP

This commit is contained in:
MystiPanda 2024-03-11 16:05:09 +08:00
parent 6aa5c79332
commit 97bee17e4e

View File

@ -2,4 +2,4 @@ nic=$(route -n get default | grep "interface" | awk '{print $2}')
hardware_port=$(networksetup -listallhardwareports | awk -v dev="$nic" '/Hardware Port/{port=$3} /Device:/{if ($2 == dev) {print port; exit}}')
networksetup -setdnsservers $hardware_port 192.18.0.2
networksetup -setdnsservers $hardware_port 223.5.5.5