You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5708: eno1.4096: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UNKNOWN group default qlen 1000
link/ether 5a:ab:f3:e7:bb:63 brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 maxmtu 65535
vxlan id 4096 group 239.0.0.1 dev eno1 srcport 0 0 dstport 4789 ttl auto ageing 300 udpcsum noudp6zerocsumtx noudp6zerocsumrx numtxqueues 1 numrxqueues 1 gso_max_size 64000 gso_max_segs 64
inet6 fe80::58ab:f3ff:fee7:bb63/64 scope link
valid_lft forever preferred_lft forever
ip -d a s eno1.4097
5709: eno1.4097: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UNKNOWN group default qlen 1000
link/ether e6:6b:78:99:0a:b1 brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 maxmtu 65535
vxlan id 4097 remote 192.168.100.2 dev eno1 srcport 0 0 dstport 4789 ttl auto ageing 300 udpcsum noudp6zerocsumtx noudp6zerocsumrx numtxqueues 1 numrxqueues 1 gso_max_size 64000 gso_max_segs 64
inet6 fe80::e46b:78ff:fe99:ab1/64 scope link
valid_lft forever preferred_lft forever
Compare ndb outputs or ipr outputs, i can't find out which cast mode the vxlan interface used, but use ip command, i can find group 239.0.0.1 and remote 192.168.100.2 to figure out which cast mode it used.
My problem is: is there any way to find out which cast mode the vxlan interface used by pyroute2?
Thanks a lot!
The text was updated successfully, but these errors were encountered:
is there any way to find out which cast mode the vxlan interface used by pyroute2?
Two vxlan interfaces: eno1.4096, eno1.4097
eno1.4096 use unicast
eno1.4097 use multicast
ndb.interfaces['eno1.4096']
{'alt_ifname_list': [], 'state': 'up', 'target': 'localhost', 'tflags': 0, 'family': 0, 'ifi_type': 1, 'index': 5708, 'flags': 69699, 'change': 1, 'address': '5a:ab:f3:e7:bb:63', 'broadcast': 'ff:ff:ff:ff:ff:ff', 'ifname': 'eno1.4096', 'mtu': 1450, 'qdisc': 'noqueue', 'txqlen': 1000, 'operstate': 'UNKNOWN', 'linkmode': 0, 'ifalias': None, 'group': 0, 'promiscuity': 0, 'num_tx_queues': 1, 'num_rx_queues': 1, 'proto_down': 0, 'gso_max_segs': 64, 'gso_max_size': 64000, 'carrier_up_count': 0, 'carrier_down_count': 0, 'min_mtu': 68, 'max_mtu': 65535, 'kind': 'vxlan', 'link': None, 'master': None, 'net_ns_pid': None, 'num_vf': None, 'ext_mask': None, 'carrier': 1, 'carrier_changes': 0, 'link_netnsid': None, 'phys_port_name': None, 'event': None, 'new_netnsid': None, 'if_netnsid': None, 'new_ifindex': None, 'alt_ifname': None, 'parent_dev_name': None, 'parent_dev_bus_name': None, 'gro_max_size': None, 'tso_max_size': None, 'tso_max_segs': None, 'slave_kind': None, 'xdp_attached': None, 'xdp_flags': None, 'xdp_prog_id': None, 'xdp_drv_prog_id': None, 'xdp_skb_prog_id': None, 'xdp_hw_prog_id': None, 'vxlan_id': 4096, 'vxlan_group': '239.0.0.1', 'vxlan_link': 4, 'vxlan_local': None, 'vxlan_ttl': 0, 'vxlan_tos': 0, 'vxlan_learning': 1, 'vxlan_ageing': 300, 'vxlan_limit': 0, 'vxlan_proxy': 0, 'vxlan_rsc': 0, 'vxlan_l2miss': 0, 'vxlan_l3miss': 0, 'vxlan_port': 4789, 'vxlan_group6': None, 'vxlan_local6': None, 'vxlan_udp_csum': 1, 'vxlan_udp_zero_csum6_tx': 0, 'vxlan_udp_zero_csum6_rx': 0, 'vxlan_remcsum_tx': 0, 'vxlan_remcsum_rx': 0, 'vxlan_collect_metadata': 0, 'vxlan_label': 0, 'vxlan_df': None}
ndb.interfaces['eno1.4097']
{'alt_ifname_list': [], 'state': 'up', 'target': 'localhost', 'tflags': 0, 'family': 0, 'ifi_type': 1, 'index': 5709, 'flags': 69699, 'change': 1, 'address': 'e6:6b:78:99:0a:b1', 'broadcast': 'ff:ff:ff:ff:ff:ff', 'ifname': 'eno1.4097', 'mtu': 1450, 'qdisc': 'noqueue', 'txqlen': 1000, 'operstate': 'UNKNOWN', 'linkmode': 0, 'ifalias': None, 'group': 0, 'promiscuity': 0, 'num_tx_queues': 1, 'num_rx_queues': 1, 'proto_down': 0, 'gso_max_segs': 64, 'gso_max_size': 64000, 'carrier_up_count': 0, 'carrier_down_count': 0, 'min_mtu': 68, 'max_mtu': 65535, 'kind': 'vxlan', 'link': None, 'master': None, 'net_ns_pid': None, 'num_vf': None, 'ext_mask': None, 'carrier': 1, 'carrier_changes': 0, 'link_netnsid': None, 'phys_port_name': None, 'event': None, 'new_netnsid': None, 'if_netnsid': None, 'new_ifindex': None, 'alt_ifname': None, 'parent_dev_name': None, 'parent_dev_bus_name': None, 'gro_max_size': None, 'tso_max_size': None, 'tso_max_segs': None, 'slave_kind': None, 'xdp_attached': None, 'xdp_flags': None, 'xdp_prog_id': None, 'xdp_drv_prog_id': None, 'xdp_skb_prog_id': None, 'xdp_hw_prog_id': None, 'vxlan_id': 4097, 'vxlan_group': '192.168.100.2', 'vxlan_link': 4, 'vxlan_local': None, 'vxlan_ttl': 0, 'vxlan_tos': 0, 'vxlan_learning': 1, 'vxlan_ageing': 300, 'vxlan_limit': 0, 'vxlan_proxy': 0, 'vxlan_rsc': 0, 'vxlan_l2miss': 0, 'vxlan_l3miss': 0, 'vxlan_port': 4789, 'vxlan_group6': None, 'vxlan_local6': None, 'vxlan_udp_csum': 1, 'vxlan_udp_zero_csum6_tx': 0, 'vxlan_udp_zero_csum6_rx': 0, 'vxlan_remcsum_tx': 0, 'vxlan_remcsum_rx': 0, 'vxlan_collect_metadata': 0, 'vxlan_label': 0, 'vxlan_df': None}
ipr.get_links(ifname='eno1.4096')
{'family': 0, '__align': (), 'ifi_type': 1, 'index': 5708, 'flags': 69699, 'change': 0, 'attrs': [('IFLA_IFNAME', 'eno1.4096'), ('IFLA_TXQLEN', 1000), ('IFLA_OPERSTATE', 'UNKNOWN'), ('IFLA_LINKMODE', 0), ('IFLA_MTU', 1450), ('IFLA_MIN_MTU', 68), ('IFLA_MAX_MTU', 65535), ('IFLA_GROUP', 0), ('IFLA_PROMISCUITY', 0), ('IFLA_NUM_TX_QUEUES', 1), ('IFLA_GSO_MAX_SEGS', 64), ('IFLA_GSO_MAX_SIZE', 64000), ('IFLA_NUM_RX_QUEUES', 1), ('IFLA_CARRIER', 1), ('IFLA_QDISC', 'noqueue'), ('IFLA_IFALIAS', ''), ('IFLA_CARRIER_CHANGES', 0), ('IFLA_PROTO_DOWN', 0), ('IFLA_CARRIER_UP_COUNT', 0), ('IFLA_CARRIER_DOWN_COUNT', 0), ('IFLA_MAP', {'mem_start': 0, 'mem_end': 0, 'base_addr': 0, 'irq': 0, 'dma': 0, 'port': 0}), ('IFLA_ADDRESS', '5a:ab:f3:e7:bb:63'), ('IFLA_BROADCAST', 'ff:ff:ff:ff:ff:ff'), ('IFLA_PAD', ''), ('IFLA_STATS64', {'rx_packets': 0, 'tx_packets': 13, 'rx_bytes': 0, 'tx_bytes': 824, 'rx_errors': 0, 'tx_errors': 0, 'rx_dropped': 0, 'tx_dropped': 0, 'multicast': 0, 'collisions': 0, 'rx_length_errors': 0, 'rx_over_errors': 0, 'rx_crc_errors': 0, 'rx_frame_errors': 0, 'rx_fifo_errors': 0, 'rx_missed_errors': 0, 'tx_aborted_errors': 0, 'tx_carrier_errors': 0, 'tx_fifo_errors': 0, 'tx_heartbeat_errors': 0, 'tx_window_errors': 0, 'rx_compressed': 0, 'tx_compressed': 0}), ('IFLA_STATS', {'rx_packets': 0, 'tx_packets': 13, 'rx_bytes': 0, 'tx_bytes': 824, 'rx_errors': 0, 'tx_errors': 0, 'rx_dropped': 0, 'tx_dropped': 0, 'multicast': 0, 'collisions': 0, 'rx_length_errors': 0, 'rx_over_errors': 0, 'rx_crc_errors': 0, 'rx_frame_errors': 0, 'rx_fifo_errors': 0, 'rx_missed_errors': 0, 'tx_aborted_errors': 0, 'tx_carrier_errors': 0, 'tx_fifo_errors': 0, 'tx_heartbeat_errors': 0, 'tx_window_errors': 0, 'rx_compressed': 0, 'tx_compressed': 0}), ('IFLA_XDP', {'attrs': [('IFLA_XDP_ATTACHED', None)]}), ('IFLA_LINKINFO', {'attrs': [('IFLA_INFO_KIND', 'vxlan'), ('IFLA_INFO_DATA', {'attrs': [('IFLA_VXLAN_ID', 4096), ('IFLA_VXLAN_GROUP', '239.0.0.1'), ('IFLA_VXLAN_LINK', 4), ('IFLA_VXLAN_TTL', 0), ('IFLA_VXLAN_TTL_INHERIT', True), ('IFLA_VXLAN_TOS', 0), ('IFLA_VXLAN_LABEL', 0), ('IFLA_VXLAN_LEARNING', 1), ('IFLA_VXLAN_PROXY', 0), ('IFLA_VXLAN_RSC', 0), ('IFLA_VXLAN_L2MISS', 0), ('IFLA_VXLAN_L3MISS', 0), ('IFLA_VXLAN_COLLECT_METADATA', 0), ('IFLA_VXLAN_AGEING', 300), ('IFLA_VXLAN_LIMIT', 0), ('IFLA_VXLAN_PORT', 4789), ('IFLA_VXLAN_UDP_CSUM', 1), ('IFLA_VXLAN_UDP_ZERO_CSUM6_TX', 0), ('IFLA_VXLAN_UDP_ZERO_CSUM6_RX', 0), ('IFLA_VXLAN_REMCSUM_TX', 0), ('IFLA_VXLAN_REMCSUM_RX', 0), ('IFLA_VXLAN_PORT_RANGE', {'low': 0, 'high': 0})]})]}), ('IFLA_AF_SPEC', {'attrs': [('AF_INET', {'dummy': 65668, 'forwarding': 1, 'mc_forwarding': 0, 'proxy_arp': 0, 'accept_redirects': 0, 'secure_redirects': 0, 'send_redirects': 0, 'shared_media': 1, 'rp_filter': 1, 'accept_source_route': 0, 'bootp_relay': 0, 'log_martians': 0, 'tag': 0, 'arpfilter': 0, 'medium_id': 0, 'noxfrm': 0, 'nopolicy': 0, 'force_igmp_version': 0, 'arp_announce': 0, 'arp_ignore': 0, 'promote_secondaries': 0, 'arp_accept': 0, 'arp_notify': 0, 'accept_local': 0, 'src_vmark': 0, 'proxy_arp_pvlan': 0, 'route_localnet': 0, 'igmpv2_unsolicited_report_interval': 10000, 'igmpv3_unsolicited_report_interval': 1000}), ('AF_INET6', {'attrs': [('IFLA_INET6_FLAGS', 2147483664), ('IFLA_INET6_CACHEINFO', {'max_reasm_len': 65535, 'tstamp': 154155502, 'reachable_time': 28800, 'retrans_time': 1000}), ('IFLA_INET6_CONF', {'forwarding': 0, 'hop_limit': 64, 'mtu': 1450, 'accept_ra': 1, 'accept_redirects': 0, 'autoconf': 0, 'dad_transmits': 1, 'router_solicitations': 4294967295, 'router_solicitation_interval': 4000, 'router_solicitation_delay': 1000, 'use_tempaddr': 0, 'temp_valid_lft': 604800, 'temp_preferred_lft': 86400, 'regen_max_retry': 3, 'max_desync_factor': 600, 'max_addresses': 16, 'force_mld_version': 0, 'accept_ra_defrtr': 1, 'accept_ra_pinfo': 1, 'accept_ra_rtr_pref': 1, 'router_probe_interval': 60000, 'accept_ra_rt_info_max_plen': 0, 'proxy_ndp': 0, 'optimistic_dad': 0, 'accept_source_route': 0, 'mc_forwarding': 0, 'disable_ipv6': 0, 'accept_dad': 1, 'force_tllao': 0, 'ndisc_notify': 0}), ('IFLA_INET6_STATS', {'num': 37, 'inpkts': 0, 'inoctets': 0, 'indelivers': 0, 'outforwdatagrams': 0, 'outpkts': 13, 'outoctets': 824, 'inhdrerrors': 0, 'intoobigerrors': 0, 'innoroutes': 0, 'inaddrerrors': 0, 'inunknownprotos': 0, 'intruncatedpkts': 0, 'indiscards': 0, 'outdiscards': 0, 'outnoroutes': 0, 'reasmtimeout': 0, 'reasmreqds': 0, 'reasmoks': 0, 'reasmfails': 0, 'fragoks': 0, 'fragfails': 0, 'fragcreates': 0, 'inmcastpkts': 0, 'outmcastpkts': 13, 'inbcastpkts': 0, 'outbcastpkts': 0, 'inmcastoctets': 0, 'outmcastoctets': 824, 'inbcastoctets': 0, 'outbcastoctets': 0, 'csumerrors': 0, 'noectpkts': 0, 'ect1pkts': 0, 'ect0pkts': 0, 'cepkts': 0}), ('IFLA_INET6_ICMP6STATS', {'num': 6, 'inmsgs': 0, 'inerrors': 0, 'outmsgs': 13, 'outerrors': 0, 'csumerrors': 0}), ('IFLA_INET6_TOKEN', '::'), ('IFLA_INET6_ADDR_GEN_MODE', 0)]})]})], 'header': {'length': 1552, 'type': 16, 'flags': 2, 'sequence_number': 270, 'pid': 2648916503, 'error': None, 'target': 'localhost', 'stats': Stats(qsize=0, delta=0, delay=0)}, 'state': 'up', 'event': 'RTM_NEWLINK'}
ipr.get_links(ifname='eno1.4097')
{'family': 0, '__align': (), 'ifi_type': 1, 'index': 5709, 'flags': 69699, 'change': 0, 'attrs': [('IFLA_IFNAME', 'eno1.4097'), ('IFLA_TXQLEN', 1000), ('IFLA_OPERSTATE', 'UNKNOWN'), ('IFLA_LINKMODE', 0), ('IFLA_MTU', 1450), ('IFLA_MIN_MTU', 68), ('IFLA_MAX_MTU', 65535), ('IFLA_GROUP', 0), ('IFLA_PROMISCUITY', 0), ('IFLA_NUM_TX_QUEUES', 1), ('IFLA_GSO_MAX_SEGS', 64), ('IFLA_GSO_MAX_SIZE', 64000), ('IFLA_NUM_RX_QUEUES', 1), ('IFLA_CARRIER', 1), ('IFLA_QDISC', 'noqueue'), ('IFLA_IFALIAS', ''), ('IFLA_CARRIER_CHANGES', 0), ('IFLA_PROTO_DOWN', 0), ('IFLA_CARRIER_UP_COUNT', 0), ('IFLA_CARRIER_DOWN_COUNT', 0), ('IFLA_MAP', {'mem_start': 0, 'mem_end': 0, 'base_addr': 0, 'irq': 0, 'dma': 0, 'port': 0}), ('IFLA_ADDRESS', 'e6:6b:78:99:0a:b1'), ('IFLA_BROADCAST', 'ff:ff:ff:ff:ff:ff'), ('IFLA_PAD', ''), ('IFLA_STATS64', {'rx_packets': 0, 'tx_packets': 11, 'rx_bytes': 0, 'tx_bytes': 712, 'rx_errors': 0, 'tx_errors': 0, 'rx_dropped': 0, 'tx_dropped': 0, 'multicast': 0, 'collisions': 0, 'rx_length_errors': 0, 'rx_over_errors': 0, 'rx_crc_errors': 0, 'rx_frame_errors': 0, 'rx_fifo_errors': 0, 'rx_missed_errors': 0, 'tx_aborted_errors': 0, 'tx_carrier_errors': 0, 'tx_fifo_errors': 0, 'tx_heartbeat_errors': 0, 'tx_window_errors': 0, 'rx_compressed': 0, 'tx_compressed': 0}), ('IFLA_STATS', {'rx_packets': 0, 'tx_packets': 11, 'rx_bytes': 0, 'tx_bytes': 712, 'rx_errors': 0, 'tx_errors': 0, 'rx_dropped': 0, 'tx_dropped': 0, 'multicast': 0, 'collisions': 0, 'rx_length_errors': 0, 'rx_over_errors': 0, 'rx_crc_errors': 0, 'rx_frame_errors': 0, 'rx_fifo_errors': 0, 'rx_missed_errors': 0, 'tx_aborted_errors': 0, 'tx_carrier_errors': 0, 'tx_fifo_errors': 0, 'tx_heartbeat_errors': 0, 'tx_window_errors': 0, 'rx_compressed': 0, 'tx_compressed': 0}), ('IFLA_XDP', {'attrs': [('IFLA_XDP_ATTACHED', None)]}), ('IFLA_LINKINFO', {'attrs': [('IFLA_INFO_KIND', 'vxlan'), ('IFLA_INFO_DATA', {'attrs': [('IFLA_VXLAN_ID', 4097), ('IFLA_VXLAN_GROUP', '192.168.100.2'), ('IFLA_VXLAN_LINK', 4), ('IFLA_VXLAN_TTL', 0), ('IFLA_VXLAN_TTL_INHERIT', True), ('IFLA_VXLAN_TOS', 0), ('IFLA_VXLAN_LABEL', 0), ('IFLA_VXLAN_LEARNING', 1), ('IFLA_VXLAN_PROXY', 0), ('IFLA_VXLAN_RSC', 0), ('IFLA_VXLAN_L2MISS', 0), ('IFLA_VXLAN_L3MISS', 0), ('IFLA_VXLAN_COLLECT_METADATA', 0), ('IFLA_VXLAN_AGEING', 300), ('IFLA_VXLAN_LIMIT', 0), ('IFLA_VXLAN_PORT', 4789), ('IFLA_VXLAN_UDP_CSUM', 1), ('IFLA_VXLAN_UDP_ZERO_CSUM6_TX', 0), ('IFLA_VXLAN_UDP_ZERO_CSUM6_RX', 0), ('IFLA_VXLAN_REMCSUM_TX', 0), ('IFLA_VXLAN_REMCSUM_RX', 0), ('IFLA_VXLAN_PORT_RANGE', {'low': 0, 'high': 0})]})]}), ('IFLA_AF_SPEC', {'attrs': [('AF_INET', {'dummy': 65668, 'forwarding': 1, 'mc_forwarding': 0, 'proxy_arp': 0, 'accept_redirects': 0, 'secure_redirects': 0, 'send_redirects': 0, 'shared_media': 1, 'rp_filter': 1, 'accept_source_route': 0, 'bootp_relay': 0, 'log_martians': 0, 'tag': 0, 'arpfilter': 0, 'medium_id': 0, 'noxfrm': 0, 'nopolicy': 0, 'force_igmp_version': 0, 'arp_announce': 0, 'arp_ignore': 0, 'promote_secondaries': 0, 'arp_accept': 0, 'arp_notify': 0, 'accept_local': 0, 'src_vmark': 0, 'proxy_arp_pvlan': 0, 'route_localnet': 0, 'igmpv2_unsolicited_report_interval': 10000, 'igmpv3_unsolicited_report_interval': 1000}), ('AF_INET6', {'attrs': [('IFLA_INET6_FLAGS', 2147483664), ('IFLA_INET6_CACHEINFO', {'max_reasm_len': 65535, 'tstamp': 154192641, 'reachable_time': 21492, 'retrans_time': 1000}), ('IFLA_INET6_CONF', {'forwarding': 0, 'hop_limit': 64, 'mtu': 1450, 'accept_ra': 1, 'accept_redirects': 0, 'autoconf': 0, 'dad_transmits': 1, 'router_solicitations': 4294967295, 'router_solicitation_interval': 4000, 'router_solicitation_delay': 1000, 'use_tempaddr': 0, 'temp_valid_lft': 604800, 'temp_preferred_lft': 86400, 'regen_max_retry': 3, 'max_desync_factor': 600, 'max_addresses': 16, 'force_mld_version': 0, 'accept_ra_defrtr': 1, 'accept_ra_pinfo': 1, 'accept_ra_rtr_pref': 1, 'router_probe_interval': 60000, 'accept_ra_rt_info_max_plen': 0, 'proxy_ndp': 0, 'optimistic_dad': 0, 'accept_source_route': 0, 'mc_forwarding': 0, 'disable_ipv6': 0, 'accept_dad': 1, 'force_tllao': 0, 'ndisc_notify': 0}), ('IFLA_INET6_STATS', {'num': 37, 'inpkts': 0, 'inoctets': 0, 'indelivers': 0, 'outforwdatagrams': 0, 'outpkts': 11, 'outoctets': 712, 'inhdrerrors': 0, 'intoobigerrors': 0, 'innoroutes': 0, 'inaddrerrors': 0, 'inunknownprotos': 0, 'intruncatedpkts': 0, 'indiscards': 0, 'outdiscards': 0, 'outnoroutes': 0, 'reasmtimeout': 0, 'reasmreqds': 0, 'reasmoks': 0, 'reasmfails': 0, 'fragoks': 0, 'fragfails': 0, 'fragcreates': 0, 'inmcastpkts': 0, 'outmcastpkts': 11, 'inbcastpkts': 0, 'outbcastpkts': 0, 'inmcastoctets': 0, 'outmcastoctets': 712, 'inbcastoctets': 0, 'outbcastoctets': 0, 'csumerrors': 0, 'noectpkts': 0, 'ect1pkts': 0, 'ect0pkts': 0, 'cepkts': 0}), ('IFLA_INET6_ICMP6STATS', {'num': 6, 'inmsgs': 0, 'inerrors': 0, 'outmsgs': 11, 'outerrors': 0, 'csumerrors': 0}), ('IFLA_INET6_TOKEN', '::'), ('IFLA_INET6_ADDR_GEN_MODE', 0)]})]})], 'header': {'length': 1552, 'type': 16, 'flags': 2, 'sequence_number': 271, 'pid': 2648916503, 'error': None, 'target': 'localhost', 'stats': Stats(qsize=0, delta=0, delay=0)}, 'state': 'up', 'event': 'RTM_NEWLINK'}
ip -d a s eno1.4096
ip -d a s eno1.4097
Compare ndb outputs or ipr outputs, i can't find out which cast mode the vxlan interface used, but use ip command, i can find
group 239.0.0.1
andremote 192.168.100.2
to figure out which cast mode it used.My problem is: is there any way to find out which cast mode the vxlan interface used by pyroute2?
Thanks a lot!
The text was updated successfully, but these errors were encountered: