Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Establish Connection Between Host and Container via GNS3 Cloud Node #2386

Closed
nazdridoy opened this issue Jun 12, 2024 · 1 comment

Comments

@nazdridoy
Copy link

Description

I am experiencing an issue with GNS3 on my Arch Linux machine (no VM). I am trying to connect my container in GNS3 to the internet through my physical Ethernet interface "enp0s20f0u1c2". I have added "enp0s20f0u1c2" in the cloud node and connected my Ubuntu container to this cloud node.

The container successfully receives an IP address from my home router's DHCP, and it can connect to the internet. All hosts on the same network (192.168.0.0/24) can reach the container, and the container can ping all of them. However, there is an issue with connectivity between the host running the GNS3 instance and the container:

  • The host cannot ping the container.
  • The container cannot ping the host.

Steps to Reproduce

  1. Run GNS3 on Arch Linux (no VM).
  2. Add the physical Ethernet interface "enpXXXX" to the GNS3 cloud node.
  3. Connect an Ubuntu container to the cloud node("enpXXXX").
  4. Obtain an IP address for the container from the home router's DHCP.
  5. Try to ping the container from the host and the host from the container.

Expected Behavior

  • The host should be able to ping the container.
  • The container should be able to ping the host.

Actual Behavior

  • The host cannot ping the container.
  • The container cannot ping the host.

Additional Information

  • Host OS: Arch Linux
  • GNS3 version: 2.2.47
  • Network: 192.168.0.0/24

Troubleshooting Steps Taken

  • Verified that the container can reach other hosts on the network and access the internet.
  • Confirmed that there are no firewall rules blocking the connection.

Is this behavior intended, or is it a bug? How can I establish a connection between the host and the container connected via the cloud node?

Thank you for your assistance.


Let me know if you need any additional information.

@grossmj
Copy link
Member

grossmj commented Aug 3, 2024

The best way is to use a bridge with your physical Ethernet interface inside. Then use your bridge in the GNS3 cloud node. Something similar to this: GNS3/gns3-gui#1921 (comment)

or you could just use a NAT node as described in GNS3/gns3-gui#3606 (comment) You will have to install libvirt on your system.

@grossmj grossmj closed this as completed Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants