netplan.io .yaml을 사용하여 VLAN의 Mac 주소를 변경할 수 있습니까?
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: true
dhcp6: true
vlans:
vlan10:
dhcp4: true
dhcp6: true
id: 10
link: eno1
macaddress: XX:XX:XX:XX:XX:XX
작동하지 않습니다.
편집: 문제가 해결되었습니다.macaddress가 잘못된 것 같습니다. 내 잘못이야, 미안. 이제는 잘 작동합니다.
다른 사용자의 경우 여기에서 완전한 01-eno1.yaml이 작동합니다.
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: true
dhcp4-overrides:
route-metric: 500
vlans:
vlan10:
dhcp4: true
dhcp4-overrides:
route-metric: 200
id: 10
link: eno1
macaddress: 00:00:00:00:00:10
vlan20:
dhcp4: true
dhcp4-overrides:
route-metric: 400
id: 20
link: eno1
macaddress: 00:00:00:00:00:20
vlan30:
dhcp4: true
dhcp4-overrides:
route-metric: 100
id: 30
link: eno1
macaddress: 00:00:00:00:00:30
vlan100:
dhcp4: true
dhcp4-overrides:
route-metric: 300
id: 100
link: eno1
macaddress: 00:00:00:00:01:00
vlan200:
dhcp4: true
dhcp4-overrides:
route-metric: 600
id: 200
link: eno1
macaddress: 00:00:00:00:02:00