Dear FreeBSD Community,
we would like to do IPv6 network segmentation within several VLANs, but fail in the implementation.
The server is connected to all VLANs via trunc port and can see them. All network segments should be reachable via it.
Can anyone give us a hint on this, what we are doing wrong? Can I use alias addresses to announce multiple prefixes in one VLAN?
We would be very happy about any suggestions. Otherwise we have to create a separate VLAN for each segment.
we would like to do IPv6 network segmentation within several VLANs, but fail in the implementation.
The server is connected to all VLANs via trunc port and can see them. All network segments should be reachable via it.
Code:
freebsd-version
13.2-RELEASE-p2
/etc/rc.conf
# intern VLAN10 via eth0
ifconfig_eth0="inet 192.168.14.254 netmask 255.255.224.0"
defaultrouter="192.168.1.254"
########## second IPv6 networkinterface #################
ifconfig_eth1="up"
########## implement VLANs #################
#if_vlan_load="YES"
cloned_interfaces="vlan1168 vlan1184 vlan1200 vlan1216"
vlans_eth1="vlan1168 vlan1184 vlan1200 vlan1216"
########## configure VLAN1168 #################
ifconfig_vlan1168="vlan 1168 vlandev eth1"
ifconfig_vlan1168="inet6 201:abc:def0:a1::fffe prefixlen 64 accept_rtadv no_radr vlan 1168 vlandev eth1"
########## configure VLAN1184 #################
ifconfig_vlan1184="vlan 1184 vlandev eth1"
ifconfig_vlan1184="inet6 201:abc:def0:b1::fffe prefixlen 64 vlan 1184 vlandev eth1"
########## configure VLAN1200 #################
ifconfig_vlan1200="vlan 1200 vlandev eth1"
ifconfig_vlan1200="inet6 201:abc:def0:c1::fffe prefixlen 64 vlan 1200 vlandev eth1"
########## configure VLAN1216 #################
ifconfig_vlan1216="vlan 1216 vlandev eth1"
ifconfig_vlan1216="inet6 201:abc:def0:d1::fffe prefixlen 64 vlan 1216 vlandev eth1"
########## Alias IPv6 adresses in in separate networksegments #################
ifconfig_vlan1168_alias0="inet6 add 201:abc:def0:a2::fffe/64 alias"
ifconfig_vlan1184_alias0="inet6 add 201:abc:def0:b2::fffe/64 alias"
ifconfig_vlan1200_alias0="inet6 add 201:abc:def0:c2::fffe/64 alias"
ifconfig_vlan1216_alias0="inet6 add 201:abc:def0:d2::fffe/64 alias"
########## activate alias communication #################
#static_routes="vlan1168 vlan1184 vlan1200 vlan1216"
#route_vlan1168="-net 201:abc:def0:a2::/64 201:abc:def0:a2::fffe"
#route_vlan1184="-net 201:abc:def0:b2::/64 201:abc:def0:b2::fffe"
#route_vlan1200="-net 201:abc:def0:c2::/64 201:abc:def0:c2::fffe"
#route_vlan1216="-net 201:abc:def0:d2::/64 201:abc:def0:d2::fffe"
ipv6_activate_all_interfaces="YES"
ipv6_gateway_enable="YES"
ipv6_ip4mapping="YES" # Dual Stack erlauben
ipv6_network_interfaces="eth1 vlan1168 vlan1184 vlan1200 vlan1216"
ifconfig_eth0_accept_rtadv="YES"
ifconfig_eth0_no_radr="YES"
ifconfig_eth1_accept_rtadv="YES"
ifconfig_eth1_no_radr="YES"
ifconfig_vlan1168_accept_rtadv="YES"
ifconfig_vlan1168_no_radr="YES"
rtsold_enable="YES"
rtsold_flags="-a -l eth1"
Can anyone give us a hint on this, what we are doing wrong? Can I use alias addresses to announce multiple prefixes in one VLAN?
We would be very happy about any suggestions. Otherwise we have to create a separate VLAN for each segment.