host not found cant ping yahoo.com or use aptitude update in proxmox ve?

nate

Member
Mar 15, 2011
63
0
6
aptitude update && aptitude full-upgrade? fails when ssh into proxmox ve server and run from command line.

I try ping yahoo.com from command line get "unknown host". I can ping gateway address and ping other servers on local network.

Proxmox ve server is using a Bonded eth0 and eth1(balance-alb). Seems to be working fine, I can get to the UI and start a VM. If I remove the bond it works. I have the gateway address in the bond0 setup specified correct, and no gateway in vmbr0.

What is configured incorrect? How to fix?

thanks!
 

udo

Famous Member
Apr 22, 2009
5,918
180
83
Ahrensburg; Germany
aptitude update && aptitude full-upgrade? fails when ssh into proxmox ve server and run from command line.

I try ping yahoo.com from command line get "unknown host". I can ping gateway address and ping other servers on local network.

Proxmox ve server is using a Bonded eth0 and eth1(balance-alb). Seems to be working fine, I can get to the UI and start a VM. If I remove the bond it works. I have the gateway address in the bond0 setup specified correct, and no gateway in vmbr0.

What is configured incorrect? How to fix?

thanks!
Hi,
looks that your DNS-resolving don't work.
Do you have the right entry in /etc/resolv.conf? (like "nameserver 8.8.8.8")?
Is the default route right? e.g. is the nameserver reachable? Look with "ip route"

Perhaps an firewall between pve-host and network block dns?

Udo
 

nate

Member
Mar 15, 2011
63
0
6
Ya, I have that in there... I even had googles 8.8.8.8. I'm not sure what the search domain is for? But the name servers are correct. I posted below the rout info and network interfaces file. Thanks for the help.

search mydomain.com
nameserver x.x.223.1
nameserver 8.8.8.8

root@cloud1:~# ip route show
x.x.0.0/16 dev vmbr0 proto kernel scope link src x.x.223.136
root@cloud1:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
x.x.0.0 0.0.0.0 255.255.0.0 U 0 0 0 vmbr0


# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto bond0
iface bond0 inet static
address x.x.223.136
netmask 255.255.0.0
gateway x.x.223.1
slaves eth0 eth1
bond_miimon 100
bond_mode balance-alb

auto vmbr0
iface vmbr0 inet static
address x.x.223.136
netmask 255.255.0.0
bridge_ports bond0
bridge_stp off
bridge_fd 0
 

udo

Famous Member
Apr 22, 2009
5,918
180
83
Ahrensburg; Germany
Ya, I have that in there... I even had googles 8.8.8.8. I'm not sure what the search domain is for? But the name servers are correct. I posted below the rout info and network interfaces file. Thanks for the help.

search mydomain.com
nameserver x.x.223.1
nameserver 8.8.8.8

root@cloud1:~# ip route show
x.x.0.0/16 dev vmbr0 proto kernel scope link src x.x.223.136
root@cloud1:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
x.x.0.0 0.0.0.0 255.255.0.0 U 0 0 0 vmbr0


# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto bond0
iface bond0 inet static
address x.x.223.136
netmask 255.255.0.0
gateway x.x.223.1
slaves eth0 eth1
bond_miimon 100
bond_mode balance-alb

auto vmbr0
iface vmbr0 inet static
address x.x.223.136
netmask 255.255.0.0
bridge_ports bond0
bridge_stp off
bridge_fd 0
Hi,
don't use on both interfaces the ip adress.
use something like this
Code:
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto bond0
iface bond0 inet manual
        slaves eth0 eth1
        bond_miimon 100
        bond_mode balance-alb

auto vmbr0
iface vmbr0 inet static
        address  x.x.223.136
        netmask  255.255.0.0
        gateway  x.x.223.1
        bridge_ports bond0
        bridge_stp off
        bridge_fd 0
Udo
 

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 your own in 60 seconds.

Buy now!