OpenVZ Forum


Home » General » Support » eth1 on VPS
Re: eth1 on VPS [message #7563 is a reply to message #7556] Tue, 17 October 2006 14:08 Go to previous messageGo to previous message
John Kelly is currently offline  John Kelly
Messages: 97
Registered: May 2006
Location: Palmetto State
Member
ferp2 wrote on Tue, 17 October 2006 09:04

I only want to remove venet0 from VE 4 (now using the eth1 interface), but leave the venet0 interface functioning on VEs 1, 2 and 3.


You can make your own custom VE scripts.

In /etc/vz/conf, make a new [xxx].conf file, edit it, and set OSTEMPLATE=mydist, where [mydist] is some arbitrary name you like.

Then, in /etc/vz/dists, copy one of the .conf files (whichever one suits your needs) and call it mydist.conf. Edit it, and set ADD_IP=mydist-add_ip.sh and DEL_IP=mydist-del_ip.sh.

Then in etc/vz/dists/scripts, choose a set of -add_ip.sh and -del_ip.sh scripts, and copy them to mydist-add_ip.sh and mydist-del_ip.sh, respectively.

Then start hacking the new scripts. This may require more effort than you had in mind, but once you learn how the scripts work, you can do most anything you want.

I don't know an easier way, maybe someone else does.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* Memory usage patch
Next Topic: *SOLVED* always ipv6 ... :(
Goto Forum:
  


Current Time: Fri Aug 23 02:36:05 GMT 2024

Total time taken to generate the page: 0.04084 seconds