Hello, apologies for the language.
Firstly I would like to express my thanks for this resource which has proven to be very useful. I have successfully connected to my ISP in the UK(Vodafone via Openreach) using a MA5671A and Mikrotik RB5009 using OpenWrt (with a tiny sfp.c patch to ignore TX_FAULT. I will submit upstream shortly).
Unfortunately I have a small issue that is similar to what some other users have also reported, relating to the VLAN tag. When connected (ploamsg status 5) I have one VLAN, 101. To connect from the router, I must specify VLAN 101 untagged. Outbound packets are untagged and inbound packets are tagged. Internet connectivity works.
However, my ISP requires VLAN priority (PCP) value 3 to use VOIP. If this is not present, the register packet is dropped. By monitoring the connection made from the ISP provided router, I can see that they use a VLAN tag with VID 0. It is very difficult to set VID 0, and will likely require a driver hack and possibly a bonded VLAN connection (something like
this). VID 1 and VID 101 tagged outbound packets are ignored.
To alleviate this problem, my hope is to find a way to accepts VLAN 101 tagged, after which setting priority 3 will be easy. I wonder if/how one can achieve this on the MA5671A?
I am using image version V8R017C00S201. Is there another image that will allow setting of the VLAN information?
I have also tried the reported i2cset commands reported elsewhere but to no avail (bus 7 on my device):
#Set the adress A2H 127 to 0x62
i2cset -y 7 0x51 0x7F 0x62
#enable/disable trunking
i2cset -y 7 0x51 0x80 $1
Thanks for any assistance.
Some extra information for context:
GPE VLAN
Name: ONU_GPE_VLAN_TABLE
ID: 18
no;pcp;dei;vid;vlan_meter_enable;vlan_meter_id;end
32; ; ;101; ; ;1
GPE VLAN treatment
Name: ONU_GPE_VLAN_TREATMENT_TABLE
ID: 43
;;;;tagb;tagb;tagb;taga;taga;taga
no;inner not generate;outer not generate;discard enable;tpid;vid;treatment;tpid;vid;treatment
0;1; ; ; ; 101; 9; ; ;15
1;1;1; ;4; 101; 2;4; ;15
2;1;1; ; ; 101; 9; ; ;15
3;1; ; ; ; ;15; ; ;15
4; ; ; ; ; ;15; ; ;15
64; ;1; ; ; ;15; ; ;15
65;1;1; ; ; ;15; ; ;15
66;1;1; ;6; 101; 9; ; ;15
67;1; ; ; ; ;15; ; ;15
68; ; ; ; ; ;15; ; ;15
128;1;1; ; ; ;15; ; ;15
129;1;1; ; ; ;15; ; ;15
130; ;1; ; ; ;15; ; ;15
GPE VLAN rule
Name: ONU_GPE_VLAN_RULE_TABLE
ID: 42
;;;enable;;;ethertype filter;;;;;outer;;;;;;;inner;;;;;;
no;end;def;two;one;zero;5;4;3;2;1;de enable;de filter;input tpid enable;vid enable;vid filter;priority enable;priority filter;de enable;de filter;input tpid enable;vid enable;vid fi
lter;priority enable;priority filter
0; ;1; ;1; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;
1; ;1; ; ;1; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;
2; ; ; ;1; ; ; ; ; ; ; ; ; ;1; 101; ; ; ; ; ; ; ; ;
3; ;1; ;1; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;
4;1;1;1; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;
64; ; ;1; ; ; ; ; ; ; ; ; ; ;1; 101; ; ; ; ; ; ; ; ;
65; ; ; ;1; ; ; ; ; ; ; ; ; ;1; 101;1;2; ; ; ; ; ; ;
66; ; ; ;1; ; ; ; ; ; ; ; ; ;1; 101; ; ; ; ; ; ; ; ;
67; ;1; ;1; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;
68;1;1;1; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;
128; ;1; ; ;1; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;
129; ;1; ;1; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;
130;1;1;1; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;
root@SFP:~# onu gpevtfg 0
errorcode=0 index=0 vlan_count=1 vlan="101 " vlan_mask=4095 pass_on_match_enable=1 tagged_drop_enable=0 tagged_pass_enable=0