Editing
VPS Management
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Adding a veth device to a VE == Not totally sure what this is, but a customer asked for it and here's what we did (as instructed by vz support): <pre>v set 99 --netif_add eth99 --save ipdel 99 69.55.230.58 v set 99 --ifname eth99 --ipadd 69.55.230.58 --save v set 99 --ifname eth99 --gateway 69.55.230.1 --save vznetcfg net new veth_net # vznetcfg net list Network ID Status Master Interface Slave Interfaces net99 active eth0 veth77.77,veth99.99 veth_net active # vznetcfg if list Name Type Network ID Addresses br0 bridge veth_net br99 bridge net99 veth99.99 veth net99 eth1 nic 10.1.4.62/24 eth0 nic net99 69.55.227.70/24 vznetcfg br attach br0 eth0 (will remove 99 from orig net and move to veth_net) vznetcfg net addif veth_net veth99.99 # vznetcfg net list Network ID Status Master Interface Slave Interfaces net99 active veth_net active eth0 veth77.77,veth99.99 (delete the old crap) vznetcfg net del net99 Then, to add another device in v set 77 --netif_add eth77 --save ipdel 77 69.55.230.78 v set 77 --ifname eth77 --ipadd 69.55.230.78 --save v set 77 --ifname eth77 --gateway 69.55.230.1 --save v set 77 --save --ifname eth77 --network veth_net # vznetcfg if list Name Type Network ID Addresses veth77.77 veth br0 bridge veth_net veth99.99 veth veth_net eth1 nic 10.1.4.62/24 eth0 nic veth_net 69.55.227.70/24 vznetcfg net addif veth_net veth77.77 # vznetcfg if list Name Type Network ID Addresses veth77.77 veth veth_net br0 bridge veth_net veth99.99 veth veth_net eth1 nic 10.1.4.62/24 eth0 nic veth_net 69.55.227.70/24 # vznetcfg net list Network ID Status Master Interface Slave Interfaces veth_net active eth0 veth77.77,veth99.99 another example v set 1182 --netif_add eth1182 --save ipdel 1182 69.55.236.217 v set 1182 --ifname eth1182 --ipadd 69.55.236.217 --save v set 1182 --ifname eth1182 --gateway 69.55.236.1 --save vznetcfg net addif veth_net veth1182.1182 v set 1182 --save --ifname eth1182 --network veth_net unused/not working commands: ifconfig veth99.0 0 vznetcfg net list vznetcfg br new br99 net99 vznetcfg br attach br99 eth0 vznetcfg br show vznetcfg if list vznetcfg net addif net99 veth99.99 vznetcfg net addif eth0 net99 --------- vznetcfg br new br1182 net1182 vznetcfg br attach br99 eth0 vznetcfg if list vznetcfg net addif net99 veth99.99 vznetcfg net addif eth0 net99 vznetcfg net addif eth0 net1182 # vznetcfg net addif veth99.0 net99 --- 8< --- vznetcfg net new net # vznetcfg net addif eth0 net99 # vzctl set 99 --save --netif_add eth0 (at this stage veth99.0 interface have to appear on node) # vzctl set 99 --save --ifname eth0 --ipadd 69.55.230.58 (and probably few more arguments here - see 'man vzctl') # vznetcfg net addif veth99.0 net99</pre>
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information