1
Sítě / Re:Význam ip link alias / altname
« kdy: 29. 11. 2025, 19:18:50 »
Tak ještě jsem dohledal, že alias se uloží do kernel atributu IFLA_IFALIAS a altname se uloží do IFLA_ALT_IFNAME.
Když se podíváš k dokumentaci k netlinku na https://www.infradead.org/~tgr/libnl/doc/route.html#link_object
tak v sekci 3.5.11 ifAlias je zmíněno
Případně na https://man.freebsd.org/cgi/man.cgi?rtnetlink(4) jde dohledat
Takže je to skutečně jen informativní popisek interface.
Když se podíváš k dokumentaci k netlinku na https://www.infradead.org/~tgr/libnl/doc/route.html#link_object
tak v sekci 3.5.11 ifAlias je zmíněno
Citace
Alternative name for the link, primarly used for SNMP IfAlias.
Případně na https://man.freebsd.org/cgi/man.cgi?rtnetlink(4) jde dohledat
Citace
RTM_DELLINK
Deletes the interface specified by IFLA_IFNAME.
RTM_GETLINK
Fetches a single interface or all interfaces in the current VNET, de-
pending on the NLM_F_DUMP flag. Each interface is reported as a
RTM_NEWLINK message. The following filters are recognised by the ker-
nel:
ifi_index interface index
IFLA_IFNAME interface name
IFLA_ALT_IFNAME interface name
TLVs
IFLA_ADDRESS
(binary) Llink-level interface address (MAC).
IFLA_BROADCAST
(binary) (readonly) Link-level broadcast address.
IFLA_IFNAME
(string) New interface name.
IFLA_IFALIAS
(string) Interface description.
Takže je to skutečně jen informativní popisek interface.