Hi all,
I am testing vnet jails. Although I have defined a default route in the jail's /etc/rc.conf, it is not set up at boot:
If I perform one of the two following actions, it works:
So, it seems that routing is not started at boot time. Adding
in /etc/rc.conf does not help. I have looked for it but have not managed to find the solution.
Any help please?
I am testing vnet jails. Although I have defined a default route in the jail's /etc/rc.conf, it is not set up at boot:
Code:
root@jail02:/root # netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
10.7.100.0/24 link#2 U 0 9 vnet0
10.7.100.2 link#2 UHS 0 2 lo0
127.0.0.1 link#1 UH 0 2 lo0
Code:
root@jail02:/root # cat /etc/rc.conf | sed -e 's/#.*//;/^\s*$/d'
defaultrouter="10.7.100.254"
pf_enable="NO"
rpcbind_enable="NO"
cron_flags="$cron_flags -J 15"
syslogd_flags="-ss"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
If I perform one of the two following actions, it works:
-
Code:
root@jail02:/root # route add default 10.7.100.254
-
Code:
root@jail02:/root # service routing start add net default: gateway 10.7.100.254 sysctl: net.inet.ip.sourceroute: Operation not permitted sysctl: net.inet.ip.accept_sourceroute: Operation not permitted add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 add net fe80::: gateway ::1 add net ff02::: gateway ::1
So, it seems that routing is not started at boot time. Adding
Code:
routing_enable="YES"
Any help please?