I get no output with monitor: prometheus# time switchctl monitor ^C 1m27.15s real 0m00.00s user 0m00.00s system
I also tried plugging in a different device into em1 while the monitor was running but I didn't get any output. Here is the output of switchd as well, the output continues to grow with incrementing xids. prometheus# switchd -dvv listen on 0.0.0.0:6653 ofrelay_attach: new connection 1.1 ofp_open: new connection 1.1 from switch 0 any > /dev/switch0: version 1_3 type HELLO length 16 xid 0 version bitmap: version 1_0 version 1_3 ofrelay_input_done: connection 1.1: 8 bytes from switch 0 /dev/switch0 > any: version 1_3 type HELLO length 8 xid 1530 any > /dev/switch0: version 1_3 type FEATURES_REQUEST length 8 xid 1 ofrelay_input_done: connection 1.1: 32 bytes from switch 1 /dev/switch0 > any: version 1_3 type FEATURES_REPLY length 32 xid 1 datapath_id 0x264921d244b07e9a nbuffers 0 ntables 254 aux_id 0 \ capabilities 0x00000f any > /dev/switch0: version 1_3 type MULTIPART_REQUEST length 16 xid 2 type TABLE_FEATURES flags 0000 empty table properties request any > /dev/switch0: version 1_3 type SET_CONFIG length 12 xid 3 flags 0000 miss_send_len NO_BUFFER ofrelay_input_done: connection 1.1: 1048 bytes from switch 1 /dev/switch0 > any: version 1_3 type MULTIPART_REPLY length 1048 xid 2 type TABLE_FEATURES flags 0000 table features length 1032 tableid <0> name "" metadata match \ 0xffffffffffffffff write 0xffffffffffffffff config 0 max_entries 10000 INSTRUCTION (length 20): type GOTO_TABLE length 4 type WRITE_META length 4 type WRITE_ACTIONS length 4 type APPLY_ACTIONS length 4 type CLEAR_ACTIONS length 4 INSTRUCTION_MISS (length 20): type GOTO_TABLE length 4 type WRITE_META length 4 type WRITE_ACTIONS length 4 type APPLY_ACTIONS length 4 type CLEAR_ACTIONS length 4 APPLY_ACTIONS (length 20): action POP_VLAN length 4 action PUSH_VLAN length 4 action SET_FIELD length 4 action GROUP length 4 action OUTPUT length 4 APPLY_ACTIONS_MISS (length 20): action POP_VLAN length 4 action PUSH_VLAN length 4 action SET_FIELD length 4 action GROUP length 4 action OUTPUT length 4 WRITE_ACTIONS (length 20): action POP_VLAN length 4 action PUSH_VLAN length 4 action SET_FIELD length 4 action GROUP length 4 action OUTPUT length 4 WRITE_ACTIONS_MISS (length 20): action POP_VLAN length 4 action PUSH_VLAN length 4 action SET_FIELD length 4 action GROUP length 4 action OUTPUT length 4 MATCH (length 136): class OPENFLOW_BASIC type IN_PORT length 4 class OPENFLOW_BASIC type META length 8 class OPENFLOW_BASIC type ETH_DST length 6 class OPENFLOW_BASIC type ETH_SRC length 6 class OPENFLOW_BASIC type ETH_TYPE length 2 class OPENFLOW_BASIC type VLAN_VID length 2 class OPENFLOW_BASIC type VLAN_PCP length 1 class OPENFLOW_BASIC type IP_DSCP length 1 class OPENFLOW_BASIC type IP_ECN length 1 class OPENFLOW_BASIC type IP_PROTO length 1 class OPENFLOW_BASIC type IPV4_SRC length 4 class OPENFLOW_BASIC type IPV4_DST length 4 class OPENFLOW_BASIC type TCP_SRC length 2 class OPENFLOW_BASIC type TCP_DST length 2 class OPENFLOW_BASIC type UDP_SRC length 2 class OPENFLOW_BASIC type UDP_DST length 2 class OPENFLOW_BASIC type SCTP_SRC length 2 class OPENFLOW_BASIC type SCTP_DST length 2 class OPENFLOW_BASIC type ICMPV4_TYPE length 1 class OPENFLOW_BASIC type ICMPV4_CODE length 1 class OPENFLOW_BASIC type ARP_OP length 2 class OPENFLOW_BASIC type ARP_SPA length 4 class OPENFLOW_BASIC type ARP_TPA length 4 class OPENFLOW_BASIC type ARP_SHA length 6 class OPENFLOW_BASIC type ARP_THA length 6 class OPENFLOW_BASIC type IPV6_SRC length 16 class OPENFLOW_BASIC type IPV6_DST length 16 class OPENFLOW_BASIC type IPV6_FLABEL length 4 class OPENFLOW_BASIC type ICMPV6_TYPE length 1 class OPENFLOW_BASIC type ICMPV6_CODE length 1 class OPENFLOW_BASIC type IPV6_ND_TARGET length 16 class OPENFLOW_BASIC type IPV6_ND_SLL length 6 class OPENFLOW_BASIC type IPV6_ND_TLL length 6 class OPENFLOW_BASIC type TUNNEL_ID length 8 WILDCARDS (length 132): class OPENFLOW_BASIC type META length 8 class OPENFLOW_BASIC type ETH_DST length 6 class OPENFLOW_BASIC type ETH_SRC length 6 class OPENFLOW_BASIC type ETH_TYPE length 2 class OPENFLOW_BASIC type VLAN_VID length 2 class OPENFLOW_BASIC type VLAN_PCP length 1 class OPENFLOW_BASIC type IP_DSCP length 1 class OPENFLOW_BASIC type IP_ECN length 1 class OPENFLOW_BASIC type IP_PROTO length 1 class OPENFLOW_BASIC type IPV4_SRC length 4 class OPENFLOW_BASIC type IPV4_DST length 4 class OPENFLOW_BASIC type TCP_SRC length 2 class OPENFLOW_BASIC type TCP_DST length 2 class OPENFLOW_BASIC type UDP_SRC length 2 class OPENFLOW_BASIC type UDP_DST length 2 class OPENFLOW_BASIC type SCTP_SRC length 2 class OPENFLOW_BASIC type SCTP_DST length 2 class OPENFLOW_BASIC type ICMPV4_TYPE length 1 class OPENFLOW_BASIC type ICMPV4_CODE length 1 class OPENFLOW_BASIC type ARP_OP length 2 class OPENFLOW_BASIC type ARP_SPA length 4 class OPENFLOW_BASIC type ARP_TPA length 4 class OPENFLOW_BASIC type ARP_SHA length 6 class OPENFLOW_BASIC type ARP_THA length 6 class OPENFLOW_BASIC type IPV6_SRC length 16 class OPENFLOW_BASIC type IPV6_DST length 16 class OPENFLOW_BASIC type IPV6_FLABEL length 4 class OPENFLOW_BASIC type ICMPV6_TYPE length 1 class OPENFLOW_BASIC type ICMPV6_CODE length 1 class OPENFLOW_BASIC type IPV6_ND_TARGET length 16 class OPENFLOW_BASIC type IPV6_ND_SLL length 6 class OPENFLOW_BASIC type IPV6_ND_TLL length 6 class OPENFLOW_BASIC type TUNNEL_ID length 8 WRITE_SETFIELD (length 128): class OPENFLOW_BASIC type ETH_DST length 6 class OPENFLOW_BASIC type ETH_SRC length 6 class OPENFLOW_BASIC type ETH_TYPE length 2 class OPENFLOW_BASIC type VLAN_VID length 2 class OPENFLOW_BASIC type VLAN_PCP length 1 class OPENFLOW_BASIC type IP_DSCP length 1 class OPENFLOW_BASIC type IP_ECN length 1 class OPENFLOW_BASIC type IP_PROTO length 1 class OPENFLOW_BASIC type IPV4_SRC length 4 class OPENFLOW_BASIC type IPV4_DST length 4 class OPENFLOW_BASIC type TCP_SRC length 2 class OPENFLOW_BASIC type TCP_DST length 2 class OPENFLOW_BASIC type UDP_SRC length 2 class OPENFLOW_BASIC type UDP_DST length 2 class OPENFLOW_BASIC type SCTP_SRC length 2 class OPENFLOW_BASIC type SCTP_DST length 2 class OPENFLOW_BASIC type ICMPV4_TYPE length 1 class OPENFLOW_BASIC type ICMPV4_CODE length 1 class OPENFLOW_BASIC type ARP_OP length 2 class OPENFLOW_BASIC type ARP_SPA length 4 class OPENFLOW_BASIC type ARP_TPA length 4 class OPENFLOW_BASIC type ARP_SHA length 6 class OPENFLOW_BASIC type ARP_THA length 6 class OPENFLOW_BASIC type IPV6_SRC length 16 class OPENFLOW_BASIC type IPV6_DST length 16 class OPENFLOW_BASIC type IPV6_FLABEL length 4 class OPENFLOW_BASIC type ICMPV6_TYPE length 1 class OPENFLOW_BASIC type ICMPV6_CODE length 1 class OPENFLOW_BASIC type IPV6_ND_TARGET length 16 class OPENFLOW_BASIC type IPV6_ND_SLL length 6 class OPENFLOW_BASIC type IPV6_ND_TLL length 6 class OPENFLOW_BASIC type TUNNEL_ID length 8 WRITE_SETFIELD_MISS (length 128): class OPENFLOW_BASIC type ETH_DST length 6 class OPENFLOW_BASIC type ETH_SRC length 6 class OPENFLOW_BASIC type ETH_TYPE length 2 class OPENFLOW_BASIC type VLAN_VID length 2 class OPENFLOW_BASIC type VLAN_PCP length 1 class OPENFLOW_BASIC type IP_DSCP length 1 class OPENFLOW_BASIC type IP_ECN length 1 class OPENFLOW_BASIC type IP_PROTO length 1 class OPENFLOW_BASIC type IPV4_SRC length 4 class OPENFLOW_BASIC type IPV4_DST length 4 class OPENFLOW_BASIC type TCP_SRC length 2 class OPENFLOW_BASIC type TCP_DST length 2 class OPENFLOW_BASIC type UDP_SRC length 2 class OPENFLOW_BASIC type UDP_DST length 2 class OPENFLOW_BASIC type SCTP_SRC length 2 class OPENFLOW_BASIC type SCTP_DST length 2 class OPENFLOW_BASIC type ICMPV4_TYPE length 1 class OPENFLOW_BASIC type ICMPV4_CODE length 1 class OPENFLOW_BASIC type ARP_OP length 2 class OPENFLOW_BASIC type ARP_SPA length 4 class OPENFLOW_BASIC type ARP_TPA length 4 class OPENFLOW_BASIC type ARP_SHA length 6 class OPENFLOW_BASIC type ARP_THA length 6 class OPENFLOW_BASIC type IPV6_SRC length 16 class OPENFLOW_BASIC type IPV6_DST length 16 class OPENFLOW_BASIC type IPV6_FLABEL length 4 class OPENFLOW_BASIC type ICMPV6_TYPE length 1 class OPENFLOW_BASIC type ICMPV6_CODE length 1 class OPENFLOW_BASIC type IPV6_ND_TARGET length 16 class OPENFLOW_BASIC type IPV6_ND_SLL length 6 class OPENFLOW_BASIC type IPV6_ND_TLL length 6 class OPENFLOW_BASIC type TUNNEL_ID length 8 APPLY_SETFIELD (length 128): class OPENFLOW_BASIC type ETH_DST length 6 class OPENFLOW_BASIC type ETH_SRC length 6 class OPENFLOW_BASIC type ETH_TYPE length 2 class OPENFLOW_BASIC type VLAN_VID length 2 class OPENFLOW_BASIC type VLAN_PCP length 1 class OPENFLOW_BASIC type IP_DSCP length 1 class OPENFLOW_BASIC type IP_ECN length 1 class OPENFLOW_BASIC type IP_PROTO length 1 class OPENFLOW_BASIC type IPV4_SRC length 4 class OPENFLOW_BASIC type IPV4_DST length 4 class OPENFLOW_BASIC type TCP_SRC length 2 class OPENFLOW_BASIC type TCP_DST length 2 class OPENFLOW_BASIC type UDP_SRC length 2 class OPENFLOW_BASIC type UDP_DST length 2 class OPENFLOW_BASIC type SCTP_SRC length 2 class OPENFLOW_BASIC type SCTP_DST length 2 class OPENFLOW_BASIC type ICMPV4_TYPE length 1 class OPENFLOW_BASIC type ICMPV4_CODE length 1 class OPENFLOW_BASIC type ARP_OP length 2 class OPENFLOW_BASIC type ARP_SPA length 4 class OPENFLOW_BASIC type ARP_TPA length 4 class OPENFLOW_BASIC type ARP_SHA length 6 class OPENFLOW_BASIC type ARP_THA length 6 class OPENFLOW_BASIC type IPV6_SRC length 16 class OPENFLOW_BASIC type IPV6_DST length 16 class OPENFLOW_BASIC type IPV6_FLABEL length 4 class OPENFLOW_BASIC type ICMPV6_TYPE length 1 class OPENFLOW_BASIC type ICMPV6_CODE length 1 class OPENFLOW_BASIC type IPV6_ND_TARGET length 16 class OPENFLOW_BASIC type IPV6_ND_SLL length 6 class OPENFLOW_BASIC type IPV6_ND_TLL length 6 class OPENFLOW_BASIC type TUNNEL_ID length 8 APPLY_SETFIELD_MISS (length 128): class OPENFLOW_BASIC type ETH_DST length 6 class OPENFLOW_BASIC type ETH_SRC length 6 class OPENFLOW_BASIC type ETH_TYPE length 2 class OPENFLOW_BASIC type VLAN_VID length 2 class OPENFLOW_BASIC type VLAN_PCP length 1 class OPENFLOW_BASIC type IP_DSCP length 1 class OPENFLOW_BASIC type IP_ECN length 1 class OPENFLOW_BASIC type IP_PROTO length 1 class OPENFLOW_BASIC type IPV4_SRC length 4 class OPENFLOW_BASIC type IPV4_DST length 4 class OPENFLOW_BASIC type TCP_SRC length 2 class OPENFLOW_BASIC type TCP_DST length 2 class OPENFLOW_BASIC type UDP_SRC length 2 class OPENFLOW_BASIC type UDP_DST length 2 class OPENFLOW_BASIC type SCTP_SRC length 2 class OPENFLOW_BASIC type SCTP_DST length 2 class OPENFLOW_BASIC type ICMPV4_TYPE length 1 class OPENFLOW_BASIC type ICMPV4_CODE length 1 class OPENFLOW_BASIC type ARP_OP length 2 class OPENFLOW_BASIC type ARP_SPA length 4 class OPENFLOW_BASIC type ARP_TPA length 4 class OPENFLOW_BASIC type ARP_SHA length 6 class OPENFLOW_BASIC type ARP_THA length 6 class OPENFLOW_BASIC type IPV6_SRC length 16 class OPENFLOW_BASIC type IPV6_DST length 16 class OPENFLOW_BASIC type IPV6_FLABEL length 4 class OPENFLOW_BASIC type ICMPV6_TYPE length 1 class OPENFLOW_BASIC type ICMPV6_CODE length 1 class OPENFLOW_BASIC type IPV6_ND_TARGET length 16 class OPENFLOW_BASIC type IPV6_ND_SLL length 6 class OPENFLOW_BASIC type IPV6_ND_TLL length 6 class OPENFLOW_BASIC type TUNNEL_ID length 8 any > /dev/switch0: version 1_3 type FLOW_MOD length 80 xid 4 command ADD table <0> timeout (idle 0 hard 0) priority 0 buffer_id \ NO_BUFFER out_port <0> out_group <0> flags 0x01 cookie \ 0000000000000000 mask 0000000000000000 instruction APPLY_ACTIONS length 24 action OUTPUT len 16 port CONTROLLER max_len MAX ofrelay_input_done: connection 1.1: 52 bytes from switch 1 /dev/switch0 > any: version 1_3 type FLOW_REMOVED length 52 xid 1531 cookie 0000000000000000 priority 0 reason DELETE table_id <0> \ duration(2753 sec, 7603722 nsec) timeout idle 0 hard 0 packet 1528 \ byte 91740 ofrelay_input_done: connection 1.1: 110 bytes from switch 1 /dev/switch0 > any: version 1_3 type PACKET_IN length 110 xid 1532 buffer NO_BUFFER length 60 reason REASON_NO_MATCH table <0> cookie \ 0x0000000000000000 match type OXM length 24 (padded to 26) ox match class OPENFLOW_BASIC type IN_PORT hasmask no length 4 2 ox match class OPENFLOW_BASIC type META hasmask no length 8 0 switch_learn: learned new mac f0:de:f1:23:13:37 on switch 1 port 2 packet_input: f0:de:f1:23:13:37 -> ff:ff:ff:ff:ff:ff, port 2 -> \ 4294967295 any > /dev/switch0: version 1_3 type PACKET_OUT length 100 xid 5 buffer NO_BUFFER in_port <2> actions_len 16 action OUTPUT len 16 port FLOOD max_len NO_BUFFER ofrelay_input_done: connection 1.1: 110 bytes from switch 1 /dev/switch0 > any: version 1_3 type PACKET_IN length 110 xid 1533 buffer NO_BUFFER length 60 reason REASON_NO_MATCH table <0> cookie \ 0x0000000000000000 match type OXM length 24 (padded to 26) ox match class OPENFLOW_BASIC type IN_PORT hasmask no length 4 2 ox match class OPENFLOW_BASIC type META hasmask no length 8 0 switch_learn: updated mac f0:de:f1:23:13:37 on switch 1 port 2 packet_input: f0:de:f1:23:13:37 -> ff:ff:ff:ff:ff:ff, port 2 -> \ 4294967295 any > /dev/switch0: version 1_3 type PACKET_OUT length 100 xid 6 buffer NO_BUFFER in_port <2> actions_len 16 action OUTPUT len 16 port FLOOD max_len NO_BUFFER ofrelay_input_done: connection 1.1: 110 bytes from switch 1 /dev/switch0 > any: version 1_3 type PACKET_IN length 110 xid 1534 buffer NO_BUFFER length 60 reason REASON_NO_MATCH table <0> cookie \ 0x0000000000000000 match type OXM length 24 (padded to 26) ox match class OPENFLOW_BASIC type IN_PORT hasmask no length 4 2 ox match class OPENFLOW_BASIC type META hasmask no length 8 0 switch_learn: updated mac f0:de:f1:23:13:37 on switch 1 port 2 packet_input: f0:de:f1:23:13:37 -> ff:ff:ff:ff:ff:ff, port 2 -> \ 4294967295 any > /dev/switch0: version 1_3 type PACKET_OUT length 100 xid 7 buffer NO_BUFFER in_port <2> actions_len 16 action OUTPUT len 16 port FLOOD max_len NO_BUFFER ofrelay_input_done: connection 1.1: 110 bytes from switch 1 /dev/switch0 > any: version 1_3 type PACKET_IN length 110 xid 1535 buffer NO_BUFFER length 60 reason REASON_NO_MATCH table <0> cookie \ 0x0000000000000000 match type OXM length 24 (padded to 26) ox match class OPENFLOW_BASIC type IN_PORT hasmask no length 4 2 ox match class OPENFLOW_BASIC type META hasmask no length 8 0 On Thu, Oct 29, 2020 at 11:22 AM Tom Smyth <tom.sm...@wirelessconnect.eu> wrote: > > what output does > switchctl monitor > > give you > > On Thu, 29 Oct 2020 at 17:16, John McGuigan <j...@upperbound.ca> wrote: > > > > prometheus$ ifconfig em0 > > em0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> \ > > mtu 1500 > > lladdr 00:0d:b9:be:ef:94 > > index 1 priority 0 llprio 3 > > groups: egress > > media: Ethernet autoselect (1000baseT full-duplex,rxpause,txpause) > > status: active > > inet 192.168.1.80 netmask 0xffffff00 broadcast 192.168.1.255 > > > > prometheus$ ifconfig em1 > > em1: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX, \ > > MULTICAST> mtu 1500 > > lladdr 00:0d:b9:be:ef:95 > > index 2 priority 0 llprio 3 > > media: Ethernet autoselect (1000baseT full-duplex,rxpause,txpause) > > status: active > > > > prometheus$ ifconfig em2 > > em2: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX, \ > > MULTICAST> mtu 1500 > > lladdr 00:0d:b9:be:ef:96 > > index 3 priority 0 llprio 3 > > media: Ethernet autoselect (none) > > status: no carrier > > > > prometheus$ cat /etc/hostname.em0 > > dhcp > > prometheus$ cat /etc/hostname.em1 > > up > > prometheus$ cat /etc/hostname.em2 > > up > > > > On Thu, Oct 29, 2020 at 11:10 AM Tom Smyth <tom.sm...@wirelessconnect.eu> > > wrote: > > > > > > what is your ifconfig em0 > > > ifconfig em1 > > > ? > > > > > > On Thu, 29 Oct 2020 at 17:07, John McGuigan <j...@upperbound.ca> wrote: > > > > > > > > Howdy misc, > > > > > > > > I have an APU2 with the following configuration under 6.8: > > > > > > > > em0 = WAN > > > > em1 = bridge0 LAN > > > > em2 = bridge0 LAN > > > > vether = 10.0.0.1 > > > > > > > > prometheus$ cat /etc/hostname.bridge0 > > > > add vether0 > > > > add em1 > > > > add em2 > > > > up > > > > > > > > prometheus$ cat /etc/hostname.vether0 > > > > inet 10.0.0.1 255.255.255.0 10.0.0.255 > > > > > > > > I have dhcpd listening on vether0 and it works just fine. I have a > > > > client connected to em1 and it can ping 10.0.0.1 with no issues. > > > > > > > > The trouble started when I wanted to implement a switch(4) instead > > > > of the bridge(4): > > > > > > > > I moved /etc/hostname.bridge0 to /etc/hostname.switch0 > > > > > > > > prometheus$ cat /etc/switchd.conf > > > > device "/dev/switch0" > > > > > > > > switchd was enabled via rcctl > > > > > > > > When I rebooted the system the client on em1 no longer got a dhcp > > > > response and can't ping 10.0.0.1 > > > > > > > > ifconfig snippet: > > > > > > > > switch0: flags=41<UP,RUNNING> > > > > index 6 llprio 3 > > > > groups: switch > > > > datapath 0x264921d244b07e9a maxflow 10000 maxgroup 1000 > > > > vether0 flags=0<> > > > > port 7 ifpriority 0 ifcost 0 > > > > em1 flags=0<> > > > > port 2 ifpriority 0 ifcost 0 > > > > em2 flags=0<> > > > > port 3 ifpriority 0 ifcost 0 > > > > vether0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> \ > > > > mtu 1500 > > > > lladdr fe:e1:ba:d0:0b:ca > > > > index 7 priority 0 llprio 3 > > > > groups: vether > > > > media: Ethernet autoselect > > > > status: active > > > > inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255 > > > > > > > > > > > > With tcpdump on vether0 I see the arp requests from the client for > > > > 10.0.0.1 but vether0 doesn't respond. > > > > > > > > I see the same arp traffic on switch0 and em1 via tcpdump too. > > > > > > > > The switch seems to have learned the mac address of the client: > > > > > > > > prometheus$ switchctl show macs > > > > Switch Port Type Name Info > > > > 1 2 mac f0:de:f1:23:13:37 age 3s > > > > > > > > Unfortunately, I don't really know how to dig any deeper at this issue. > > > > Does anyone here see a glaring mistake or would be able to nudge me in > > > > a better direction? > > > > > > > > Thanks, > > > > > > > > John > > > > > > > > > > > > > -- > > > Kindest regards, > > > Tom Smyth. > > > > -- > Kindest regards, > Tom Smyth.