cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2402
Views
0
Helpful
1
Replies

gns3 ubuntu docker cant get ip address

mkazam001
Level 3
Level 3

Just in case anyone can offer some help.

I'm unable to get an IP address for the Ubuntu container in GNS3, has anyone found the same problem & managed to fix it.

I'm using version 1.5.1 so have to use the cloud to get to the internet.

I've configured both a router - to test dhcp & ping 8.8.8.8 which works fine -  the ubuntu docker does not.

I've edited the ubuntu network config - removed # from the 2 lines so its setup for dhcp - saved & reloaded the container but it still wont get IP via dhcp.

 

This is what happens in Ubuntu:

Sending discover...

Sending select for 192.168.137.222...

Sending select for 192.168.137.222...

Sending select for 192.168.137.222...

Sending select for 192.168.137.222...

Sending select for 192.168.137.222...

udhcpc failed to get a DHCP lease

No lease, forking to background

root@Ubuntu Docker Guest-1:~#

root@Ubuntu Docker Guest-1:~# ifconfig

eth0      Link encap:Ethernet  HWaddr 2e:6f:d3:30:76:5e

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:23 errors:0 dropped:0 overruns:0 frame:0

          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:2677 (2.6 KB)  TX bytes:4374 (4.3 KB)

 

Any suggestions would be greatly appreciated.

Regards, mk

1 Reply 1

pbagga
Cisco Employee
Cisco Employee

Hello,

 

This is not the right channel for this question. Software Defined Access (SDA) is a campus fabric managed by Cisco DNAC for Enterprise Networking. 

 

For the ubuntu container, please make sure your docker bridge is connected to the VM network. Please refer to documentation here: https://docs.docker.com/network/bridge/

 

Thanks,

 

Prabhjit Singh Bagga