Ubuntu 18.04 Client
sudo vim /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: yesApply the changes and check the IP address.
sudo netplan apply
ip add
...
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 08:00:27:15:b4:72 brd ff:ff:ff:ff:ff:ff
inet 192.168.43.155/24 brd 192.168.43.255 scope global dynamic enp0s3
valid_lft 436sec preferred_lft 436sec
inet6 fe80::a00:27ff:fe15:b472/64 scope link
valid_lft forever preferred_lft foreverFedora 29 Client
Set the interface to obtain IP address automatically.
nmcli connection modify enp0s8 ipv4.method auto nmcli connection down enp0s8 nmcli connection up enp0s8
Check the IP address
ip add
...
3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 08:00:27:df:3b:07 brd ff:ff:ff:ff:ff:ff
inet 192.168.43.100/24 brd 192.168.43.255 scope global dynamic noprefixroute enp0s8
valid_lft 514sec preferred_lft 514sec
inet6 fe80::3725:59fe:44a3:c665/64 scope link noprefixroute
valid_lft forever preferred_lft foreverHuraay!! You have successfully set up your DHCP server on.
Pages: 1 2

