Solved question about jail vnet can't get ipv4 from dhcp in freebsd14.2 ?

dear all :
i have pc installed with freeb14.2 and double stack (ipv4 and ipv6). now i have used bastille tool create a vnet jail. this jail network configuration as below.
ifconfig_e0b_yggdrasil_name="vnet0"
ifconfig_vnet0=" DHCP "
ifconfig_vnet0_ipv6=" inet6 accept_rtadv "

question : with this configure for vnet0, i can get slaac ipv6 address with vtnet0, but at same time. i can not get ipv4 from dhcp server .....
how to let it get ipv4 and ipv6 address in the same time ?

note: when i run command "dhclient vnet0" ,the vnet0 will get ipv4 address correctly.
thanks.
 
question solved :
ifconfig_vnet0="syncdhcp"

don't use ifconfig_vnet0="dhcp", that is not work. thanks.
 
if using bastille you can directly use
doas bastille create -T -V {name} 14.2-RELEASE 0.0.0.0 network-interface-name

it will automatically configure your DHCP it will use the same dhcp as your host network interface
 
if using bastille you can directly use
doas bastille create -T -V {name} 14.2-RELEASE 0.0.0.0 network-interface-name

it will automatically configure your DHCP it will use the same dhcp as your host network interface
Dear vesuvienne:
thanks. how to add multi-ipv6 address for jail ? please help me .
 
i think you can edit your jail.conf but i never did it, something like this will probably work

Code:
doas nano /usr/local/bastille/jails/azkaban/jail.conf

# then on the line ip6.addr line
ip6.addr = "vnet0|2001:db8::100, vnet0|2001:db8::101";

# or with bastille edit your jail directly from your host eg: editing my "azkaban" jail
doas bastille config azkaban set ip6.addr "vnet0|2001:db8::100, vnet0|2001:db8::101"
replace vnet0 with your interface name inside the jail
 
i think you can edit your jail.conf but i never did it, something like this will probably work

Code:
doas nano /usr/local/bastille/jails/azkaban/jail.conf

# then on the line ip6.addr line
ip6.addr = "vnet0|2001:db8::100, vnet0|2001:db8::101";

# or with bastille edit your jail directly from your host eg: editing my "azkaban" jail
doas bastille config azkaban set ip6.addr "vnet0|2001:db8::100, vnet0|2001:db8::101"
replace vnet0 with your interface name inside the jail
DEar vesuvienne:
thanks for your help. those two way didn't work. but i have add ipv6 address in jail /etc/rc.conf. thanks.
 
Back
Top