Skip to content

arp entry is not learned on a vlan subinterface (dot1q tagged) #109

Open
@maq123

Description

@maq123

Hi,

I am trying to get ping working between a sonic switch and an external device.
I manually create vlan 30 subinterface with the following cmds:

ip link add link Ethernet4 name Ethernet4.30 type vlan id 30
ip link set dev Ethernet4.30 up
ip addr add 3.3.3.3/24 dev Ethernet4.30

Then issuing ping to the external host:

ping 3.3.3.1 -I Ethernet4.30

On the external host I see the following traffic, which confirms that it replies to Sonic's ARP request

root@OPX-S6000-ON:~# tcpdump -i e101-001-0.30 -nnn -v
tcpdump: listening on e101-001-0.30, link-type EN10MB (Ethernet), capture size 262144 bytes
14:18:54.446897 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 3.3.3.1 tell 3.3.3.3, length 50
14:18:54.446956 ARP, Ethernet (len 6), IPv4 (len 4), Reply 3.3.3.1 is-at ec:f4:bb:fb:d2:f9, length 28
14:18:55.447186 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 3.3.3.1 tell 3.3.3.3, length 50
14:18:55.447243 ARP, Ethernet (len 6), IPv4 (len 4), Reply 3.3.3.1 is-at ec:f4:bb:fb:d2:f9, length 28
^C

However Sonic does not process the reply, and arp table looks as the following:

root@sonic:/var/log# arp -a | grep 3.3.3.
? (3.3.3.1) at <incomplete> on Ethernet4.30

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions