Hi there,
I am a beginner in networking, and I think there is an issue with the configuration of my network interfaces, but I don't understand what is going on. I am unable to reach the internet, but when I manually delete the ip address of my eno1 interface, it will work until I start and shell login to a lxc container, after which the networking stops working again. (haven't tried it with VM). When I stop the container and again add and removing an ip address from eno1 on the host, the host will start working again.
Anyone have any insight into what is going on here?
NETWORK INTERFACES:
EXAMPLE:
I am a beginner in networking, and I think there is an issue with the configuration of my network interfaces, but I don't understand what is going on. I am unable to reach the internet, but when I manually delete the ip address of my eno1 interface, it will work until I start and shell login to a lxc container, after which the networking stops working again. (haven't tried it with VM). When I stop the container and again add and removing an ip address from eno1 on the host, the host will start working again.
Anyone have any insight into what is going on here?
NETWORK INTERFACES:
Code:
root@pve:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eno1 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.178.26/24
gateway 192.168.178.1
bridge-ports eno1
bridge-stp off
bridge-fd 0
iface wlp2s0 inet manual
EXAMPLE:
Code:
# pinging does not work
root@pve:~# ping google.com
PING google.com (142.251.39.110) 56(84) bytes of data.
From pve.local (169.254.59.34) icmp_seq=1 Destination Host Unreachable
# gateway is on 192.168.178.1, vbridge has 192.168.178.26, en01 has 169.254.59.34
root@pve:~# 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 noprefixroute
valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000
link/ether e4:54:e8:89:31:43 brd ff:ff:ff:ff:ff:ff
altname enp0s31f6
inet 169.254.59.34/16 brd 169.254.255.255 scope global eno1
valid_lft forever preferred_lft forever
inet6 fe80::e654:e8ff:fe89:3143/64 scope link
valid_lft forever preferred_lft forever
3: wlp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether f8:ac:65:ee:3b:b2 brd ff:ff:ff:ff:ff:ff
4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether e4:54:e8:89:31:43 brd ff:ff:ff:ff:ff:ff
inet 192.168.178.26/24 scope global vmbr0
valid_lft forever preferred_lft forever
inet6 fe80::e654:e8ff:fe89:3143/64 scope link
valid_lft forever preferred_lft forever
5: mpqemubr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:3a:c3:d3 brd ff:ff:ff:ff:ff:ff
inet 10.231.13.1/24 brd 10.231.13.255 scope global mpqemubr0
valid_lft forever preferred_lft forever
# deleting the ip address, it works!
root@pve:~# ip addr del 169.254.59.34/16 dev eno1
root@pve:~# ping google.com
PING google.com (142.251.39.110) 56(84) bytes of data.
64 bytes from ams15s48-in-f14.1e100.net (142.251.39.110): icmp_seq=1 ttl=118 time=6.17 ms
# Now, when I start the wordpress lxc container, it still works. But as soon as I login to the shell it will stop working on the host.
root@pve:~# ping google.com
PING google.com (142.251.39.110) 56(84) bytes of data.
From pve.local (169.254.54.52) icmp_seq=1 Destination Host Unreachable
# I stop the container and add and delete an ip addr, it works again
root@pve:~# ip addr add 192.168.178.21/24 dev eno1
root@pve:~# ip addr del 192.168.178.21/24 dev eno1
root@pve:~# ping google.com
PING google.com (142.251.39.110) 56(84) bytes of data.
64 bytes from ams15s48-in-f14.1e100.net (142.251.39.110): icmp_seq=1 ttl=118 time=7.41 ms
64 bytes from ams15s48-in-f14.1e100.net (142.251.39.110): icmp_seq=2 ttl=118 time=6.15 ms