Move the common VLAN setup code to samples/net/common directory so that other network samples can utilize that too. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
20 lines
724 B
Plaintext
20 lines
724 B
Plaintext
CONFIG_NET_VLAN=y
|
|
|
|
# We have one non-vlan interface and two VLAN interfaces
|
|
CONFIG_NET_VLAN_COUNT=2
|
|
|
|
# There will be three network interfaces. Note that the addresses are
|
|
# selected so that our address ends to .1 and the peer one to .2
|
|
|
|
# First ethernet interface will use these settings
|
|
CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::1"
|
|
CONFIG_NET_CONFIG_PEER_IPV6_ADDR="2001:db8::2"
|
|
CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1"
|
|
CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.2"
|
|
|
|
# First VLAN interface will have these settings
|
|
CONFIG_NET_SAMPLE_COMMON_VLAN_SETUP_1="100;2001:db8:100::1/64,198.51.100.1/24"
|
|
|
|
# Second VLAN interface will have these settings
|
|
CONFIG_NET_SAMPLE_COMMON_VLAN_SETUP_2="200;2001:db8:200::1/64,203.0.113.1/24"
|