Dear experts
I use port 1 of CPSW9G module to send and receive data. It Corresponds to the A72 virtual mac Eth1. It works fine.
Can I use vconfig to set up the VLAN for Eth1?
sudo vconfig add eth1 100 sudo ifconfig eth1.100 192.168.1.3 netmask 255.255.255.0 up
Show that I have created it successfully
root@j7-evm:~# ifconfig docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 metric 1 inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255 ether 02:42:ad:ee:89:dc txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1 inet 127.172.2.2 netmask 255.0.0.0 broadcast 127.255.255.255 inet6 fe80::72ff:76ff:fe1d:92c1 prefixlen 64 scopeid 0x20<link> ether 70:ff:76:1d:92:c1 txqueuelen 1000 (Ethernet) RX packets 180 bytes 41861 (40.8 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 67 bytes 10396 (10.1 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth1.100: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1 inet 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::72ff:76ff:fe1d:92c1 prefixlen 64 scopeid 0x20<link> ether 70:ff:76:1d:92:c1 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 36 bytes 6706 (6.5 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
But I set the PC's Vlan ID to 100 and ping to a72 didn't work.
Am I doing this right ?