Ubuntu18配置网卡
发布日期:2022-02-12 16:07:02 浏览次数:9 分类:技术文章

本文共 437 字,大约阅读时间需要 1 分钟。

Ubuntu 18:

cat /etc/netplan/01-network-manager-all.yaml 

# Let NetworkManager manage all devices on this system
network:
  version: 2
#  renderer: NetworkManager
  ethernets:
    wlp3s0:
      addresses: [192.168.0.113/24]
      gateway4: 192.168.0.1
      nameservers:
        addresses: [8.8.8.8]

运行: netplan apply

Ubuntu 16:

静态:

auto wlp3s0

iface wlp3s0 inet static

address 192.168.0.199

netmask 255.255.255.0

gateway 192.168.0.1

DHCP:

auto enp0s3

iface enp0s3 inet dhcp

转载地址:https://blog.csdn.net/wellsmith/article/details/95761750 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Haproxy配置
下一篇:Tugnsten Fabric-MPLS-三层转发

发表评论

最新留言

很好
[***.229.124.182]2024年04月10日 20时27分40秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章