Results 1 to 2 of 2

Thread: how to configure bridged/virtual/internal networking?

  1. #1

    Default how to configure bridged/virtual/internal networking?

    Hi.

    I'm wondering if and how it is possible to configure networking, like drawn on this picture:
    https://docs.google.com/presentation...yh41VJRtQ/edit

    That is:
    internal network is connected to all VMs/CTs but has no physical interfaces.
    LAN network is connected to some some VMs/CTs, and to physical interface.
    WAN network is connected to some VMs/CTs, and to physical interface - but physical interface is not configured on physical server (has nor IP and routing).



  2. #2
    Parallels Team MakcyD's Avatar
    Join Date
    Nov 2008
    Location
    NSK
    Posts
    124

    Default

    Hi, it is pretty easy.

    All you need to do is to create two bridged networks and one host-only network:
    1. Create host-only network:
    Code:
     ~# prlsrvctl net add Internal -t host-only -d "Internal network" --dhcp-ip "172.16.0.1" --ip-scope-start "172.16.0.1" --ip-scope-end "172.16.0.254"
    2. Create LAN bridged network:
    Code:
     ~# prlsrvctl net add LAN -i eth0 -t bridged -d "LAN Bridged Network"
    3. Create WAN bridged network:
    Code:
     ~# prlsrvctl net add WAN -i eth1 -t bridged -d "WAN Bridged Network"

    Whenever you create a new VM\container just join it to corresponding network:
    Code:
     ~# vzctl set 1234 --save --netif_add eth0
     ~# vzctl set 1234 -save --ifname eth0 --dhcp yes --gw 172.16.0.1 --network Internal
    Code:
     ~# prlctl set my_vm --device-add net --network LAN --ipadd 10.0.0.3/24 --gw 10.0.0.1 --adapter-type e1000
    Code:
     ~# prlctl set my_vm --device-add net --network WAN --ipadd 1.1.1.10/24 --gw 1.1.1.1 --adapter-type e1000
    etc.

    You may change existing adapter setting similarly, for more info refer to man pages of prlsrvctl, prlctl and vzctl.
    Max Sudyin
    Corporate Trainer
    || Parallels

    Knowledge Base: http://kb.parallels.com



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •