We need to set a proper IPv4 netmask to each VLAN interface so that IPv4 source address selection will work properly. If we do not do this, then the network interface could be selected incorrectly for the VLAN interfaces which could then mean that the packet might get dropped by the target device. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
29 lines
1006 B
Plaintext
29 lines
1006 B
Plaintext
CONFIG_NET_VLAN=y
|
|
|
|
# We have one non-vlan interface and two VLAN interfaces
|
|
CONFIG_NET_VLAN_COUNT=3
|
|
|
|
# There will be three network interfaces.
|
|
|
|
# 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"
|
|
|
|
# Second ethernet interface will have these settings
|
|
CONFIG_NET_SAMPLE_IFACE2_MY_IPV6_ADDR="2001:db8:100::1"
|
|
# TEST-NET-2 from RFC 5737
|
|
CONFIG_NET_SAMPLE_IFACE2_MY_IPV4_ADDR="198.51.100.1"
|
|
CONFIG_NET_SAMPLE_IFACE2_MY_IPV4_NETMASK="255.255.255.0"
|
|
# VLAN tag for the second interface
|
|
CONFIG_NET_SAMPLE_IFACE2_VLAN_TAG=100
|
|
|
|
# Settings for the third network interface
|
|
CONFIG_NET_SAMPLE_IFACE3_MY_IPV6_ADDR="2001:db8:200::1"
|
|
# TEST-NET-3 from RFC 5737
|
|
CONFIG_NET_SAMPLE_IFACE3_MY_IPV4_ADDR="203.0.113.1"
|
|
CONFIG_NET_SAMPLE_IFACE3_MY_IPV4_NETMASK="255.255.255.0"
|
|
# VLAN tag for the second interface
|
|
CONFIG_NET_SAMPLE_IFACE3_VLAN_TAG=200
|