Hello I ran into any issue when. When creating a LXC with a static IP it is unable to connect to the internet, but is able to ping google. Then when I switch it to DHCP it is able to connect to the internet. I had used just containers before and the issue didn't occur previously. But once I created a VM for the first time this issue started and the VM does have internet but none of my containers now do.
Proxmox Network Config
auto lo
iface lo inet loopback
iface eno1 inet manual
auto enp2s0
iface enp2s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.0.14.80/24
gateway 10.0.14.1
bridge-ports eno1
bridge-stp off
bridge-fd 0
auto vmbr1
iface vmbr1 inet manual
bridge-ports enp2s0
bridge-stp off
bridge-fd 0
source /etc/network/interfaces.d/*
This is what I get when running ping 8.8.8.8 and ip a on the LXC with a static, but unable to apt update
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=252 time=17.2 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=252 time=15.2 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=252 time=16.0 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=252 time=17.5 ms
^C
--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 15.163/16.459/17.485/0.919 ms
-------------------------------------------------------------------------------------------------------------------------------------------------------
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 noprefixroute
valid_lft forever preferred_lft forever
2: eth0@if94: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether bc:24:11:b6:b6:95 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 10.0.14.84/24 brd 10.0.14.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::be24:11ff:feb6:b695/64 scope link
valid_lft forever preferred_lft forever
This is what I get when running ping 8.8.8.8 and ip a on the LXC switched to DHCP, but am able to apt update
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=252 time=17.6 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=252 time=14.6 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=252 time=15.1 ms
^C
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 14.558/15.752/17.596/1.322 ms
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 noprefixroute
valid_lft forever preferred_lft forever
2: eth0@if95: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether bc:24:11:b6:b6:95 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 10.0.14.126/24 brd 10.0.14.255 scope global dynamic eth0
valid_lft 5414sec preferred_lft 5414sec
inet6 fe80::be24:11ff:feb6:b695/64 scope link
valid_lft forever preferred_lft forever
Any help would be appreciated. Thank you
Proxmox Network Config
auto lo
iface lo inet loopback
iface eno1 inet manual
auto enp2s0
iface enp2s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.0.14.80/24
gateway 10.0.14.1
bridge-ports eno1
bridge-stp off
bridge-fd 0
auto vmbr1
iface vmbr1 inet manual
bridge-ports enp2s0
bridge-stp off
bridge-fd 0
source /etc/network/interfaces.d/*
This is what I get when running ping 8.8.8.8 and ip a on the LXC with a static, but unable to apt update
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=252 time=17.2 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=252 time=15.2 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=252 time=16.0 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=252 time=17.5 ms
^C
--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 15.163/16.459/17.485/0.919 ms
-------------------------------------------------------------------------------------------------------------------------------------------------------
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 noprefixroute
valid_lft forever preferred_lft forever
2: eth0@if94: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether bc:24:11:b6:b6:95 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 10.0.14.84/24 brd 10.0.14.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::be24:11ff:feb6:b695/64 scope link
valid_lft forever preferred_lft forever
This is what I get when running ping 8.8.8.8 and ip a on the LXC switched to DHCP, but am able to apt update
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=252 time=17.6 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=252 time=14.6 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=252 time=15.1 ms
^C
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 14.558/15.752/17.596/1.322 ms
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 noprefixroute
valid_lft forever preferred_lft forever
2: eth0@if95: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether bc:24:11:b6:b6:95 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 10.0.14.126/24 brd 10.0.14.255 scope global dynamic eth0
valid_lft 5414sec preferred_lft 5414sec
inet6 fe80::be24:11ff:feb6:b695/64 scope link
valid_lft forever preferred_lft forever
Any help would be appreciated. Thank you