ubuntu22 查看新网卡并启用 |
您所在的位置:网站首页 › 怎样启用无线网卡设备 › ubuntu22 查看新网卡并启用 |
查看所有网卡
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 启用dhcp4sudo 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 |