please show your config, /etc/network/interfaces and /etc/network.d/
and also
# https://pve.proxmox.com/wiki/Network_Configuration
and also
iptable -L -t nat
# https://pve.proxmox.com/wiki/Network_Configuration
iptable -L -t nat
please show your config, /etc/network/interfaces and /etc/network.d/
and alsoiptable -L -t nat
# https://pve.proxmox.com/wiki/Network_Configuration
root@pve:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface enp2s0 inet manual
auto wlo1
iface wlo1 inet manual
address 192.168.50.20/24
gateway 192.168.50.1
auto vmbr0
iface vmbr0 inet static
address 192.168.51.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
auto vnet1
iface vnet1 inet static
address 192.168.52.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
hwaddress 6e:08:e2:74:e7:61
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -A FORWARD -i wlo1 -j ACCEPT
post-up iptables -A FORWARD -o wlo1 -j ACCEPT
post-up iptables -A FORWARD -i vnet1 -j ACCEPT
post-up iptables -A FORWARD -o vnet1 -j ACCEPT
root@pve:~# cat /etc/network.d
cat: cannot access '/etc/network.d': No such file or directory
network
and networks
in /etc though.root@pve:~# iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Thanks - traceroute to another host gives:
Code:user@debian:~$ traceroute 192.168.50.246 traceroute to 192.168.50.246 (192.168.50.246), 30 hops max, 60 byte packets 1 debian (169.254.11.14) 3077.298 ms !H 3077.283 ms !H 3077.278 ms !H
vnet1 is 192.168.52.1, pinging just hangs (no message, blinking cursor):
Code:user@debian:~$ ping 192.168.52.1 PING 192.168.52.1 (192.168.52.1) 56(84) bytes of data. _
Router gateway 192.168.50.1 is unreachable:
Code:user@debian:~$ ping 192.168.50.1 PING 192.168.50.1 (192.168.50.1) 56(84) bytes of data. From 169.254.11.14 icmp_seq=1 Destination Host Unreachable From 169.254.11.14 icmp_seq=2 Destination Host Unreachable From 169.254.11.14 icmp_seq=3 Destination Host Unreachable
Can I use the default vmbr0 to replace vnet1 as the bridge, I have tried this, but it doesn't work, I wonder why it doesn't work, but vnet1 can work, thank you very muchYes, the "Bridge" for the virtual network interface for VM's and containers should be set to vnet1 based on the example that I posted. The vnet1 is essentially a virtual switch. In SDN terms, it's referred to as a Bridge even though the wireless interface doesn't bridge to a physical adapter.
Can I use the default vmbr0 to replace vnet1 as the bridge, I have tried this, but it doesn't work, I wonder why it doesn't work, but vnet1 can work, thank you very much
route add 192.168.3.0 MASK 255.255.255.0 192.168.0.1
The route addition failed: Element not found.
Got the host connected to internet via Wifi. Stuck on getting guest Windows VM connected to internet.
I added vnet1 as network device to the Windows VM.
But when I tried to doon Windows, I getCode:route add 192.168.3.0 MASK 255.255.255.0 192.168.0.1
response.Code:The route addition failed: Element not found.
My '/etc/network/interfaces' is same as original post except router ip(gateway) is 192.168.0.1 and address for vmbr0 is 192.168.0.200.
Any advice would be helpful.
Update: Realized I need to give interface number. It gave OK after that but still no internet.
I set the Windows VM like this:You do not need to manually add routes to VM's. Static routes only need to be added to hosts on your local network so they can access hosts on the vnet1 subnet. For your Windows VM, simply configure the Gateway setting to use the IP address of the vnet1 interface of the Proxmox server.
> cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface enp1s0 inet manual
auto wlp2s0
iface wlp2s0 inet static
address 192.168.0.100/24
gateway 192.168.0.1
# netmask 255.255.255.0
auto vmbr0
iface vmbr0 inet static
address 192.168.0.200/24
gateway 192.168.0.1
bridge-ports enp1s0
bridge-stp off
bridge-fd 0
auto vnet1
iface vnet1 inet static
address 192.168.3.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
hwaddress 46:01:d9:f7:8c:6b
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -A FORWARD -i wlp2s0 -j ACCEPT
post-up iptables -A FORWARD -o wlp2s0 -j ACCEPT
post-up iptables -A FORWARD -i vnet1 -j ACCEPT
post-up iptables -A FORWARD -o vnet1 -j ACCEPT
source /etc/network/interfaces.d/*
I set the Windows VM like this:
View attachment 88388
Windows Diagnosis tool says:
View attachment 88389
(I hope gateway IP here should not be actual router IP(i.e, 192.168.0.1). I tried that and Windows Network Diagnostic thing said 'Unable to access DNS server'. Pings didn't work so DNS isn't the only issue with 192.168.0.1)
And on my host/Proxmox:
Code:> cat /etc/network/interfaces auto lo iface lo inet loopback iface enp1s0 inet manual auto wlp2s0 iface wlp2s0 inet static address 192.168.0.100/24 gateway 192.168.0.1 # netmask 255.255.255.0 auto vmbr0 iface vmbr0 inet static address 192.168.0.200/24 gateway 192.168.0.1 bridge-ports enp1s0 bridge-stp off bridge-fd 0 auto vnet1 iface vnet1 inet static address 192.168.3.1/24 bridge-ports none bridge-stp off bridge-fd 0 hwaddress 46:01:d9:f7:8c:6b post-up echo 1 > /proc/sys/net/ipv4/ip_forward post-up iptables -A FORWARD -i wlp2s0 -j ACCEPT post-up iptables -A FORWARD -o wlp2s0 -j ACCEPT post-up iptables -A FORWARD -i vnet1 -j ACCEPT post-up iptables -A FORWARD -o vnet1 -j ACCEPT source /etc/network/interfaces.d/*
That makes sense. So let Windows VM be 192.168.3.101 and gateway be 192.168.3.1.The screenshot shows you have assigned Windows the IP address of 192.168.3.0. That is not a valid IP address for the configuration you're using. Your vnet1 subnet is 192.168.3.0/24. You cannot assign an IP address of 192.168.3.0 based on the subnet range you have chosen. Assign your Windows host an address between 192.168.3.2 - 192.168.3.254. You cannot assign the Windows host the 192.168.3.1 address because that is in use by the Proxmox vnet1 interface.
That makes sense. So let Windows VM be 192.168.3.101 and gateway be 192.168.3.1.
View attachment 88438
VM's Hardware:
View attachment 88435
Inside the VM, Ethernet 3 is net0(bridge=vmbr0) and Ethernet 6 is net1(bridge=vnet1):
View attachment 88436
Ignore extra adapters, it's a migrated Windows VM.
Unfortunately, still no internet:
View attachment 88437
Pings:
View attachment 88439
View attachment 88440
View attachment 88441
I feel like I am missing something basic or obvious at this point.
One network device was for bridge(vmbr0) to LAN and another for bridge(vnet1) to wifi.The only thing that is notable in the screenshots you posted is that you have 2 Network Devices for the VM. Is there a reason why you created the VM with 2 Network Devices? You only need 1 Network Device for the VM and it should be bridge to vnet1. As no one else has had this issue it would seem you may have missed a step somewhere.
I would also suggest asking for assistance in the Unofficial Proxmox Discord. You can access it at https://discord.gg/vmP5EvRw
We use essential cookies to make this site work, and optional cookies to enhance your experience.