發新話題
打印

[UNIX] Enable or Disable network of laptop under Ubuntu

本主題被作者加入到個人文集中

Enable or Disable network of laptop under Ubuntu



Enable or Disable network
sudo lshw -C network

This listed the "logical name" values:

logical name: enp0s25
logical name: docker0
logical name: enp0s29f7u7c4i2

Laptop

sudo vi /etc/network/interfaces

Add the logical name to the end of the file:

auto enp0s25
iface enp0s25 inet dhcp

Finally, turn the interface on:

sudo ifup enp0s25

TOP

發新話題