Hi All.
My server upgrade to 12.0-Release and found news about VIMAGE into GENERAL config, meant VIMAGE ready for product environment.
So I wish to migrate exist ordinary jail to VIMAGE infrastructure too
.
But procedure stopped at default gateway.
Current ordinary jail environment detail description.
My server using VDSL PPPoE dial-up by net/mpd5 , and get pusedo static IPv4.
Dynamic IPv6 get by net/dhcp6 .
Network configuration
Here:
Generated netgraph
After Googled tutorial, I plan use /usr/share/examples/jails/jng to create VIMAGE.
Beasuse server using net/mpd5 , both same use netgraph(4) subsystem.
Below is testing /etc/jail.conf for VIMAGE jail "httpd".
Start jail by
And check interface by
Confirm new interface ng0_httpd generated.
And netgraph
can find new both wan0bridge and ng0_httpd generated.
Next step, configurate default gateway.
I known all of googled tutorial's upstream interface is static IP.
But my server use pusedo static IPv4.
I have no idea configre it and stopped here.
Can help me if possible?
Thanks all very much.
My server upgrade to 12.0-Release and found news about VIMAGE into GENERAL config, meant VIMAGE ready for product environment.
So I wish to migrate exist ordinary jail to VIMAGE infrastructure too
But procedure stopped at default gateway.
Current ordinary jail environment detail description.
My server using VDSL PPPoE dial-up by net/mpd5 , and get pusedo static IPv4.
Dynamic IPv6 get by net/dhcp6 .
Network configuration
ifconfig
Code:
wan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8000a<TXCSUM,VLAN_MTU,LINKSTATE> ether 00:1e:68:c4:e1:9e inet6 2001:b011:a480:592f:21e:68ff:fec4:e19e prefixlen 64 inet6 fe80::21e:68ff:fec4:e19e%wan0 prefixlen 64 scopeid 0x1 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo1: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> inet 10.0.0.254 netmask 0xffffff00 inet 10.0.0.2 netmask 0xffffffff inet 10.0.0.1 netmask 0xffffffff inet6 fe80::1%lo1 prefixlen 64 scopeid 0x5 inet6 fd00::ffff:ffff:fffe prefixlen 96 inet6 fd00::ffff:a00:2 prefixlen 128 inet6 fd00::ffff:a00:1 prefixlen 128 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> groups: lo ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1460 inet6 fe80::547:4b0e:4df6:1f7c%ng0 prefixlen 64 scopeid 0x6 inet 122.117.86.253 --> 168.95.98.254 netmask 0xffffffff nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
Here:
- ng0: Virtual interface created by net/mpd5 (VDSL dial-up PPPoE), attached pusedo static IPv4.
- lo1: Virtual interface clone from lo0, attach all of jail.
- wan0: "Physical interface to VDSL modem", attached dynamic IPv6 address by net/dhcp6 and got from above interface 'ng0'.
- 10.0.0.2 / fd00::ffff:a00:2: HTTP server Jail's address.
- 10.0.0.1 / fd00::ffff:a00:1: DNS server Jail's address.
Code:
allow.nomount; allow.noraw_sockets; allow.noset_hostname; allow.nosysvipc; exec.clean; exec.jail_user = "root"; exec.start += "/bin/sh /etc/rc"; exec.stop = "/bin/sh /etc/rc.shutdown"; exec.system_user = "root"; host.hostname = "epopen.com"; interface = "lo1"; mount.devfs; path = "/usr/jail/${name}"; persist; domain { ip4.addr = "10.0.0.1"; ip6.addr = "fd00::ffff:a00:1"; } http { ip4.addr = "10.0.0.2"; ip6.addr = "fd00::ffff:a00:2"; }
Generated netgraph

After Googled tutorial, I plan use /usr/share/examples/jails/jng to create VIMAGE.
Beasuse server using net/mpd5 , both same use netgraph(4) subsystem.
Below is testing /etc/jail.conf for VIMAGE jail "httpd".
Code:
allow.nomount; allow.noraw_sockets; allow.noset_hostname; allow.nosysvipc; exec.clean; exec.jail_user = "root"; exec.start += "/bin/sh /etc/rc"; exec.stop = "/bin/sh /etc/rc.shutdown"; exec.system_user = "root"; host.hostname = "epopen.com"; mount.devfs; path = "/usr/jail/${name}"; persist; domain { interface = "lo1"; ip4.addr = "10.0.0.1"; ip6.addr = "fd00::ffff:a00:1"; } http { vnet; vnet.interface = "ng0_${name}"; exec.prestart += "/usr/share/examples/jails/jng bridge ${name} wan0"; exec.poststop += "/usr/share/examples/jails/jng shutdown ${name}"; }
Start jail by
service jail start httpd
And check interface by
ifconfig
in jail.Code:
lo0: flags=8008<LOOPBACK,MULTICAST> metric 0 mtu 16384 options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> groups: lo ng0_httpd: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=28<VLAN_MTU,JUMBO_MTU> ether 02:c0:c5:c4:e1:9e nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active
Confirm new interface ng0_httpd generated.
And netgraph

Next step, configurate default gateway.
I known all of googled tutorial's upstream interface is static IP.
But my server use pusedo static IPv4.
I have no idea configre it and stopped here.
Can help me if possible?
Thanks all very much.