Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'am runing A Ubuntu server as a Host, and I've a CentOS guest hosting an oracle database.

Everything was working just fine, until someone init 6 the server (What a great idea!). So I've to reconfigure again the Host-Guest route, but I totaly forgot what I did to get everything working...

Normaly on my Guest I just have to run a .sh :

ifconfig eth0 10.0.45.100/32 up
route add -host 188.165.***.*** dev eth0
route add default gw 188.165.***.***
ip route add default dev eth0

But now I've to find what I did on the Host to route correctly everything

I found this post : How to bridge a range of public IPs to KVM virtual machines on Debian/Ubuntu

I've a bridge br0 and my guest's interface is vnet0 so I tried

ip addr add 10.0.45.100/32 dev br0

But that's route 10.0.45.100 to the host and not the guest (I tired dev vnet0 just in case) but it's not working either.

So at the moment, my host can't ping my guest, and my guest can't ping my host :/ if you have anyideas let me know :)

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

I just had to add this route :

ip route add to 10.0.45.100/32 dev br0

And now everything is working just fine.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.