OpenVZ Forum


Home » General » Support » Problems in cPanel (in vps) adding static ip´s
Problems in cPanel (in vps) adding static ip´s [message #33095] Mon, 22 September 2008 13:58 Go to next message
hostenlinea is currently offline  hostenlinea
Messages: 15
Registered: August 2008
Junior Member
Hi,
I have a dedicated server, fully virtualized with openvz (and hypervm for manage). In a vps i have cPanel.
When I atempt to add a new ip in WHM, appears in red.

When i make:

root@server [/etc]# service ipaliases restart
UnRouting 62.212.74.1xx SIOCDELRT: No such device
[FAILED]
Shutting down eth0:1 eth0:1: unknown interface: No such device
[FAILED]
Bringing up eth0:1 SIOCSIFADDR: No such device
eth0:1: unknown interface: No such device
SIOCSIFNETMASK: No such device
SIOCGIFADDR: No such device
SIOCSIFBROADCAST: No such device
SIOCSIFBRDADDR: No such device
eth0:1: unknown interface: No such device
[FAILED]
Routing 62.212.74.1xx SIOCADDRT: No such device
[FAILED]

-------------
And, if i put:

[root@localhost ~]# vzctl exec 110 /etc/init.d/network restart
Shutting down interface venet0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface venet0: SIOCADDRT: Network is unreachable
[ OK ]



What is happening? Is a vps networking problem?? (is working aparently good).

Thanks!

Regards,
Amil

[Updated on: Mon, 22 September 2008 14:08]

Report message to a moderator

Re: Problems in cPanel (in vps) adding static ip´s [message #33129 is a reply to message #33095] Wed, 24 September 2008 10:34 Go to previous messageGo to next message
hostenlinea is currently offline  hostenlinea
Messages: 15
Registered: August 2008
Junior Member
Hi,
The main problem was the "alternate ethernet device" (was no set to virtual interface) but still with problems....
Here explain..

In "Alternate Main Ethernet Device" i set it to: "venet0:0".

"Add new ip address" - i can add ip, and in "Show IP address usage" I can see IPs that i have addded in GREEN.

But.. for example I migrate a hosting to dedicated ip and recognizes IP fut ping timeout.. can´t stablish connection.
It seems could be any kind of network config...

Here, the interfaces and addresses assigned:

This is the main interface, working perfectly:

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:62.x.x.160 P-t-P:62.x.x.160 Bcast:62.x.x.160 Mask:255.255.255.255

And two IP i have added later in WHM but..doesnt ping:

venet0:0:1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:62.x.x.165 P-t-P:62.x.x.165 Bcast:62.x.x.191 Mask:255.255.255.192
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
-------------------
venet0:1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:62.x.x.167 P-t-P:62.x.x.167 Bcast:62.x.x.191 Mask:255.255.255.192
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1


IN MASTER:
The master server have this config (in eth0), this is the dedicated:

eth0 Link encap:Ethernet HWaddr 00:19:B9:F9:C6:65
inet addr:62.x.x.152 Bcast:62.212.74.191 Mask:255.255.255.192

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:17626388 errors:0 dropped:0 overruns:0 frame:0

(venet0 in master not show any ip).

Regards,
Amil
SOLVED!!! Re: Problems in cPanel (in vps) adding static ip´s [message #33185 is a reply to message #33095] Fri, 26 September 2008 21:02 Go to previous message
hostenlinea is currently offline  hostenlinea
Messages: 15
Registered: August 2008
Junior Member
Hi,
I solved this adding manually a secondary ip, with vzctl in master:

vzctl set {CTID} --ipadd {n.n.n.n} --save

Once made, in WHM, i recalculate ip-pool and I can now work with this ip fully, working 100%.

For any reason, if I add the ip with cPanel doesn´t assign correctly the ip (in network restart unmade network changes), maybe is a cPanel bug over OpenVZ. Or maybe a problem related to hypervm.

Hope this help, thanks.

Regards,
Amil

[Updated on: Sat, 27 September 2008 11:27]

Report message to a moderator

Previous Topic: Does a container,to wich I´ve providet a IP-Adress, a hostname, if I want to host vps´s in this co
Next Topic: Clusterized Web Server
Goto Forum:
  


Current Time: Sat Aug 17 01:28:48 GMT 2024

Total time taken to generate the page: 0.02900 seconds