I'm trying to get a CSR1000v to do Layer-2 forwarding using KVM (qemu) and virtio virtual nics.
The problem is that all frames that enter the CSR1000v with a (unicast) destination MAC address that is not the virtual MAC address are reported as errors.
I found some notes at http://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/configuration/csr1000Vswcfg/csroverview.html that indicate that L2 forwarding is not supported on SR-IOV but it does not mention anything about it not being supported on virtio-type vnics.
To illustrate, something like the following does not work
interface GigabitEthernet1
no shut
service instance 1 ethernet
encapsulation untagged
bridge-domain 1
!
interface BDI1
ip address 10.0.1.1 255.255.255.0
no shut
Pings from anything that is attached to GigabitEthernet1 to 10.0.1.1 fail. The CSR does respond to ARP requests, but all ICMP packets are dropped by the router.
Is this sort of thing at all supported? (I guess not.)
GigabitEthernet1 is up, line protocol is up
Hardware is CSR vNIC, address is dead.beef.0101 (bia dead.beef.0101)
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full Duplex, 1000Mbps, link type is auto, media type is RJ45
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:03:54, output hang never
Last clearing of "show interface" counters never
Input queue: 0/375/1/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
4 packets input, 126 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
1 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored <--- 1 input error from ICMP packet destined for BDI1
0 watchdog, 0 multicast, 0 pause input
13 packets output, 2932 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out