Difference between revisions of "UEC: Manajemen Network"

From OnnoWiki
Jump to navigation Jump to search
(New page: Eucalyptus Networking System In System mode, CC generates and assigns a random MAC address to the VM instance while requesting NC to bring up the instance. NC attaches the VM instance’s...)
 
Line 1: Line 1:
 
Eucalyptus Networking
 
Eucalyptus Networking
System
+
 
 +
==System==
  
 
In System mode, CC generates and assigns a random MAC address to the VM instance while requesting NC to bring up the instance. NC attaches the VM instance’s virtual NIC to the physical NIC on the node through a bridge. This mode requires that the Nodes are connected to the enterprise network directly. Instances obtain an IP address using DHCP, just as physical machines on the network do.
 
In System mode, CC generates and assigns a random MAC address to the VM instance while requesting NC to bring up the instance. NC attaches the VM instance’s virtual NIC to the physical NIC on the node through a bridge. This mode requires that the Nodes are connected to the enterprise network directly. Instances obtain an IP address using DHCP, just as physical machines on the network do.
Line 7: Line 8:
  
 
This mode of networking is similar to “Bridged Networking” that hypervisors like VMware, VirtualBox etc. offer or like “tap” networking offered by KVM/Qemu.
 
This mode of networking is similar to “Bridged Networking” that hypervisors like VMware, VirtualBox etc. offer or like “tap” networking offered by KVM/Qemu.
Static
+
 
 +
==Static==
  
 
Static mode offers the Eucalyptus administrator more control over VM IP address assignment than System mode does. In this mode, the administrator configures Eucalyptus with a ‘map’ of MAC address/IP Address pairs on CC.
 
