lnlidawei

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

[ubuntu]:ubuntu2402——网络配置

 

 

 

 

一、ubuntu2402之网络配置(重点内容:网络配置的格式)

wit@ubuntu:~/ubuntu2402/lidawei/tmp$ sudo cat /etc/netplan/90-NM-14f59568-5076-387a-aef6-10adfcca2e26.yaml 
network:
  version: 2
  ethernets:
    ens33:
      renderer: NetworkManager
      match: {}
      addresses:
      - "10.10.10.70/24"
      - "10.10.10.71/24"
      - "10.10.10.72/24"
      nameservers:
        addresses:
        - 223.5.5.5
        - 223.6.6.6
      networkmanager:
        uuid: "14f59568-5076-387a-aef6-10adfcca2e26"
        name: "netplan-ens33"
        passthrough:
          connection.timestamp: "1742019805"
          ipv4.address1: "10.10.10.70/24,10.10.10.1"
          ipv4.method: "manual"
          ipv6.method: "disabled"
          ipv6.ip6-privacy: "-1"
          proxy._: ""

 

 

 

二、说明

 

  1、  核心内容是网络配置的格式

 

posted on 2025-03-15 15:18  lnlidawei  阅读(42)  评论(0)    收藏  举报