I think I'm retarded today. I can't for the life of me get a freshly created jail(8) attached to any reachable IP/hostname. 
Anyway, here's some detail;
I'm running 12-CURRENT as the host for the jail(8) I'm creating, so that I can build a RELENG_11 world/kernel for an old outdated box I can't take out of production long enough to build on (its) bare metal.
So I unpack all the "dists" from the (11) install media into the jail folder. Set up the basics in the hosts rc.conf(5):
and the hosts jail.conf(5):
copy jail section from /etc/defaults/devfs.rules to /etc/devfs.rules
exec
devfs -m /jails/releng11/dev rule -s 4 applyset
clone the lo interface:
service netif cloneup
Now I have lo1 for the jail' IP (127.0.0.2).
I copy resolv.conf(5) from the hosts /etc/ to the jail' /etc/
Then I fire up jail(8), to initiate the jail' environment
(root password, adduser, newaliases, tzsetup)
jail -c path=/jails/releng11 command=/bin/sh
and create a rc.conf
All goes without error.
So I fire up the (now) initiated jail:
# jail -c releng11
Still no errors. So I attempt to login:
# ssh -l root releng11
Just hangs, no connection. So I try:
# ssh -l root releng11.localhost
Nothing. So I also try the (regular) user I also created. But still
a no-go. So I check the jail' status:
Hmm...
All looks correct. I give up! What am I doing wrong/forgetting?
Please help.
Thanks!
--Chris

Anyway, here's some detail;
I'm running 12-CURRENT as the host for the jail(8) I'm creating, so that I can build a RELENG_11 world/kernel for an old outdated box I can't take out of production long enough to build on (its) bare metal.
So I unpack all the "dists" from the (11) install media into the jail folder. Set up the basics in the hosts rc.conf(5):
Code:
# # # JAIL(8) iface # # #
cloned_interfaces="lo1"
# # # JAIL(8) stuff # # #
inetd_flags="-wW -a 127.0.0.2"
rpcbind_enable="NO"
jail_enable="YES"
jail_list="releng11"
Code:
allow.raw_sockets = 1;
relenf11 {
path = /jails/releng11;
host.hostname = releng11.localhost;
ip4.addr = 127.0.0.2;
interface = lo1;
exec.clean;
mount.devfs;
mount.fdescfs;
mount.procfs;
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.consolelog = /var/log/jail.releng11.console.log;
}
exec
devfs -m /jails/releng11/dev rule -s 4 applyset
clone the lo interface:
service netif cloneup
Now I have lo1 for the jail' IP (127.0.0.2).
I copy resolv.conf(5) from the hosts /etc/ to the jail' /etc/
Code:
# the jail HOST's internet facing IP
nameserver WW.XX.YY.XYZ
# our local recursive DNS
nameserver WW.XX.YY.XYY
nameserver 127.0.0.1
(root password, adduser, newaliases, tzsetup)
jail -c path=/jails/releng11 command=/bin/sh
and create a rc.conf
Code:
hostname="releng11.localhost"
sshd_enable="YES"
sendmail_enable="NONE"
So I fire up the (now) initiated jail:
# jail -c releng11
Still no errors. So I attempt to login:
# ssh -l root releng11
Just hangs, no connection. So I try:
# ssh -l root releng11.localhost
Nothing. So I also try the (regular) user I also created. But still
a no-go. So I check the jail' status:
Code:
# jls
JID IP Address Hostname Path
3 127.0.0.2 releng11.localhost /jails/releng11
Code:
# pgrep -lfj 3
43901 /usr/sbin/cron -s
42643 /usr/sbin/sshd
26046 /usr/sbin/syslogd -s
Please help.
Thanks!
--Chris