change the server IP and I don't have internet

josecignetti

Member
Jul 20, 2020
4
0
6
34
good afternoon
I changed the IP of proxmox and now I have no internet. Although if I have in the VMs.

I detail my configuration


Code:
/etc/network/interfaces


auto lo
iface lo inet loopback

iface enp3s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 10.15.150.7
        netmask 255.255.255.0
        gateway 10.15.150.254
        bridge-ports enp3s0
        bridge-stp off
        bridge-fd 0


Code:
/etc/hosts
127.0.0.1 localhost.localdomain localhost
10.15.150.7 polovrt.srv polovrt

# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


Code:
ip route
default via 10.15.150.254 dev vmbr0 onlink
10.15.150.0/24 dev vmbr0 proto kernel scope link src 10.15.150.7

ping to my gateway
Code:
ping 10.15.150.254
PING 10.15.150.254 (10.15.150.254) 56(84) bytes of data.
64 bytes from 10.15.150.254: icmp_seq=1 ttl=64 time=0.322 ms
64 bytes from 10.15.150.254: icmp_seq=2 ttl=64 time=0.248 ms
64 bytes from 10.15.150.254: icmp_seq=3 ttl=64 time=0.204 ms
64 bytes from 10.15.150.254: icmp_seq=4 ttl=64 time=0.260 ms
64 bytes from 10.15.150.254: icmp_seq=5 ttl=64 time=0.255 ms

Ping to Google

Code:
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
^C
--- 8.8.8.8 ping statistics ---
8 packets transmitted, 0 received, 100% packet loss, time 153ms

as additional data I attach the photo where you can see that the ping goes out for the internet but does not return.
I hope you can help me. or guide me how to follow the troubleshooting

Thank you very much for your time.
 

Attachments

  • ping.jpg
    ping.jpg
    12.5 KB · Views: 6
Did you restart the networking service after making the change (systemctl restart networking)?
 
Seems strange..
is there any way to declare the default output path?
What do you mean by declare the default output path?

What steps did you take when changing the IP address?

Also, do you happen to have a firewall enabled, that may be blocking traffic?
 
Hi! Thank you very much for guiding me!

I had my network running on the 192.168.x.x / 24 network, then I moved the server to the 10.15.150.0/24 network.
On the router disable all firewall rules that are blocking proxmox traffic.
The weird thing is that when I ping 8.8.8.8 the packet goes through the router, but doesn't come back. If you could tell me some command to check, I thank you.
sorry for my inglish

Here I pass all the firewall I have

Code:
root@polovrt:~# pve-firewall localnet
local hostname: polovrt
local IP address: 10.15.150.7
network auto detect: 10.15.150.0/24
using detected local_network: 10.15.150.0/24


Code:
root@polovrt:~# # pve-firewall status
root@polovrt:~# # pve-firewall status
 
Try to ping both sides of your router and also the router's own gateway. These tests tell you the following things and are applicable to ALL routing issues:

Ping the router address: A success here means that your switches and network interfaces are working properly. A failure indicates issues with the network card of your router or host, or a problem with the switch
Ping the router's public address: A success indicates all of the above success and that your host is properly using its gateway and subnet mask. A failure can indicate that there is a problem with your gateway address, your subnet mask.
Ping the router's own router: A success indicates all of the above success and means that your firewall is properly routing and any further failure could indicate a problem with DNS or with your ISP. A failure indicates a firewall is the issue. Check to see if the firewall can ping its own firewall. Also check your NAT and firewall settings.

Also, a reboot of the system is always useful as it may clear up other issues with bridging or even with the order that things are brought up. It is a useful step because it will demonstrate how the system will come up during a power failure or on the next reset. I've seen issues resolved by this step when re-scoping subnets in Proxmox.

Also, this is important as well for clustering and other items. If you have changed your subnet, be sure to update the /etc/hosts file entry for your PVE server so that the server references itself with the proper IP address. But it looks like you did that already. However your TLD falls outside of RFC2606 and SAC 045 and might be considered 'malformed' since there is no distinguishable partition between domain and TLD which are the same. This should cause the problem but might have later deleterious consequences.
 
Hi!
follow up on everything you told me and still the same problem. I contacted the ISP and everything is fine, disable all my network firewall and it still does not respond. Attached images of my router and the answers of the pings

Code:
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
 1  10.15.150.254 (10.15.150.254)  0.247 ms  0.334 ms  0.411 ms
 2  * * *
 3  * * *
 4  * * *
 5  * * *
 6  * * *
 7  * * *
 8  * * *
 9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *
 

Attachments

  • firewall Datacenter.jpg
    firewall Datacenter.jpg
    101.9 KB · Views: 8
  • firewall PVE.jpg
    firewall PVE.jpg
    129.3 KB · Views: 7
  • ping and routes.jpg
    ping and routes.jpg
    162.3 KB · Views: 7

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!