I am trying to create a macvlan bridge link with the following command:
sudo ip link add access link ens33 type macvlan mode bridge
I can see that new interface is created:
ubuntu@master-node:~/sd-core$ ip link show access
26: access@ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether d6:cf:97:52:81:ca brd ff:ff:ff:ff:ff:ff
ubuntu@master-node:~/sd-core$ ifconfig access
access: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.252.1 netmask 255.255.255.0 broadcast 192.168.252.255
inet6 fe80::d4cf:97ff:fe52:81ca prefixlen 64 scopeid 0x20<link>
ether d6:cf:97:52:81:ca txqueuelen 1000 (Ethernet)
RX packets 2433 bytes 169754 (169.7 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 160 bytes 15648 (15.6 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
However, when I try to ping the new interface, I can only see packets getting up to ens33
, and not access
interface. This is the result of tcpdump over the main interface:
ubuntu@master-node:~/sd-core$ sudo tcpdump -i ens33 host 192.168.201.134 -n
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ens33, link-type EN10MB (Ethernet), capture size 262144 bytes
08:15:20.100745 IP 192.168.201.134 > 192.168.252.1: ICMP echo request, id 49036, seq 23, length 64
08:15:21.124956 IP 192.168.201.134 > 192.168.252.1: ICMP echo request, id 49036, seq 24, length 64
08:15:22.148624 IP 192.168.201.134 > 192.168.252.1: ICMP echo request, id 49036, seq 25, length 64
08:15:23.172562 IP 192.168.201.134 > 192.168.252.1: ICMP echo request, id 49036, seq 26, length 64
08:15:24.196761 IP 192.168.201.134 > 192.168.252.1: ICMP echo request, id 49036, seq 27, length 64
And this is the tcpdump at the macvlan interface:
ubuntu@master-node:~/sd-core$ sudo tcpdump -i access host 192.168.201.134 -n
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on access, link-type EN10MB (Ethernet), capture size 262144 bytes
^C
0 packets captured
What am I doing wrong? Can someone help me?