Friday, July 12, 2019

VLAN id translation on Huawei

Hey all,

I have an interesting conundrum. I'm wanting to preform a VLAN id translation on a few switchports. I have a Huawei s6720 switch that should be translating VLAN ids. Both interfaces xg0/0/17 and xg0/0/18 are trunk ports and should only see their respective tagged VLAN traffic. I'm wanting to turn VLAN id 100 into VLAN id 1000 and vice versa on interface xg-0/0/17/18. The traffic has to be tagged

I can only see rapid STP BPDUs when port capturing on the connected interfaces. I also cannot see any ping packets from a host connected to xg0/0/17 or xg0/0/18 when capture packet on the Huawei switch.

Traffic Flow:

Inbound VLAN 1000 tagged -> XG0/0/18 >[VLAN translate] >XG0/0/17 -> Outbound VLAN 100 tagged

Inbound VLAN 100 tagged -> XG0/0/17 >[VLAN translate] >XG0/0/18 -> Outbound VLAN 1000 tagged

My Config:

traffic classifier TEST-VLAN operator or if-match vlan-id 100 traffic classifier TEST-VLAN-1000 operator or if-match vlan-id 1000 # traffic behavior TEST-VLAN remark vlan-id 1000 traffic behavior TEST-VLAN-1000 remark vlan-id 100 # traffic policy TEST-VLAN match-order config classifier TEST-VLAN behavior TEST-VLAN traffic policy TEST-VLAN-1000 match-order config classifier TEST-VLAN-1000 behavior TEST-VLAN-1000 # interface XGigabitEthernet0/0/17 description monitor port link-type trunk port trunk allow-pass vlan 100 traffic-policy TEST-VLAN inbound traffic-policy TEST-VLAN-1000 outbound # interface XGigabitEthernet0/0/18 description server1 port link-type trunk port trunk allow-pass vlan 1000 # 

I've tried putting the "traffic-policy TEST-VLAN-1000 outbound" on interface XGigabitEthernet0/0/18 with no success. I've read the document https://support.huawei.com/enterprise/en/doc/EDOC1000088746?section=j00d however I'm not not having any luck.

Huawei's code is very similar to H3C Comware and HPE Comware 7 - It being from the same code base.



No comments:

Post a Comment