ubuntu22 查看新网卡并启用

您所在的位置:网站首页 怎样启用无线网卡设备 ubuntu22 查看新网卡并启用

ubuntu22 查看新网卡并启用

#ubuntu22 查看新网卡并启用| 来源: 网络整理| 查看: 265

查看所有网卡 ip link 查看ip ip addr

发现网卡enp0s8还没有,说明没有启用

启用enp0s8网卡 sudo ip link set enp0s8 up

或者

sudo apt install -y net-tools sudo ifconfig enp0s8 up

此时dhcp4未启动,不能自动获取ipv4的ip

启用dhcp4

sudo apt install -y vim sudo vi /etc/netplan/00-installer-config.yaml

network: ethernets: enp0s3: dhcp4: true enp0s8: dhcp4: true version: 2

其中

enp0s8: dhcp4: true

是新添加的

配置生效 sudo netplan apply 看ipv4的ip是否有 ip addr

或者

ifconfig

如果新网卡有ipv4地址,说明成功了



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3