To get multiple Jails to run on a single NIC I was faced with two choices for alias IP creation:
I then ran into a problem: my diskless clients which boot from alc0 proper, (IP 192.168.2.1) started timing out on TFTP request at boot. Clients get their IP from DHCP just fine, but I have to reset the switch several times to get TFTP working and other complications.
Then I decided to shutdown all the Jails, and diskless booting was back to running smoothly. Conclusion: IP addresses from Jail aliases are corrupting the topology. I have a GBit switch, it's a cheap one and I don't expect miracles from it, but it may be getting the addresses confused because all of them are serviced through the same single port on the box. I can think of two causes for this problem:
Regards.
- Alias directly on to the NIC
- Clone lo1 and create alias IPs onto lo1.
Code:
ifconfig alc0 inet 192.168.1.100/24 alias
Then I decided to shutdown all the Jails, and diskless booting was back to running smoothly. Conclusion: IP addresses from Jail aliases are corrupting the topology. I have a GBit switch, it's a cheap one and I don't expect miracles from it, but it may be getting the addresses confused because all of them are serviced through the same single port on the box. I can think of two causes for this problem:
- My PF/NAT/rdr settings might be wrong, and maybe proper use of packet TAG will correct this. Currently I only tag as INTNET and have no rdr set up for dhcp/tftp/nfs (these services should not need it I think?) My current pf.conf here:
- I should in fact create the aliases on lo1 and let the FreeBSD network stack do the sorting instead of leaving the poor switch in a disoriented state. That way, the switch only communicates with alc0.
Regards.