Solved [Solved] More than one IP in/for jail?

Hey,

I got 2 ips I have two IP addresses:
Code:
lo1: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet 91.121.239.228 netmask 0xffffff00
        inet 188.165.139.63 netmask 0xffffffff
        nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33160

My /etc/jail.conf
Code:
Oksymoron {
        path = /jails/Oksymoron;
        mount.devfs;
        #allow.mount;
        #mount;
        host.hostname = Oksymoron.edu.pl;
        ip4.addr = 188.165.139.63, 91.121.239.228;
        interface = lo1;
        securelevel = 3;
        exec.start = "/bin/sh /etc/rc";
        exec.stop = "/bin/sh /etc/rc.shutdown";
}

And im I'm wondering if it is a good configuration? The jail works on IP 188.165.139.63 very well but on the second doesn't want to. Where could be the problem? Thanks for advice.
 
Re: More than one IP in/for jail?

Hi, @bryn1u, your configuration looks fine. You said that the issue is with the 91.121.239.228 address. How do you know? What did you try? What were you expecting and what did you get?

There is an alternative syntax for adding multiple addresses that you could try in your configuration file, though I wouldn't expect a difference:
Code:
ip4.addr = 188.165.139.63;
ip4.addr += 91.121.239.228;
 
Last edited by a moderator:
Re: More than one IP in/for jail?

bryn1u said:
My /etc/jail.conf
Code:
        ip4.addr = 188.165.139.63, 91.121.239.228;
Try removing the space after the comma:
Code:
        ip4.addr = 188.165.139.63,91.121.239.228;
 
Re: More than one IP in/for jail?

Hey,
I've resolved a problem. I found on this forum similar theard. I added one line to rc.conf.
Code:
ipv4_addrs_em0="91.121.239.228/32 188.165.139.63/32"
After reboot IPs were added by themself
Code:
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
        ether 00:30:48:bd:ee:08
        inet 94.23.237.216 netmask 0xffffff00 broadcast 94.23.237.255
        inet6 fe80::230:48ff:febd:ee08%em0 prefixlen 64 scopeid 0x1
        inet6 2001:41d0:2:70d8:: prefixlen 64
        inet 91.121.239.228 netmask 0xffffffff broadcast 91.121.239.228
        inet 188.165.139.63 netmask 0xffffffff broadcast 188.165.139.63
        nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
This system rocks !
 
Back
Top