OpenVZ Forum


Home » Mailing lists » Users » Networking Question
Networking Question [message #1013] Wed, 25 January 2006 18:50 Go to next message
devnu11 is currently offline  devnu11
Messages: 64
Registered: September 2005
Location: USA
Member

I am having a problem with the networking on my Gentoo VPS. I figure I better
start at the beginning and make sure I have the OVZ host "hardware node" set
up the preferred way. I checked the user guide briefly last night and did not
find an answer to my question. If i have a server with 10 external IP's do
those 10 IP's have to be listed in
/etc/sysconfig/network-scripts/ifcfg-eth0-range0? Currently I DO NOT have the
IP's homed to the hardware node. I let "vzctl add 101 --ipaddr xxx.xxx.xxx.xxx
--save" add them for me to the guest. Just as an experiment I added a script
ifcfg-venet0-range0 to add the IP's to the hardware node but the script was
rewritten on startup of the network so I guess that is not the answer. There
is no sense getting into the specifics of my issue with networking until I
confirm the correct way to set up the hardware note to begin with. So..

Do I need to home the external IP's in the hardware node under ifcfg-eth0 ??
Re: Networking Question [message #1014 is a reply to message #1013] Thu, 26 January 2006 09:26 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Hello Greg,

> I am having a problem with the networking on my Gentoo VPS. I figure I better
> start at the beginning and make sure I have the OVZ host "hardware node" set
> up the preferred way. I checked the user guide briefly last night and did not
> find an answer to my question. If i have a server with 10 external IP's do
> those 10 IP's have to be listed in
> /etc/sysconfig/network-scripts/ifcfg-eth0-range0? Currently I DO NOT have the
> IP's homed to the hardware node. I let "vzctl add 101 --ipaddr xxx.xxx.xxx.xxx
> --save" add them for me to the guest. Just as an experiment I added a script
> ifcfg-venet0-range0 to add the IP's to the hardware node but the script was
> rewritten on startup of the network so I guess that is not the answer. There
> is no sense getting into the specifics of my issue with networking until I
> confirm the correct way to set up the hardware note to begin with. So..
>
> Do I need to home the external IP's in the hardware node under ifcfg-eth0 ??
the IPs you intend to use for VPSs should not mentioned in ifcfg-eth0.
vzctl will setup appropriate routing rules in host system for these IPs
on VPS start.

can you give me the access to you node (in private email only)? this
could allow us much quicker to solve the problem.

Kirill
Re: Networking Question [message #1015 is a reply to message #1014] Thu, 26 January 2006 09:31 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Hello Greg,

We need output of commands 'ip a l', 'ip r l' both in problem VPS and
host system. We have some idea of what can be wrong.

Thanks,
Kirill

>> I am having a problem with the networking on my Gentoo VPS. I figure I
>> better
>> start at the beginning and make sure I have the OVZ host "hardware
>> node" set
>> up the preferred way. I checked the user guide briefly last night and
>> did not
>> find an answer to my question. If i have a server with 10 external
>> IP's do
>> those 10 IP's have to be listed in
>> /etc/sysconfig/network-scripts/ifcfg-eth0-range0? Currently I DO NOT
>> have the
>> IP's homed to the hardware node. I let "vzctl add 101 --ipaddr
>> xxx.xxx.xxx.xxx
>> --save" add them for me to the guest. Just as an experiment I added a
>> script
>> ifcfg-venet0-range0 to add the IP's to the hardware node but the
>> script was
>> rewritten on startup of the network so I guess that is not the answer.
>> There
>> is no sense getting into the specifics of my issue with networking
>> until I
>> confirm the correct way to set up the hardware note to begin with. So..
>>
>> Do I need to home the external IP's in the hardware node under
>> ifcfg-eth0 ??
>
> the IPs you intend to use for VPSs should not mentioned in ifcfg-eth0.
> vzctl will setup appropriate routing rules in host system for these IPs
> on VPS start.
>
> can you give me the access to you node (in private email only)? this
> could allow us much quicker to solve the problem.
Re: Networking Question [message #1016 is a reply to message #1015] Thu, 26 January 2006 09:56 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Hello Greg,

As Dmitry noted, you have not configured lo inside VPS.
ifconfig lo 127.0.0.1 netmask 255.0.0.0
helps.

Kirill
P.S. don't forget to change login creds.

> Hello Greg,
>
> We need output of commands 'ip a l', 'ip r l' both in problem VPS and
> host system. We have some idea of what can be wrong.
>
> Thanks,
> Kirill
>
>>> I am having a problem with the networking on my Gentoo VPS. I figure
>>> I better
>>> start at the beginning and make sure I have the OVZ host "hardware
>>> node" set
>>> up the preferred way. I checked the user guide briefly last night and
>>> did not
>>> find an answer to my question. If i have a server with 10 external
>>> IP's do
>>> those 10 IP's have to be listed in
>>> /etc/sysconfig/network-scripts/ifcfg-eth0-range0? Currently I DO NOT
>>> have the
>>> IP's homed to the hardware node. I let "vzctl add 101 --ipaddr
>>> xxx.xxx.xxx.xxx
>>> --save" add them for me to the guest. Just as an experiment I added a
>>> script
>>> ifcfg-venet0-range0 to add the IP's to the hardware node but the
>>> script was
>>> rewritten on startup of the network so I guess that is not the
>>> answer. There
>>> is no sense getting into the specifics of my issue with networking
>>> until I
>>> confirm the correct way to set up the hardware note to begin with. So..
>>>
>>> Do I need to home the external IP's in the hardware node under
>>> ifcfg-eth0 ??
>>
>>
>> the IPs you intend to use for VPSs should not mentioned in ifcfg-eth0.
>> vzctl will setup appropriate routing rules in host system for these
>> IPs on VPS start.
>>
>> can you give me the access to you node (in private email only)? this
>> could allow us much quicker to solve the problem.
>
>
Previous Topic: Anyone know if ReactOS will run over OpenVZ?
Next Topic: Re: OpenVZ and Gentoo (partly solved)
Goto Forum:
  


Current Time: Tue Oct 15 21:25:48 GMT 2024

Total time taken to generate the page: 0.04950 seconds