Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Ipv6 static adresses not working #10

Closed
mzhirnov1 opened this issue Sep 14, 2021 · 8 comments
Closed

Ipv6 static adresses not working #10

mzhirnov1 opened this issue Sep 14, 2021 · 8 comments

Comments

@mzhirnov1
Copy link

Hi! We are trying to use the Ipv6 static address but with no luck. Static ipv4 is working. Can you suggest anything?

@Luap99
Copy link
Member

Luap99 commented Sep 14, 2021

What do you mean by static addresses? How do you use this plugin?

@mzhirnov1
Copy link
Author

Here is example for docker https://stackoverflow.com/questions/27937185/assign-static-ip-to-docker-container

I need to bind ipv6 address to container. We have service which use Ipv6 as Client ID so I need to have IP available if I stop container and start again

@Luap99
Copy link
Member

Luap99 commented Sep 14, 2021

What command are you running?
Port forwarding for a specific ip does not work at the moment see containers/podman#11528

@mzhirnov1
Copy link
Author

podman run --name $NAME$i --net $NET -d elve/node-web-app

@mzhirnov1
Copy link
Author

mzhirnov1 commented Sep 14, 2021

cat /etc/cni/net.d/ipv6_whatsup.conflist
{
"cniVersion": "0.4.0",
"name": "ipv6_whatsup",
"plugins": [
{
"type": "bridge",
"bridge": "cni-podman1",
"isGateway": true,
"ipMasq": true,
"hairpinMode": true,
"ipam": {
"type": "host-local",
"routes": [
{
"dst": "::/0"
},
{
"dst": "0.0.0.0/0"
}
],
"ranges": [
[
{
"subnet": "2a01:3f8:10b:a17:3::/80",
"gateway": "2a01:3f8:10b:a17:3::1"
}
],
[
{
"subnet": "10.89.0.0/22",
"gateway": "10.89.0.1"
}
]
]
}
},
{
"type": "portmap",
"capabilities": {
"portMappings": true
}
},
{
"type": "firewall",
"backend": ""
},
{
"type": "tuning"
},
{
"type": "dnsname",
"domainName": "dns.podman",
"capabilities": {
"aliases": true
}
}
]

@mzhirnov1
Copy link
Author

this configuration use DHCP. But I need static IPv6 .

@mzhirnov1
Copy link
Author

mzhirnov1 commented Sep 14, 2021

I want to assign IPv6 when I start container. Same as in Docker
https://docs.podman.io/en/latest/markdown/podman-run.1.html

image

@Luap99
Copy link
Member

Luap99 commented Sep 14, 2021

This repository is about issues with podman-machine port forwarding. If you have problem with podman please fill a bug against podman. The ipv6 bug is already tracked there containers/podman#7511.

@Luap99 Luap99 closed this as completed Sep 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants