OS= 2x FreeBSD-12, 1x FreeBSD-11
I have three bare metal hosts connected on a single non-managed switch. I am testing vlan configurations using one of the FreeBSD-12 hosts as a duel homed router and the other two hosts as single homed device nodes.
The network configuration for the host acting as a gateway is:
PF is running on the gway04 with nat enabled and pass all as the default rule.
One of the nodes is configured with:
The other with:
There is evidently some error in this configuration but I cannot see what it is. When I attempt to ping 192.168.151.1 from vhost05 there is no route to host. Likewise, when I ping from gway04 to 192.168.151.5 there is no route to host. What am I doing wrong?
I have three bare metal hosts connected on a single non-managed switch. I am testing vlan configurations using one of the FreeBSD-12 hosts as a duel homed router and the other two hosts as single homed device nodes.
The network configuration for the host acting as a gateway is:
Code:
# cat /etc/rc.conf
### Networks ### FreeBSD-12
hostname="gway04"
gateway_enable="YES" # Set to YES if this host will be a gateway
defaultrouter="A.B.C.1" # FIB of last resort
### Physical interfaces:
# LAN == em0
# WAN == em1
### Interface IP addresses and IP aliases
ifconfig_em0="inet 192.168.149.4/25"
ifconfig_em0_alias1="inet 192.168.149.1"
ifconfig_em1="inet A.B.C.4/25"
### Cloned interfaces for Jails and VLANs
cloned_interfaces="vlan150 vlan151"
### VLANs
ifconfig_vlan150="inet 192.168.150.4/24 vlan 150 vlandev em0"
ifconfig_vlan150_alias1="inet 192.168.150.1"
ifconfig_vlan151="inet 192.168.151.4/24 vlan 151 vlandev em0"
ifconfig_vlan151_alias1="inet 192.168.151.1"
PF is running on the gway04 with nat enabled and pass all as the default rule.
One of the nodes is configured with:
Code:
# cat /etc/rc.conf
### Networks ### FreeBSD-11
hostname="vhost04"
gateway_enable="NO" # Set to YES if this host will be a gateway
defaultrouter="192.168.149.1"
ifconfig_em0="inet 192.168.149.44/25" # Requires NAT enabled on gateway
ifconfig_em0_alias150="inet 192.168.150.44/24"
The other with:
Code:
# cat /etc/rc.conf
### Networks ### FreeBSD-12
hostname="vhost05"
gateway_enable="NO" # Set to YES if this host will be a gateway
defaultrouter="192.168.151.1"
ifconfig_em0="inet 192.168.151.5/24" # Requires NAT enabled on gateway
There is evidently some error in this configuration but I cannot see what it is. When I attempt to ping 192.168.151.1 from vhost05 there is no route to host. Likewise, when I ping from gway04 to 192.168.151.5 there is no route to host. What am I doing wrong?