centos7通过usb使用手机网络
将手机的usb模式设置为“网络共享模式”
//查看是否识别usb网络端口
[root@cs ~]# ip addr show
//一般会多一个“enp0s45u3”之类的网络接口
[root@lhc ~]# dhclient enp0s18f2u3
[root@lhc ~]# ping ww.baidu.com
//能通就表示可以上网了
借鉴文章地址:
https://blog.csdn.net/weixin_34025151/article/details/91997876