2023-03-01

[nmcli] mac ip match

sudo nmcli connection modify eth0 ipv4.method shared
sudo nmcli connection modify eth0 ipv4.dhcp-client-id "my_client_id"
sudo nmcli connection modify eth0 ipv4.dhcp-timeout 120
sudo nmcli connection modify eth0 ipv4.dhcp-hostname "my_hostname"
sudo nmcli connection modify eth0 ipv4.dhcp-lease-time 3600
sudo nmcli connection modify eth0 ipv4.dhcp-send-hostname yes
sudo nmcli connection modify eth0 ipv4.dhcp-send-client-id yes
sudo nmcli connection modify eth0 ipv4.dhcp-hostname "my_hostname"
sudo nmcli connection modify eth0 +ipv4.dhcp-hostname-mac 00:11:22:33:44:55,192.168.1.50
sudo nmcli connection modify eth0 +ipv4.dhcp-hostname-mac 00:AA:BB:CC:DD:EE,192.168.1.51

댓글 없음:

댓글 쓰기

도커 내부의 hosts에 주소 추가하기

echo "192.168.10.19 happycpu-P620.local" | sudo tee -a /etc/hosts