Ubuntu ap桥接到有线

/etc/netplan/01-netcfg.yaml

network:
  version: 2
  renderer: NetworkManager  

  ethernets:
    eth0:
      dhcp4: yes

    eth1:
      dhcp4: no
      dhcp6: no

  bridges:
    br0:
      interfaces: [eth1, wlan0]
      dhcp4: yes
      dhcp6: no

  wifis:
    wlan0:
      dhcp4: no
      dhcp6: no
      access-points:
        "R5C":
          mode: ap
          band: 2.4GHz
          channel: 6
          password: "88888888"

netplan generate

netplan apply

posted @ 2026-03-20 20:03  ahuo  阅读(12)  评论(0)    收藏  举报