Networking Question

Teego

New Member
Nov 10, 2008
6
0
1
My proxmox server has an ip address (lets say 10.0.0.1) and I have an openvz conatiner and I would like it to have (192.168.1.1). In the web interface I do not see an option for setting the default gateway on a container, and I have not had any luck with the console.

Thanks

Mike
 
I need a default gw on the container that I want to have the 192.168.0.1 address on, or it will not be accessible from other subnets.

Mike
 
I need a default gw on the container that I want to have the 192.168.0.1 address on, or it will not be accessible from other subnets.

No. Instead you need to add the route on the host (not the container). All container traffic is routed to the host, and then uses the host routing table.
 
try to add secondary IP on Proxmox (I'm not sure if it's possible) 192.168.0.1 and reboot the server. After that test local a ping form container to proxmos VE and reverse...

If in your network configuration (on network gateway/roter/firewall) you don't specify what is the gateway for 192.168.0.0/24 you will not reach to destination...