OpenVZ Forum


Home » General » Support » Public IP Network config
Public IP Network config [message #44240] Sat, 26 November 2011 09:28 Go to next message
karloska is currently offline  karloska
Messages: 3
Registered: November 2011
Junior Member
Hi all, I have installed Proxmox on a VPS host with a public IP. I have then setup a container and given it a public ip and it is accessible online but SSH (at least) does not work and I gather this is because the connection should be bridged... But I cannot find the method of bridging that suits this environment.

the default etc/network/interfaces looks like this.
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
	address  115.61.21.5
	netmask  255.255.252.0
	gateway  115.61.21.254
	bridge_ports eth0
	bridge_stp off
	bridge_fd 0


But how should it look? The manual states this but it is just crashing the config:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address  115.61.21.5
        netmask  255.255.255.0
        gateway  115.61.21.55
        post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp


auto vmbr0
iface vmbr0 inet static
        address  115.61.21.6
        netmask  255.255.255.0
        bridge_ports none
        bridge_stp off
        bridge_fd 0


I have seen dozens of ways this is done but I'm stuck as to what is to be bridged and whether there's other files that need to be changed and where the containers point too. Help appreciated!

[Updated on: Sat, 26 November 2011 09:32]

Report message to a moderator

Re: Public IP Network config [message #44243 is a reply to message #44240] Sun, 27 November 2011 12:05 Go to previous messageGo to next message
molu is currently offline  molu
Messages: 1
Registered: November 2011
Location: delhi
Junior Member
thanks for the information.
Re: Public IP Network config [message #44279 is a reply to message #44240] Mon, 28 November 2011 21:39 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
This is really a question for the proxmox forum, but if this was a plain openvz server with default networking, than there is nothing more you need to do. No bridges needed. A public IP for the VPS should work and SSH shouldn't be limited in any way.
Re: Public IP Network config [message #44282 is a reply to message #44279] Tue, 29 November 2011 00:02 Go to previous message
karloska is currently offline  karloska
Messages: 3
Registered: November 2011
Junior Member
Thanks for that, yes I see that now, the OS template I was using is setup oddly and the password creator failed and I feared there was some sort of security issue at the host with how the container IP was behaving,

thanks
Previous Topic: openvz webpanel Fehler
Next Topic: openvz inside a Xen client
Goto Forum:
  


Current Time: Tue Aug 13 17:15:48 GMT 2024

Total time taken to generate the page: 0.02909 seconds