mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-02 19:04:46 +00:00
Schema
{
"external": {
"type": "bool",
"comment": "!tb[IFLA_GRE_COLLECT_METADATA]"
},
"remote": {
"type": "string",
"attr": "IFLA_GRE_REMOTE"
},
"local": {
"type": "string",
"attr": "IFLA_GRE_LOCAL"
},
"link": {
"type": "string",
"attr": "IFLA_GRE_LINK",
"mutually_exclusive": {
"link_index": {
"type": "uint",
}
}
},
"ttl": {
"type": "int",
"attr": "IFLA_GRE_TTL"
},
"tos": {
"type": "string",
"attr": "IFLA_GRE_TOS"
},
"pmtudisc": {
"type": "bool",
"attr": "IFLA_GRE_PMTUDISC"
},
"ikey": {
"type": "string",
"attr": "IFLA_GRE_IKEY"
},
"okey": {
"type": "string",
"attr": "IFLA_GRE_OKEY"
},
"iseq": {
"type": "bool",
"attr": "IFLA_GRE_IFLAGS & GRE_SEQ"
},
"oseq": {
"type": "bool",
"attr": "IFLA_GRE_OFLAGS & GRE_SEQ"
},
"icsum": {
"type": "bool",
"attr": "IFLA_GRE_IFLAGS & GRE_CSUM"
},
"ocsum": {
"type": "bool",
"attr": "IFLA_GRE_OFLAGS & GRE_CSUM"
},
"ignore_df": {
"type": "bool",
"attr": "IFLA_GRE_IGNORE_DF"
},
"encap": {
"type": "dict",
"attr": "IFLA_GRE_ENCAP_TYPE != TUNNEL_ENCAP_NONE",
"dict": {
"type": {
"type": "string",
"attr": "IFLA_GRE_ENCAP_TYPE"
},
"sport": {
"type": "uint",
"attr": "IFLA_GRE_ENCAP_SPORT"
},
"dport": {
"type": "uint",
"attr": "IFLA_GRE_ENCAP_DPORT"
},
"csum": {
"type": "bool",
"attr": "TUNNEL_ENCAP_FLAG_CSUM"
},
"csum6": {
"type": "bool",
"attr": "TUNNEL_ENCAP_FLAG_CSUM6"
},
"remcsum": {
"type": "bool",
"attr": "TUNNEL_ENCAP_FLAG_REMCSUM"
}
}
}
}
$ ip link show
$ ip tunnel add tun42 mode gre local 192.0.2.42 remote 203.0.113.42 key 42
$ ip link show
10: gre0@NONE: <NOARP> mtu 1476 qdisc noop state DOWN mode DEFAULT group
default
link/gre 0.0.0.0 brd 0.0.0.0
11: gretap0@NONE: <BROADCAST,MULTICAST> mtu 1462 qdisc noop state DOWN
mode DEFAULT group default qlen 1000
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
12: tun42@NONE: <POINTOPOINT,NOARP> mtu 1472 qdisc noop state DOWN mode
DEFAULT group default
link/gre 192.0.2.42 peer 203.0.113.42
$ ip -details -json link show
[{
"ifindex": 10,
"ifname": "gre0",
"link": null,
"flags": ["NOARP"],
"mtu": 1476,
"qdisc": "noop",
"operstate": "DOWN",
"linkmode": "DEFAULT",
"group": "default",
"link_type": "gre",
"address": "0.0.0.0",
"broadcast": "0.0.0.0",
"promiscuity": 0,
"linkinfo": {
"info_kind": "gre",
"info_data": {
"remote": "any",
"local": "any",
"ttl": 0,
"pmtudisc": false
}
},
"inet6_addr_gen_mode": "eui64",
"num_tx_queues": 1,
"num_rx_queues": 1,
"gso_max_size": 65536,
"gso_max_segs": 65535
},{
"ifindex": 11,
"ifname": "gretap0",
"link": null,
"flags": ["BROADCAST","MULTICAST"],
"mtu": 1462,
"qdisc": "noop",
"operstate": "DOWN",
"linkmode": "DEFAULT",
"group": "default",
"txqlen": 1000,
"link_type": "ether",
"address": "00:00:00:00:00:00",
"broadcast": "ff:ff:ff:ff:ff:ff",
"promiscuity": 0,
"linkinfo": {
"info_kind": "gretap",
"info_data": {
"remote": "any",
"local": "any",
"ttl": 0,
"pmtudisc": false
}
},
"inet6_addr_gen_mode": "eui64",
"num_tx_queues": 1,
"num_rx_queues": 1,
"gso_max_size": 65536,
"gso_max_segs": 65535
},{
"ifindex": 12,
"ifname": "tun42",
"link": null,
"flags": ["POINTOPOINT","NOARP"],
"mtu": 1472,
"qdisc": "noop",
"operstate": "DOWN",
"linkmode": "DEFAULT",
"group": "default",
"link_type": "gre",
"address": "192.0.2.42",
"link_pointtopoint": true,
"broadcast": "203.0.113.42",
"promiscuity": 0,
"linkinfo": {
"info_kind": "gre",
"info_data": {
"remote": "203.0.113.42",
"local": "192.0.2.42",
"ttl": 0,
"pmtudisc": true,
"ikey": "0.0.0.42",
"okey": "0.0.0.42"
}
},
"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 | ||