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

Guest( VMware machine or qemu guest(openwrt) ) on GNS3 can't ping VMnat8 address through Cloud node #2421

Closed
weiqi-chen opened this issue Oct 1, 2024 · 2 comments

Comments

@weiqi-chen
Copy link

weiqi-chen commented Oct 1, 2024

Herr is my "Virtual Network Editor" settings

图片
图片

Here is my GNS3 Preference for VMware preferences Advanced local settings
图片

Here is my Topology

By the way, I'm trying to setup strongswan, so I has the "INTERNET" zone, just ignore it.

图片
图片

I want to copy some files to OpenWRT router(scp).
So I created a Cloud node, connected the devices to VMnet8
It strange that both Win7-2 and OpenWRT can't ping 192.168.80.1.
But they can get ip address from dhcp, ping 192.168.80.2and 8.8.8.8(has Internet Access).
It shows that VMware NAT is working well. Win7-2 can access OpenWRT web admin page.

I verified that both Win7-2 and Win7-1 connect the custom VMware virtual network adapters (changed by gns3 automatically) and I did not modify them.
I also shutdown my Host Windows 10 firewall.

图片

OpenWRT

root@OpenWrt:/# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br-lan state UP group default qlen 1000
    link/ether 0c:b0:c5:f7:00:00 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 0c:b0:c5:f7:00:01 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::eb0:c5ff:fef7:1/64 scope link
       valid_lft forever preferred_lft forever
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 0c:b0:c5:f7:00:02 brd ff:ff:ff:ff:ff:ff
    inet 192.168.80.131/24 brd 192.168.80.255 scope global eth2
       valid_lft forever preferred_lft forever
    inet6 fe80::eb0:c5ff:fef7:2/64 scope link
       valid_lft forever preferred_lft forever
5: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 0c:b0:c5:f7:00:00 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
       valid_lft forever preferred_lft forever
    inet6 fdbc:fbef:7cd8::1/60 scope global noprefixroute
       valid_lft forever preferred_lft forever
    inet6 fe80::eb0:c5ff:fef7:0/64 scope link
       valid_lft forever preferred_lft forever
root@OpenWrt:/# nslookup bing.com
Server:         127.0.0.1
Address:        127.0.0.1:53

Non-authoritative answer:
Name:   bing.com
Address: 13.107.21.200
Name:   bing.com
Address: 204.79.197.200

Non-authoritative answer:
Name:   bing.com
Address: 2620:1ec:c11::200

root@OpenWrt:/# ping 192.168.80.1
PING 192.168.80.1 (192.168.80.1): 56 data bytes
^C
--- 192.168.80.1 ping statistics ---
15 packets transmitted, 0 packets received, 100% packet loss
root@OpenWrt:/# ping 192.168.80.2
PING 192.168.80.2 (192.168.80.2): 56 data bytes
64 bytes from 192.168.80.2: seq=0 ttl=128 time=1.080 ms
64 bytes from 192.168.80.2: seq=1 ttl=128 time=1.744 ms
^C
--- 192.168.80.2 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 1.080/1.412/1.744 ms
root@OpenWrt:/# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.80.2    0.0.0.0         UG    0      0        0 eth2
192.168.1.0     *               255.255.255.0   U     0      0        0 br-lan
192.168.80.0    *               255.255.255.0   U     0      0        0 eth2

@weiqi-chen
Copy link
Author

Windows 10 21H2 LTSC, 19044.4894.
GNS3 2.2.49,
Npcap 1.79 (WinPcap compatibility selected as I remember)
winpcap not installed
VMware workstation 17pro 17.5.2

@weiqi-chen weiqi-chen changed the title Guest( VMware machine or qemu guest(openwrt) ) on GNS3 can't ping VMnat8 address Guest( VMware machine or qemu guest(openwrt) ) on GNS3 can't ping VMnat8 address through Cloud node Oct 1, 2024
@grossmj grossmj added Refactor and removed Refactor labels Nov 23, 2024
@grossmj
Copy link
Member

grossmj commented Nov 26, 2024

Looks like your need to use a NAT, not the normal cloud.

Please can you try both a NAT device and VPCS running inside the GNS3 VM? I was able to ping my VMnet8 interface.

Image

@grossmj grossmj closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants