[Kylin Operating System] Configure the network card and DNS under the command line

1. Environmental Description

 $ lsb_release -a

Please add a picture description

$ cat /etc/.kyinfo

Please add a picture description

$ ip addr

Please add a picture description
View network card name:

$ ifconfig

Please add a picture description

Second, configure the network card

$ sudo vim /etc/network/interfaces

Please add a picture description
Original config file:
Please add a picture description
Modified config file:
insert image description here

3. Configure DNS

$ sudo vim /etc/systemd/resolved.conf

Please add a picture description

Fourth, restart the network service

$ /etc/init.d/networking force-reload

Please add a picture description

$ /etc/init.d/networking restart

Please add a picture description

5. Access network verification

Please add a picture description
Please add a picture description

other

Situations where the network was previously inaccessible:

Please add a picture description

Please add a picture description

Guess you like

Origin blog.csdn.net/Cappuccino_jay/article/details/126012947