DHCP Server Simulation for VLAN Based Ethernet Network
This small example configuration contains a CAPL Node dhcpServer working as a simple DHCP server for a VLAN based network.
The Server CAPL Code works on raw Ethernet frames and therefore does not need any VLAN specific configuration setting in its TCP/IP Stack. The dhcpServer node only needs the ETHERNETIL as Component.
The client nodes Client1 and Client2 use each a CANoe TCP/IP Stack and are configured with VLAN to automatically obtain IP Address using DHCP.
The available DHCP addresses and the used VLAN Tag are displayed in the DHCP Panel and can be initialized using the Environment/Start Values menu bar for the variables VlanTag, AddressRangeStart and AddressRangeStop.
After measurement start, the Client1 and Client2 panels display the set IP address and the exchanged frames are displayed in the trace:
Please complete all required fields. Fields marked with * are required.