Static mode offers the Eucalyptus administrator more control over VM IP address assignment than System mode does. In this mode, the administrator configures Eucalyptus with a ‘map’ of MAC address/IP Address pairs on CC.
Line 24: Line 26:
 
     * Availability of the meta-data service (use of the http://169.254.169.254/ URL to obtain instance specific information)
 
     * Availability of the meta-data service (use of the http://169.254.169.254/ URL to obtain instance specific information)
  
Managed
+
==Managed==
  
 
Managed mode is the most feature rich mode offered by Eucalyptus. In this mode, the Eucalyptus administrator defines a large network (usually private and unroutable) from which VM instances will draw their IP addresses. As with Static mode, CC will maintain a DHCP server with static mappings for each instance that is raised and allocate the right IPs at the time of requesting an NC to raise the instance.
 
Managed mode is the most feature rich mode offered by Eucalyptus. In this mode, the Eucalyptus administrator defines a large network (usually private and unroutable) from which VM instances will draw their IP addresses. As with Static mode, CC will maintain a DHCP server with static mappings for each instance that is raised and allocate the right IPs at the time of requesting an NC to raise the instance.
Line 33: Line 35:
  
 
Eucalyptus administrators who need to implement require security groups, elastic IPs, and VM network isolation must use this mode.
 
Eucalyptus administrators who need to implement require security groups, elastic IPs, and VM network isolation must use this mode.
Managed NOVLAN
+
 
 +
==Managed NOVLAN==
  
 
This mode is identical to MANAGED mode in terms of features (dynamic IPs and security groups), but does not provide VM network isolation. Eucalyptus administrators who want dynamic assignable IPs and the security groups, but are not in a position to run on a network that allows VLAN tagged packets or those who do not have a need for VM network isolation can use this mode.
 
This mode is identical to MANAGED mode in terms of features (dynamic IPs and security groups), but does not provide VM network isolation. Eucalyptus administrators who want dynamic assignable IPs and the security groups, but are not in a position to run on a network that allows VLAN tagged packets or those who do not have a need for VM network isolation can use this mode.
Line 42: Line 45:
 
3. Managed No Yes Yes Yes Yes
 
3. Managed No Yes Yes Yes Yes
 
4. Managed-NOVLAN No Yes No Yes Yes
 
4. Managed-NOVLAN No Yes No Yes Yes
Configurations
+
 
 +
==Configurations==
  
 
For the sake of convenience, the following network setup is assumed.
 
For the sake of convenience, the following network setup is assumed.
Managed and Managed-NOVLAN
+
 
 +
===Managed and Managed-NOVLAN===
  
 
CC – two interfaces eth0 and eth1. eth1 is connected to internet and eth0 is connected to NC.
 
CC – two interfaces eth0 and eth1. eth1 is connected to internet and eth0 is connected to NC.
 
NC – one interface eth0, which is part of bridge br0 and this is connected to CC.
 
NC – one interface eth0, which is part of bridge br0 and this is connected to CC.
System and Static Mode
+
 
 +
===System and Static Mode===
  
 
CC – one interfaces eth0 connected to the enterprise network.
 
CC – one interfaces eth0 connected to the enterprise network.
Line 56: Line 62:
 
The following settings have to be made in /etc/eucalyptus/eucalyptus.conf file on CC and NC to configure the corresponding networking mode.
 
The following settings have to be made in /etc/eucalyptus/eucalyptus.conf file on CC and NC to configure the corresponding networking mode.
  
Eucalyptus Networking Configuration
+
[[Image:Eucanetworkingtable.png|center|200px|thumb|Eucalyptus Networking Configuration]]
Commands
+
 
 +
==Daftar Perintah==
 +
 
 +
Untuk melihat daftar dari [[IP address]] publik yang di alokasikan untuk instance menggunakan perintah berikut
 +
 
 +
uecadmin@client1:~$ euca-describe-addresses
 +
ADDRESS 192.168.10.200    nobody
 +
ADDRESS 192.168.10.201    nobody
 +
ADDRESS 192.168.10.202    nobody
 +
ADDRESS 192.168.10.203    nobody
 +
ADDRESS 192.168.10.204    nobody
 +
ADDRESS 192.168.10.205    nobody
 +
ADDRESS 192.168.10.206    nobody
 +
ADDRESS 192.168.10.207    nobody
 +
ADDRESS 192.168.10.208    nobody
 +
ADDRESS 192.168.10.209    nobody
 +
ADDRESS 192.168.10.210    nobody
 +
ADDRESS 192.168.10.211    nobody
 +
ADDRESS 192.168.10.212    nobody
 +
ADDRESS 192.168.10.213    nobody
 +
ADDRESS 192.168.10.214    nobody
 +
ADDRESS 192.168.10.215    nobody
 +
ADDRESS 192.168.10.216    nobody
 +
ADDRESS 192.168.10.217    nobody
 +
ADDRESS 192.168.10.218    nobody
 +
ADDRESS 192.168.10.219    nobody
 +
ADDRESS 192.168.10.220    nobody
 +
 
 +
Untuk mengalokasikan sebuah [[IP address]] publik untuk user tertentu:
 +
 
 +
uecadmin@client1:~$ euca-allocate-address
 +
ADDRESS 192.168.10.200
 +
 
 +
Untuk melepaskan [[IP address]] publik dari user tertentu:
  
To list the range of public ip addresses allocated for instances:
+
uecadmin@client1:~$ euca-release-address 192.168.10.200
view source
 
print?
 
01 uecadmin@client1:~$ euca-describe-addresses
 
02 ADDRESS 192.168.10.200   nobody
 
03 ADDRESS 192.168.10.201    nobody
 
04 ADDRESS 192.168.10.202    nobody
 
05 ADDRESS 192.168.10.203    nobody
 
06 ADDRESS 192.168.10.204    nobody
 
07 ADDRESS 192.168.10.205    nobody
 
08 ADDRESS 192.168.10.206    nobody
 
09 ADDRESS 192.168.10.207    nobody
 
10 ADDRESS 192.168.10.208    nobody
 
11 ADDRESS 192.168.10.209    nobody
 
12 ADDRESS 192.168.10.210    nobody
 
13 ADDRESS 192.168.10.211    nobody
 
14 ADDRESS 192.168.10.212    nobody
 
15 ADDRESS 192.168.10.213    nobody
 
16 ADDRESS 192.168.10.214    nobody
 
17 ADDRESS 192.168.10.215    nobody
 
18 ADDRESS 192.168.10.216    nobody
 
19 ADDRESS 192.168.10.217    nobody
 
20 ADDRESS 192.168.10.218    nobody
 
21 ADDRESS 192.168.10.219    nobody
 
22 ADDRESS 192.168.10.220    nobody
 
  
To allocate a public ip address for a specify user:
+
Untuk mengasosiasikan sebuah [[IP address]] publik ke instance yang sedang berjalan
view source
 
print?
 
1 uecadmin@client1:~$ euca-allocate-address
 
2 ADDRESS 192.168.10.200
 
  
To release a public ip address from a specify user:
+
uecadmin@client1:~$ euca-associate-address -i i-4799086D 192.168.10.200
view source
 
print?
 
1 uecadmin@client1:~$ euca-release-address 192.168.10.200
 
  
To associate a public ip address to a running instance
+
Untuk men-disasosiasi-kan sebuah [[IP address]] publik dari Instance yang sedang berjalan
view source
 
print?
 
1 uecadmin@client1:~$ euca-associate-address -i i-4799086D 192.168.10.200
 
  
To disassociate a public ip address from a running instance
+
uecadmin@client1:~$ euca-disassociate-address 192.168.10.200
view source
 
print?
 
1 uecadmin@client1:~$ euca-disassociate-address 192.168.10.200
 
  
  

Revision as of 08:00, 28 December 2010

Eucalyptus Networking

System

In System mode, CC generates and assigns a random MAC address to the VM instance while requesting NC to bring up the instance. NC attaches the VM instance’s virtual NIC to the physical NIC on the node through a bridge. This mode requires that the Nodes are connected to the enterprise network directly. Instances obtain an IP address using DHCP, just as physical machines on the network do.

This mode is very easy to setup as it does not have any additional prerequisites in terms of networking, except for a running DHCP server on enterprise network, and is a good way to get started with Eucalyptus, particularly if you want to set it up on your laptop/desktop to get a basic understanding.

This mode of networking is similar to “Bridged Networking” that hypervisors like VMware, VirtualBox etc. offer or like “tap” networking offered by KVM/Qemu.

Static

Static mode offers the Eucalyptus administrator more control over VM IP address assignment than System mode does. In this mode, the administrator configures Eucalyptus with a ‘map’ of MAC address/IP Address pairs on CC.

Before requesting NC to raise an instance, CC sets up a static entry within a Eucalyptus controlled DHCP server, takes the next free MAC/IP pair, and passes on to NC, which attaches the virtual NIC of the instance to the physical NIC of the Node through a bridge similar to how it is handled in ‘System’ mode.

This mode of networking is similar to “Bridged Networking” that hypervisors like VMware, VirtualBox etc. offer or like “tap” networking offered by KVM/Qemu.

This mode is useful for administrators who have a pool of MAC/IP addresses that they wish to always assign to their instances without relying on the DHCP server running in the enterprise network.

Note – Running Eucalyptus in System or Static mode disables some of the following key functionalities that would make an enterprise deployment more manageable:

   * Ingress filtering for the instances ( Security Groups )
   * User Controlled dynamic assignment of IPs to instances ( Elastic IPs )
   * Isolation of network traffic between instances VMs
   * Availability of the meta-data service (use of the http://169.254.169.254/ URL to obtain instance specific information)

Managed

Managed mode is the most feature rich mode offered by Eucalyptus. In this mode, the Eucalyptus administrator defines a large network (usually private and unroutable) from which VM instances will draw their IP addresses. As with Static mode, CC will maintain a DHCP server with static mappings for each instance that is raised and allocate the right IPs at the time of requesting an NC to raise the instance.

Managed mode implements ‘security groups’ for ingress filtering and isolation of instances. The user specifies a security group to which the new instance should be associated with, at the time of requesting a new instance. CC allocates a subset of the entire range of IPs to each security group in such a way that all the instances raised to be a part of the same security group use IPs from the same subset.

The user can define ingress filtering rules at the ‘security group’ level. More on this in the chapter on Security. In addition, the administrator can specify a pool of public IP addresses that users may allocate, either while raising the instances or later at run-time. This functionality is similar to ‘elastic IPs’ of AWS.

Eucalyptus administrators who need to implement require security groups, elastic IPs, and VM network isolation must use this mode.

Managed NOVLAN

This mode is identical to MANAGED mode in terms of features (dynamic IPs and security groups), but does not provide VM network isolation. Eucalyptus administrators who want dynamic assignable IPs and the security groups, but are not in a position to run on a network that allows VLAN tagged packets or those who do not have a need for VM network isolation can use this mode. Comparison of Eucalyptus Networking Modes Sl.No Networking Type DHCP Server running on the network CC runs its own DHCP server Instance Isolation Private IPs Ingress Filtering 1. System Required No No No No 2. Static No Yes No No No 3. Managed No Yes Yes Yes Yes 4. Managed-NOVLAN No Yes No Yes Yes

Configurations

For the sake of convenience, the following network setup is assumed.

Managed and Managed-NOVLAN

CC – two interfaces eth0 and eth1. eth1 is connected to internet and eth0 is connected to NC. NC – one interface eth0, which is part of bridge br0 and this is connected to CC.

System and Static Mode

CC – one interfaces eth0 connected to the enterprise network. NC – One interface eth0, which is part of bridge br0 connected to the enterprise network.

The following settings have to be made in /etc/eucalyptus/eucalyptus.conf file on CC and NC to configure the corresponding networking mode.

Eucalyptus Networking Configuration

Daftar Perintah

Untuk melihat daftar dari IP address publik yang di alokasikan untuk instance menggunakan perintah berikut

uecadmin@client1:~$ euca-describe-addresses
ADDRESS 192.168.10.200    nobody
ADDRESS 192.168.10.201    nobody
ADDRESS 192.168.10.202    nobody
ADDRESS 192.168.10.203    nobody
ADDRESS 192.168.10.204    nobody
ADDRESS 192.168.10.205    nobody
ADDRESS 192.168.10.206    nobody
ADDRESS 192.168.10.207    nobody
ADDRESS 192.168.10.208    nobody
ADDRESS 192.168.10.209    nobody
ADDRESS 192.168.10.210    nobody
ADDRESS 192.168.10.211    nobody
ADDRESS 192.168.10.212    nobody
ADDRESS 192.168.10.213    nobody
ADDRESS 192.168.10.214    nobody
ADDRESS 192.168.10.215    nobody
ADDRESS 192.168.10.216    nobody
ADDRESS 192.168.10.217    nobody
ADDRESS 192.168.10.218    nobody
ADDRESS 192.168.10.219    nobody
ADDRESS 192.168.10.220    nobody

Untuk mengalokasikan sebuah IP address publik untuk user tertentu:

uecadmin@client1:~$ euca-allocate-address
ADDRESS 192.168.10.200

Untuk melepaskan IP address publik dari user tertentu:

uecadmin@client1:~$ euca-release-address 192.168.10.200

Untuk mengasosiasikan sebuah IP address publik ke instance yang sedang berjalan

uecadmin@client1:~$ euca-associate-address -i i-4799086D 192.168.10.200

Untuk men-disasosiasi-kan sebuah IP address publik dari Instance yang sedang berjalan

uecadmin@client1:~$ euca-disassociate-address 192.168.10.200


Referensi

Pranala Menarik