Home > other >  Verify whether Android vlan function perfect, the validation fails
Verify whether Android vlan function perfect, the validation fails

Time:02-20

Using ordinary cable to the PC and development board directly connected,
PC: Ubuntu 20.04
Development board: the Android Q, the kernel version 4.14



The PC side:
Sudo vconfig add eno1 5
Sudo ifconfig eno1 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255
Sudo ifconfig eno1.5 192.168.2.100 netmask 255.255.255.0 broadcast 192.168.2.255

Development board side:
The adb shell
Toybox vconfig add 5
eth0The ifconfig eth0 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.1.255
The ifconfig eth0.5 192.168.2.101 netmask 255.255.255.0 broadcast 192.168.2.255



Verification results:

PC side ping 192.168.1.101 can pass, ping192.168.2.101 impassability (ICMP request packets with VLAN tag, received a request to end package but did not send the response packet),
Development board side ping 192.168.1.100 can pass, ping192.168.2.100 impassability (no catch ICMP request packets),



To replace development board with another PC (Ubuntu 20.04), between the two PC can ping,
That is:
PC1 side ping 192.168.1.101 can pass ping192.168.2.101 can pass (ICMP request packets with VLAN tag),
Ping PC2 side 192.168.1.100 can pass, ping192.168.2.100 can pass (ICMP request packets with VLAN tag),



Questions:
1. The validation method if there is a problem?
2. The method is no problem, what reason be? Android VLAN function has a bug?

CodePudding user response:

PC with a source address test
For example, using the command is as follows: ping - a 192.168.2.100 192.168.2.101
  • Related