iprelated
Fixed IP
# View network interface
ip a
# View Netplan configuration
netplan get
# Edit Netplan profile
sudo nano /etc/netplan/01-netcfg. aml
# (may be different, e.g. 00-installer-config.yaml)
# Configure static IP
network:
version: 2
render: networkd # or NetworkManager (if using GUI)
ethernets:
enss33: # Replace with your card name
dhcp4: no # Disable DHCP
addresss:
- 192. 68.1 00/24 # Static IP and subnet masks
routes:
- to: default
via: 192. 68.1 # Left new gateway configuration
nameservers:
addresses:
- 8. 8.8
- 8.8.4.4 # DNS Server
# Application configuration
sudo netplan application
# Validation configuration
ip route show default