gns3-server icon indicating copy to clipboard operation
gns3-server copied to clipboard

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

Open weiqi-chen opened this issue 1 year ago • 1 comments

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 avatar Oct 01 '24 13:10 weiqi-chen

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 avatar Oct 01 '24 13:10 weiqi-chen

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 avatar Nov 26 '24 02:11 grossmj

To: @grossmj 图片

图片

Test Result:

  • PC1 图片

  • PC2 图片

  • PC3 图片

图片

  • PC4 图片

  • PC5 图片

  • PC6 图片

I created a NAT cloud (NAT2) in GNS3 VM, It does not work. I cannot ping 192.168.80.1, whether it's NAT or cloud.

weiqi-chen avatar Nov 29 '24 14:11 weiqi-chen

I Also uncheck "Block network traffic originating from the host OS", then click "configure", then exit gns3. reboot my pc, , turn off my firewall, re-test it.  it seem the same.

图片

weiqi-chen avatar Nov 29 '24 14:11 weiqi-chen