How Assign Ip Address in Ubuntu 18 04 Command Line?
Contents How Assign Ip Address in Ubuntu 18.04 Command Line? to Assign a Static Ip Address to Ens3 Interface, Edit the File as Follows: Set Dhcp to Dhcp4: No...
Contents
How assign IP address in Ubuntu 18.04 command line?
To assign a static IP address to ens3 interface, edit the file as follows:
- Set DHCP to dhcp4: no .
- Specify the static IP address 192.168. 121.199/24 . …
- Specify the gateway gateway4: 192.168. 121.1.
- Under nameservers , set the IP addresses of the nameservers addresses: [8.8. 8.8, 1.1.
9 мар. 2020 г.
Must Read
How assign IP address in Ubuntu using command line?
Step 3: Use “ip addr add X.X.X.X/24 dev eth0” command to change the IP address. In our example X.X.X.X address is 10.0. 2.16. Step 4: Execute the above command and IP address has been changed successfully.