Page 1 of 1
Change IP for Docker0 Interface
Posted: Wed Jul 15, 2020 8:13 pm
by ricerocket
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.
Re: Change IP for Docker0 Interface
Posted: Wed Jul 15, 2020 8:54 pm
by Uldis (UD)
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
Re: Change IP for Docker0 Interface
Posted: Thu Jul 16, 2020 5:10 am
by ricerocket
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