mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-03 10:37:32 +00:00
Schema:
{
"protocol": {
"type": "string",
"attr": "IFLA_VLAN_PROTOCOL"
},
"id": {
"type": "uint",
"attr": "IFLA_VLAN_ID"
},
"flags": {
"type": "array",
"attr": "IFLA_VLAN_FLAGS",
"array": [
{
"type": "string"
}
]
},
"ingress_qos": {
"type": "array",
"attr": "IFLA_VLAN_INGRESS_QOS",
"array": [
{
"type": "dict",
"dict": {
"from": {
"type": "uint"
},
"to": {
"type": "uint"
}
}
}
]
},
"egress_qos": {
"type": "array",
"attr": "IFLA_VLAN_EGRESS_QOS",
"array": [
{
"type": "dict",
"dict": {
"from": {
"type": "uint"
},
"to": {
"type": "uint"
}
}
}
]
}
}
$ ip link add name eth0.42 link eth0 type vlan id 42
$ ip -details -json link show
[{
"ifindex": 30,
"ifname": "eth0.42",
"link": "eth0",
"flags": ["BROADCAST","MULTICAST"],
"mtu": 1500,
"qdisc": "noop",
"operstate": "DOWN",
"linkmode": "DEFAULT",
"group": "default",
"link_type": "ether",
"address": "08:00:27:db:31:88",
"broadcast": "ff:ff:ff:ff:ff:ff",
"promiscuity": 0,
"linkinfo": {
"info_kind": "vlan",
"info_data": {
"protocol": "802.1Q",
"id": 42,
"flags": ["REORDER_HDR"]
}
},
"inet6_addr_gen_mode": "eui64",
"num_tx_queues": 1,
"num_rx_queues": 1,
"gso_max_size": 65536,
"gso_max_segs": 65535
}
]
Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| ifcfg | ||
| ip6tunnel.c | ||
| ip_common.h | ||
| ip_print.c | ||
| ip.c | ||
| ipaddress.c | ||
| ipaddrlabel.c | ||
| ipfou.c | ||
| ipila.c | ||
| ipl2tp.c | ||
| iplink_bond_slave.c | ||
| iplink_bond.c | ||
| iplink_bridge_slave.c | ||
| iplink_bridge.c | ||
| iplink_can.c | ||
| iplink_dummy.c | ||
| iplink_geneve.c | ||
| iplink_hsr.c | ||
| iplink_ifb.c | ||
| iplink_ipoib.c | ||
| iplink_ipvlan.c | ||
| iplink_macvlan.c | ||
| iplink_nlmon.c | ||
| iplink_team.c | ||
| iplink_vcan.c | ||
| iplink_vlan.c | ||
| iplink_vrf.c | ||
| iplink_vxcan.c | ||
| iplink_vxlan.c | ||
| iplink_xdp.c | ||
| iplink_xstats.c | ||
| iplink.c | ||
| ipmacsec.c | ||
| ipmaddr.c | ||
| ipmonitor.c | ||
| ipmroute.c | ||
| ipneigh.c | ||
| ipnetconf.c | ||
| ipnetns.c | ||
| ipntable.c | ||
| ipprefix.c | ||
| iproute_lwtunnel.c | ||
| iproute_lwtunnel.h | ||
| iproute.c | ||
| iprule.c | ||
| ipseg6.c | ||
| iptoken.c | ||
| iptunnel.c | ||
| iptuntap.c | ||
| ipvrf.c | ||
| ipxfrm.c | ||
| link_gre6.c | ||
| link_gre.c | ||
| link_ip6tnl.c | ||
| link_iptnl.c | ||
| link_veth.c | ||
| link_vti6.c | ||
| link_vti.c | ||
| Makefile | ||
| routef | ||
| routel | ||
| rtm_map.c | ||
| rtmon.c | ||
| rtpr | ||
| static-syms.c | ||
| tcp_metrics.c | ||
| tunnel.c | ||
| tunnel.h | ||
| xdp.h | ||
| xfrm_monitor.c | ||
| xfrm_policy.c | ||
| xfrm_state.c | ||
| xfrm.h | ||