您的位置:首页 > 理论基础 > 计算机网络

ubuntu 16.04 网卡配置要点 和查看有几块网卡的命令

2016-09-04 12:12 387 查看
查看系统有几块网卡

lspci |grep -i Eth


或者用

ip link


重启网络命令,使用最新的systemctl

systemctl restart networking


编辑网卡配置文件

vi /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp0s3
iface enp0s3 inet dhcp

auto enp0s8
iface enp0s8 inet static
address 1.1.1.2
mask 255.255.255.0
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ubuntu 网卡 网络