Change IP for Docker0 Interface

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
ricerocket
Posts: 3
Joined: Thu Apr 30, 2020 2:33 pm

Change IP for Docker0 Interface

Post by ricerocket » Wed Jul 15, 2020 8:13 pm

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.

Uldis (UD)
Posts: 5086
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: Change IP for Docker0 Interface

Post by Uldis (UD) » Wed Jul 15, 2020 8:54 pm

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

ricerocket
Posts: 3
Joined: Thu Apr 30, 2020 2:33 pm

Re: Change IP for Docker0 Interface

Post by ricerocket » Thu Jul 16, 2020 5:10 am

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

Post Reply