美文网首页
ubuntu 16.0.4如何配合网卡

ubuntu 16.0.4如何配合网卡

作者: cuteximi_1995 | 来源:发表于2018-05-07 19:33 被阅读0次

1.查看网卡信息

$ifconfig -a
image.png

2.启用网卡ens33

$ifconfig  ens33 up

3.配置

$sudo vi /etc/network/interfaces

输入:
auto ens33
iface ens33 inet static  #设置静态IP,动态的是将static修改为dhcp
address 192.168.33.95   # 如果为动态IP以下的都不用配置。
netmask 255.255.0.0
gateway 192.168.33.1

相关文章

网友评论

      本文标题:ubuntu 16.0.4如何配合网卡

      本文链接:https://www.haomeiwen.com/subject/wnwvrftx.html