Hello,
I'm trying to figure out whether/how it may be possible on FreeBSD to create a network subinterface with a different network subnet IP. I do not want to use the concept of "alias" (multiple IPs on single interface). I would like to use a subinterface of a parent.
On Linux I can do this as follows:
This would make eth0:1 a subinterface of eth0 and show up with
On FreeBSD I have tried the following:
My guess is I may be on the right track, and would appreciate some guidance.
I'm trying to figure out whether/how it may be possible on FreeBSD to create a network subinterface with a different network subnet IP. I do not want to use the concept of "alias" (multiple IPs on single interface). I would like to use a subinterface of a parent.
On Linux I can do this as follows:
ifconfig eth0:1 10.10.10.1 netmask 255.255.255.0 up
This would make eth0:1 a subinterface of eth0 and show up with
ifconfig -a
as a separate interface (same MAC as eth0), with a different IP/mask.On FreeBSD I have tried the following:
Code:
ifconfig vtnet0:1 create (gives SIOCIFCREATE2: Invalid argument)
ifconfig vtnet0.1 create (works, but this is for VLAN vs. subinterface)
ifconfig vtnet0.1 inet 192.168.181.223/17 (works, but IP is not able to ping anything outside on 192.168.x.x network)