Fix a bug for vlan ping failure.