I cant find documentation on how to change the docker0 interfaces. I checked /etc/network/interfaces and /etc/netplan and both do not have references to docker0. The reason is because we're already using the 172.17.0.0/16 space within our network.
Also, what is the nat0 interface used for? I see a pnet0 which is what is reachable outside the VM. Not sure what nat0 is for then.
Change IP for Docker0 Interface
Moderator: mike
-
- Posts: 5086
- Joined: Wed Mar 15, 2017 4:44 pm
- Location: London
- Contact:
Re: Change IP for Docker0 Interface
nat is for internet in the lab if you have only one dedicated IP on pnet0, and other IP from pnet0 subnet is not available for lab nodes.
nat0 is natting 172.29.129.0/24 to pnet0 interface IP
nat0 is natting 172.29.129.0/24 to pnet0 interface IP
-
- Posts: 3
- Joined: Thu Apr 30, 2020 2:33 pm
Re: Change IP for Docker0 Interface
So would you know how to change the IP address for docker0 in the PRO version? There's no references to it that I can find.
root@eve-ng:~# ifconfig docker0
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:00:c1:20:f2 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@eve-ng:~# ifconfig docker0
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:00:c1:20:f2 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0