Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable ipv6 to access the internet? #634

Open
Tony-Yes opened this issue Dec 9, 2024 · 0 comments
Open

How to enable ipv6 to access the internet? #634

Tony-Yes opened this issue Dec 9, 2024 · 0 comments

Comments

@Tony-Yes
Copy link

Tony-Yes commented Dec 9, 2024

Operating system

debian

Description

How do I enable ipv6? I have an ipv6 network in my container, but I found that the network created by qemu does not use ipv6 addresses

Docker compose

services:
windows:
image: dockurr/windows
container_name: windows
environment:
VERSION: "11"
LANGUAGE: "Chinese"
DISK_SIZE: "128G"
CPU_CORES: "8"
RAM_SIZE: "8G"
USERNAME: "Tony"
PASSWORD: "xxx"
#ARGUMENTS: "-netdev tap,id=hostnet1,ifname=qemu,script=no,down
script=no,ipv6=yes,netdev=hostnet1,id=net1"
volumes:
- /opt/win:/storage
- /home:/data
devices:
- /dev/kvm
- /dev/net/tun
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
stop_grace_period: 2m
networks:
"10":
ipv4_address: 10.0.0.111
networks:
"10":
external: true
name: "10"

Docker log

root@3b7581024b78:/# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNK
NOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: dockerbridge: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdi
sc noqueue state UP group default qlen 1000
    link/ether 3a:bc:61:d1:c0:a4 brd ff:ff:ff:ff:ff:ff
    inet 20.20.20.1/24 brd 20.20.20.255 scope global dockerbrid
ge
       valid_lft forever preferred_lft forever
    inet6 fe80::8822:7cff:fe32:32df/64 scope link
       valid_lft forever preferred_lft forever
3: qemu: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdi
sc fq master dockerbridge state UP group default qlen 1000
    link/ether 3a:bc:61:d1:c0:a4 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::38bc:61ff:fed1:c0a4/64 scope link
       valid_lft forever preferred_lft forever
57: eth0@if58: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
 noqueue state UP group default
    link/ether 02:42:0a:00:00:6f brd ff:ff:ff:ff:ff:ff link-net
nsid 0
    inet 10.0.0.111/24 brd 10.0.0.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 2001:db8:1::2/64 scope global nodad
       valid_lft forever preferred_lft forever
    inet6 fe80::42:aff:fe00:6f/64 scope link
       valid_lft forever preferred_lft forever

Screenshots (optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant