While I can simply have e.g. sshd in a chroot environment (chrootenv) listen to a different port than its parent (parentenv), it would be more convenient to have that environment have an additional IP and hostname and have sshd listen to that IP's port 22. So basically I'd like to set up a chroot environment such that it behaves like a separate host in the network. How can this be achieved? Or is this something LXC or user-mode Linux (which I lack experience with) is better suited for?
How to assign an additional IP/hostname to a chrooted environment?
linux;networking;chroot;lxc;namespace