Submitted by hinhthoi on Thu, 06/30/2016 - 09:46
Hi Virtualmin developers,
I am trying to use API to create new virtual server and want to add the default shared IPv4 and default shared IPv6 to it:
Here is the commandline i learn from the API page https://www.virtualmin.com/documentation/developer/cli/create_domain
The command i try:
root@server2:~# virtualmin create-domain --domain foo.com --pass mypass --ip6 2604:4100:0:1::4612:9793
Unknown parameter --ip6
Adds a new Virtualmin virtual server, with the settings and features
specified on the command line.
virtualmin create-domain --domain domain.name
--pass password-for-unix-user |
--passfile password-file
[--hashpass]
[--parent domain.name | --alias domain.name |
--alias-with-mail domain.name |
--superdom domain.name]
[--desc description-for-domain]
[--email contact-email]
[--user new-unix-user]
[--group new-unix-group]
[--unix]
[--dir]
[--dns]
[--mail]
[--web]
[--webalizer]
[--ssl]
[--logrotate]
[--mysql]
[--ftp]
[--spam]
[--virus]
[--webmin]
[--virtualmin-awstats]
[--default-features] | [--features-from-plan]
[--allocate-ip | --ip virtual.ip.address |
--shared-ip existing.ip.address]
[--ip-already]
[--dns-ip address | --no-dns-ip]
[--max-doms domains|*]
[--max-aliasdoms domains]
[--max-realdoms domains]
[--max-mailboxes boxes]
[--max-dbs databases]
[--max-aliases aliases]
[--template "name"]
[--plan "name"]
[--limits-from-plan]
[--suffix username-prefix]
[--db database-name]
[--fwdto email-address]
[--reseller name]
[--mysql-pass password]
[--skip-warnings]
[--letsencrypt]
[--field-name value]*
So actually the ip6 feature is not in the list of the allowable settings.
I notice ip6 also not working for modify-domain command line.
Is there anyway to enable the ipv6 feature when create/modify a domain?
Thank you for any help!
Status:
Active
Comments
Submitted by JamieCameron on Thu, 06/30/2016 - 17:31 Comment #1
This could happen if Virtualmin doesn't detect that your system support IPv6. Which Linux distribution and version are you running?
Submitted by hinhthoi on Fri, 07/01/2016 - 02:07 Comment #2
Hi Jamie,
I'm using Ubuntu 14.04.
Thank you for your support!
Submitted by JamieCameron on Fri, 07/01/2016 - 08:45 Comment #3
So the only case in which Virtualmin could detect IPv6 as not enables is if none of your existing network interfaces have a v6 address. Is that the case?
Submitted by hinhthoi on Mon, 07/25/2016 - 21:04 Comment #4
I'm not sure how to check that info, here is the result of ifconfig, it shows that ipv6 is available (Note: i have replaced real IPs with the fake one)
root@dallas:~# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:5273295 errors:0 dropped:0 overruns:0 frame:0
TX packets:5273295 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1745835334 (1.7 GB) TX bytes:1745835334 (1.7 GB)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.2 P-t-P:127.0.0.2 Bcast:0.0.0.0 Mask:255.255.255.255
inet6 addr: 2602:ffc6:35::1:57c2/128 Scope:Global
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:4471908 errors:0 dropped:0 overruns:0 frame:0
TX packets:4454166 errors:0 dropped:6 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1430321873 (1.4 GB) TX bytes:2575300724 (2.5 GB)
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:12.106.88.14 P-t-P:12.106.88.14 Bcast:12.106.88.14 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
Submitted by JamieCameron on Mon, 07/25/2016 - 22:33 Comment #5
Hmm, that looks fine to me.
If you go to Webmin -> Networking -> Network Configuration -> Active Interfaces, does it show a v6 address on the
venet0
interface?