Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Nov 2014 10:11:19 +0900
From:      TOGAWA Satoshi <toga@puyo.org>
To:        freebsd-users-jp@freebsd.org
Subject:   [FreeBSD-users-jp 95344] =?iso-2022-jp?b?ZXBhaXIqGyRCJE4bKEJNQUMbJEIlIiVJJWwlOSQsPUUbKEI=?= =?iso-2022-jp?b?GyRCSiMkOSRrGyhC?=
Message-ID:  <20141115101119.bacccd7953f5562ab5820224@puyo.org>

next in thread | raw e-mail | index | archive | help
$B8M@n$G$9!#(B

FreeBSD 10.0-R$B$r;H$C$F!"(Bjail$B$rJ#?tN)$A>e$2$F$$$^$7$?!#(B
10.1-R$B$K>e$2$?$H$3$m!"5/F0;~$K$3$s$J%a%C%;!<%8$,=P$k$h$&$K$J$j$^$7$?!#(B
----
epair1a: Ethernet address: 02:ff:00:00:04:0a
epair1b: Ethernet address: 02:ff:50:00:05:0b
epair1a: link state changed to UP
epair1b: link state changed to UP
epair2a: Ethernet address: 02:ff:00:00:06:0a
epair2b: Ethernet address: 02:ff:50:00:07:0b
epair2a: link state changed to UP
epair2b: link state changed to UP
epair1a: promiscuous mode enabled
epair3a: Ethernet address: 02:ff:00:00:08:0a
epair2a: promiscuous mode enabled
epair3b: Ethernet address: 02:ff:50:00:09:0b
epair3a: link state changed to UP
epair3b: link state changed to UP
epair3a: promiscuous mode enabled
epair4a: Ethernet address: 02:ff:00:00:05:0a
epair4b: Ethernet address: 02:ff:50:00:07:0b
epair4a: link state changed to UP
epair4b: link state changed to UP
epair4a: promiscuous mode enabled
epair4b: DAD detected duplicate IPv6 address fe80:2::ff:50ff:fe00:70b: NS in/out=0/0, NA in=0
epair4b: DAD complete for fe80:2::ff:50ff:fe00:70b - duplicate found
epair4b: manual intervention required
epair4b: possible hardware address duplication detected, disable IPv6
Cannot enable an interface with a link-local address marked duplicate.
Cannot enable an interface with a link-local address marked duplicate.
Cannot enable an interface with a link-local address marked duplicate.
----
$B3N$+$K(Bepair2b$B$H(Bepair4b$B$N(BMAC$B%"%I%l%9$,=EJ#$9$k$N$G!"$=$3$+$i@8@.$5$l$k(B
IPv6$B%"%I%l%9$,=EJ#$7$F$$$k$h$&$G$9!#(B

Web$B$rD4$Y$F$_$?$H$3$m!"(B http://demon-lord.com/doku.php?id=vps:vps_01 $B$K$F(B
----
epair$B$r0l$D:n@.$7$F(Bjailer$B$+$i(Bprisoner$B$K3d$jEv$F$F$+$i<!$N(Bepair$B$r:n@.$9$k$H(B
MAC$B%"%I%l%9$,=EJ#$9$k>l9g$,$"$k!#$3$N>l9g!"$=$l$>$l$N(Bepair$B$rF1$8(Bbridge$B$K(B
$B@\B3$9$k$H(BMAC$B%"%I%l%9$,=EJ#$7$FDL?.$,9T$($J$/$J$k!#LdBj$r2sHr$9$k0Y!"(B
epair$B$N:n@.$OF1;~4|$K9T$&!#(B
----
$B$H$$$&5-=R$,$"$j$^$7$?$,!"8=:_$N(B /etc/rc.d/jail $B$N;EAH$_$r;H$C$F!"(B
$B$3$NLdBj$r2r7h$9$k$K$O!"$I$&$9$l$PNI$$$N$G$7$g$&$+(B?

$B8=:_$N(B/etc/jail.conf $B$O0J2<$G$9!#(B
----
allow.mount;
allow.sysvipc;
vnet;
vnet.interface="epair${if}b";

host.hostname = "${name}.example.com";
path = "/usr/jails/${name}";
exec.clean;
exec.system_user = "root";
exec.jail_user = "root";
exec.prestart += "ifconfig epair${if} create up > /dev/null";
exec.prestart += "ifconfig bridge0 addm epair${if}a";
exec.start += "/sbin/ifconfig epair${if}b ${ip4addr}/24";
exec.start += "/sbin/route add default 192.168.0.1";
exec.start += "/sbin/ifconfig epair${if}b inet6 accept_rtadv up";
exec.start += "/sbin/rtsol epair${if}b";
exec.start += "/sbin/ifconfig epair${if}b inet6 ${ip6addr} alias";
exec.start += "/sbin/ifconfig epair${if}b inet6 -ifdisabled";
exec.start += "/bin/sh /etc/rc";
exec.stop = "";
exec.poststop += "ifconfig epair${if}a destroy";
exec.consolelog = "/var/log/jail_${name}_console.log";
mount.devfs;
mount.fstab = "/etc/fstab.${name}";
mount.fdescfs;
mount +=  "procfs /usr/jails/${name}/proc procfs rw 0 0";

jail01 {
        $if     = 1;
        $ip4addr        = 192.168.0.101;
        $ip6addr        = 2001:380:e03:169::101;
}

jail02 {
        $if     = 2;
        $ip4addr        = 192.168.0.102;
        $ip6addr        = 2001:380:e03:169::102;
}

jail03 {
        $if     = 3;
        $ip4addr        = 192.168.0.103;
        $ip6addr        = 2001:380:e03:169::103;
}

jail04 {
        $if     = 4;
        $ip4addr        = 192.168.0.104;
        $ip6addr        = 2001:380:e03:169::104;
}
----
$B$h$m$7$/$*4j$$$7$^$9!#(B

-- 
TOGAWA Satoshi <toga@puyo.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141115101119.bacccd7953f5562ab5820224>