Seeing as Ubuntu 17.10 is quite new at this point in time, there wasn't a great deal of info as to how to statically configure the LAN adapter(s). So without going into too much detail, you now need to know about netplan in order to configure Ubuntu NIC's. My understanding is that this provides a more platform agnostic platform for LAN configuration, in order to provide a more consistent method across local, VM and cloud deployments.
Anyways, here it is - you want to edit /etc/netplan/01-netcfg.yaml. Mine started out looking like this (DHCP auto config for LAN adapter ens160 - note that your LAN adapter might be called something else):
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
ens160:
dhcp4: yes
I had to revise it as follows:
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
ens160:
dhcp4: no
dhcp6: no
addresses: [192.168.0.10/24]
gateway4: 192.168.0.1
nameservers:
addresses: [8.8.8.8,8.8.4.4]
No comments:
Post a Comment