help me config network

hailua

New Member
Dec 5, 2019
1
0
1
38
file /etc/network/interfaces
auto lo
iface lo inet loopback



# The primary network interface
auto eth0
iface eth0 inet static
address 69.60.116.60
netmask 255.255.252.0
gateway 69.60.116.1
pre-up iptables-restore < /etc/iptables.up.rules
### Start IPV6 static configuration
iface eth0 inet6 static
pre-up modprobe ipv6
address 2607:feb8::3:a2
netmask 112
gateway 2607:feb8::3:1
### END IPV6 configuration
auto vmbr0
iface vmbr0 inet static
address 69.60.116.60
netmask 255.255.252.0
bridge_ports none
bridge_stp off
bridge_fd 0
bridge_maxwait 0
up ip route add 64.251.14.11/32 dev vmbr0
up ip route add 64.251.14.29/32 dev vmbr0
up ip route add 64.251.14.34/32 dev vmbr0
up ip route add 64.251.14.40/32 dev vmbr0
up ip route add 64.251.14.51/32 dev vmbr0
up ip route add 64.251.14.55/32 dev vmbr0
up ip route add 64.251.14.58/32 dev vmbr0
up ip route add 64.251.14.59/32 dev vmbr0
up ip route add 64.251.14.65/32 dev vmbr0
up ip route add 64.251.14.74/32 dev vmbr0
configip.jpg
please config for me VM don't connect internet
 
This is a curious network setup. Where is your server running?

What will definitely not work is to have the IP of the VM in the 64.x.x.x range and the gateway in the 69.x.x.x range. They are not in the same subnet.

Plus your vmbr0 has no bridge port defined and cannot connect to any physical network because of that.

You configured the same IP address on the eth0 and vmbr0 interface. This will not work and cause all kinds of weird behavior.

Probably you should change iface eth0 inet static to iface eth0 inet manual and move all the IP, netmask and gateway config to vmbr0 and set the bridgeport to eth0.

Then there is still the question why your VM has very different IPs from the server. Is it running in some datacenter like OVH?

More information regarding networking config can be found in our documentation: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_configuration
 

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!