Hello,
I have a problem with my vlan configuration and sshd
my virtual machine is connected do a dhcp server,
network is 10.0.2.0
netmask is 255.255.255.0
dhcp-range is 10.0.2.2-100
In my rc.conf
em0 will get ip 10.0.2.15
with this, sshd is reachable on 10.0.2.15
but, when I add
I cannot reach sshd on 10.0.2.15 on this machine
with arp -a there is no answer from 10.0.2.130, as expectet.
but when I change the subnet
sshd is reachable on 10.0.2.15
I cannot understand this, because, a vlan should behave, as a physically different wire / network and it should be possible to use the same network-range on different networks.
I have a problem with my vlan configuration and sshd
my virtual machine is connected do a dhcp server,
network is 10.0.2.0
netmask is 255.255.255.0
dhcp-range is 10.0.2.2-100
In my rc.conf
Code:
ifconfig_em0="DHCP"
with this, sshd is reachable on 10.0.2.15
but, when I add
Code:
vlans_em0="10 20"
ifconfig_em0_10="inet 10.0.2.130 netmask 255.255.255.0"
ifconfig_em0_20="inet inet 192.168.20.2 netmask 255.255.255.0"
with arp -a there is no answer from 10.0.2.130, as expectet.
but when I change the subnet
Code:
ifconfig_em0_10="inet 10.0.3.130 netmask 255.255.255.0"
I cannot understand this, because, a vlan should behave, as a physically different wire / network and it should be possible to use the same network-range on different networks.