Advertisement
Guest User

My configuration

a guest
Jul 29th, 2014
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. cat ifcfg-bond0
  2. DEVICE=bond0
  3. ONBOOT=yes
  4.  
  5. --------------
  6. ifcfg-bond.204
  7. VLAN=yes
  8. VLAN_NAME_TYPE=VLAN_PLUS_VID_NO_PAD
  9. DEVICE=vlan204
  10. PHYSDEV=bond0
  11. BOOTPROTO=static
  12. ONBOOT=yes
  13. TYPE=Ethernet
  14.  
  15. --------------
  16. cat ifcfg-eth1
  17. # Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
  18. DEVICE=eth1
  19. TYPE=Ethernet
  20. USERCTL=no
  21. MASTER=bond0
  22. SLAVE=yes
  23. BOOTPROTO=none
  24. ONBOOT=yes
  25.  
  26. ------------
  27.  
  28. cat ifcfg-eth2
  29. # Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
  30. DEVICE=eth2
  31. TYPE=Ethernet
  32. USERCTL=no
  33. MASTER=bond0
  34. SLAVE=yes
  35. BOOTPROTO=none
  36. ONBOOT=yes
  37.  
  38. -------------
  39.  
  40. # RAM
  41. PHYSPAGES="0:524288"
  42.  
  43. # Swap
  44. SWAPPAGES="0:131072"
  45.  
  46. # Disk quota parameters (in form of softlimit:hardlimit)
  47. DISKSPACE="2306048:2306048"
  48. DISKINODES="131072:144179"
  49. QUOTATIME="0"
  50.  
  51. # CPU fair scheduler parameter
  52. CPUUNITS="1000"
  53.  
  54. NETFILTER="stateless"
  55. VE_ROOT="/vz/root/$VEID"
  56. VE_PRIVATE="/vz/private/$VEID"
  57. OSTEMPLATE="centos-6-x86_64"
  58. ORIGIN_SAMPLE="vswap-1g"
  59. HOSTNAME="test"
  60. ONBOOT="yes"
  61. NETIF="ifname=bond.204,mac=00:18:51:44:F6:8D,host_ifname=veth113.204,host_mac=00:18:51:6B:69:E2"
  62. NAMESERVER="10.200.a.b"
  63. IP_ADDRESS="10.200.e.f"
  64. PRIVVMPAGES="unlimited"
  65. CPUS="2"
  66. CPULIMIT="100"
  67.  
  68.  
  69. echo "1" /proc/sys/net/ipv4/conf/veth113.204/proxy_arp
  70. echo "1" > /proc/sys/net/ipv4/conf/veth113.204/proxy_arp
  71. echo "1" > /proc/sys/net/ipv4/conf/veth113.204/forwarding
  72. echo "1" > /proc/sys/net/ipv4/conf/vlan204/forwarding
  73. echo "1" > /proc/sys/net/ipv4/conf/vlan204/proxy_arp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement