Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
375 B
2
Indexable
Never
ip link
nmcli con add con-name lab ifname enX type ethernet \
ipv4.method manual \
ipv4.address 172.25.250.11/24 ipv4.gateway 172.25.250.254


nmcli con mod "lab" connection.autoconnect yes
nmcli con mod "Wired connection 1" connection.autoconnect no

nmcli con mod "lab" +ipv4.addresses 10.0.1.1/24

 echo "10.0.1.1 private" >> /etc/hosts

systemctl reboot

ping -c3 serverb