TI E2E Community
Setting IP of VLAN device (NDK and DM6437)
I'm working with a "hello world" code on DM6437. I need to create a VLAN and set an IP to this new "device". I can set the ip of eth0 and ping it.
I saw the chapter "A.16 Virtual LAN (VLAN) Support" in spru54_pg.pdf and I understand how i can create the device but I don't know how to set an IP.
I know It's possible in Linux. Is it possible in this platform? Any help?
Hi Simone Cilli,
Which version of the NDK are you using? Also which version of BIOS?
NDK 2.0 and DSP/BIOS 5.31.02.
Have you seen the NDK Client example?
This example has VLAN built into it. You don't need to configure an IP address as they will just be sent via the board's IP address. The VLAN tagged packets carry a 16-bit tag also known as the tag control information (TCI) header, which I believe is used by the stack to identify which socket data should go to.
You can use VLAN by first telneting into the board. The 'vlan' command allows you to add/delete and send on a VLAN device:
>vlan[vlan Command]Use this to add/del & configure VLAN Devicesvlan add <srcif> <vlan_id> <default prio> - Adds a VLAN Devicevlan del <vlan_id_index> - Deletes a VLAN Devicevlan send <dst_ip> - Tests SO_PRIORITY option by sending packets>>>>vlan add 1 2 5Successfully created new VLAN Device 2>>>>vlan send 188.8.131.52TEST Case Passed: Priority 0x8 is incorrect and was detectedPacket with priority 0 has been sentPacket with priority 1 has been sentPacket with priority 2 has been sentPacket with priority 3 has been sentPacket with priority 4 has been sentPacket with priority 5 has been sentPacket with priority 6 has been sentPacket with priority 7 has been sentPacket with default priority has been sent
The problem is that my requirements said I have to use different IP for each VLAN on the same network interface....Can I conclude It is impossible to set different IPs on the VLANs on this board?!
Anyway Thanks for your help!
Following the example you suggest, we tried to modify the VLAN ip.We obtain this error:"BindNew: Duplicate bindings ignored"This is the code we apply to the vlan project (NDK 2.0):
I think what you need to do is first get 2 IP addresses working on a single interface. Then, once you have that working, you should be able to configure VLAN for each one.
Please see the following post in which a customer was able to do this, it may help you. Note, however, that he had to make each IP address on a different sub net
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.