Portál AbcLinuxu, 21. listopadu 2025 08:50
Řešení dotazu:
Stejně jako u jakéhokoli jiného rozhraní:
ip link set ... address ...
Pokud potřebujete něco jiného, budete muset popsat podrobněji, o co vám jde.
/ int ethernet set mac-address=xx:xx:xx:xx:xx:xx jmeno_interfejsu
> int wireless set mac-address=64:D1:54:2C:F7:F7 name=wlan0 numbers: 2A "int wir pri" ji tam vidí.
> int vlan set Change properties of one or several items. <numbers> -- List of item numbers arp -- Address Resolution Protocol arp-timeout -- comment -- Short description of the item disabled -- Defines whether item is ignored or used interface -- Physical interface to the network where are VLANs loop-protect -- loop-protect-disable-time -- loop-protect-send-interval -- mtu -- Maximum Transmit Unit name -- Name of the VLAN interface use-service-tag -- vlan-id -- Virtual LAN identificator or tag that is used to distinguish VLANs
Ale možná než moje hanění switchů bude lepší nám říct důvody proč chceš měnit MAC na těch VLAN interfacích? Možná zjistíme, že je problém někde jinde, než v těch switchích a pak je zbytečné tyhle debaty vést.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.