Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

SmartCloud tip: Span virtual local area networks

Provision and configure an instance that spans a public and private VLAN

Dominique Vernier, IT Architect, IBM
Dominique Vernier photo
In recent years, Dominique Vernier focused on Java technologies and cloud architecture. He also has been working in information technology for quite a while where he earned a broad knowledge in such technologies and products as messaging, database, SOA, EAI, client/server, C/C++, and existing frameworks. Dominique also has extensive knowledge in industry areas such as telecom, CRM, logistics, and insurance. He is the author/co-author of four patents having to do with state engines and resource management. At present, Dominique is in charge of the IBM SmartCloud Enterprise solutions on the IBM GTS Global Team.
(An IBM developerWorks Contributing Author)
Andrew Jones, Senior Solution Architect, IBM
Andrew R. Jones photo
Andrew R. Jones is a Senior Solution Architect with over 22 years of experience at IBM. For the past 16 years, he has focused on customer and business partner enablement of IBM middleware solutions in cloud computing, telecommunications, wireless technologies, and network computers. Andrew is an IBM Master Inventor and Certified IT Architect.

Summary:  Release 1.4 of IBM SmartCloud Enterprise offers several new features; one of these is the ability for an instance to have primary and secondary TCP/IP addresses on different virtual local area networks (VLANs). This feature enables the ability to provision and configure an instance that spans the public, Internet-facing VLAN and an enterprise account's private VLAN established by an optional virtual private network (VPN). This article describes those features.

View more SmartCloud Enterprise tips

Date:  16 Sep 2011
Level:  Introductory PDF:  A4 and Letter (295 KB | 9 pages)Get Adobe® Reader®
Also available in:   Korean  Japanese  Portuguese  Spanish

Activity:  10082 views
Comments:  

This article describes how an instance on IBM SmartCloud Enterprise can be provisioned to span or bridge the Internet-facing virtual local area network and the private, virtual local area network in the cloud environment. It examines a typical use case that can leverage this new capability to provide additional network level isolation and security for deployments in a public cloud environment.

It is important to understand that this feature of the IBM Cloud environment has security implications that need to be fully understood by the user. The goal of this article is to describe the spanning features and its capabilities. It is your responsibility to fully understand the architecture being deployed in the cloud and all security requirements of that deployment. Be sure you do not expose data that needs to be protected (such as confidential corporate information, customer information, credit card numbers, addresses, etc.).

Background concepts

IBM SmartCloud Enterprise is an Infrastructure as a Service (IaaS) offering that provides an enterprise-class virtual server cloud environment. By default, virtual machine instances are provisioned with TCP/IP network addresses that are accessible via the Internet.

Optionally, enterprises can sign up for a virtual private network (VPN). The optional VPN provides an Internet Protocol Security (IPSec-based), point-to-point communication channel between the enterprise's network and one of the IBM Cloud data centers. Network communication over the VPN still travels over the public Internet, but is encrypted prior to leaving either the enterprise network or the IBM Cloud network and decrypted upon receipt at either end, thus allowing for secure communication of data.

Secondary IP addresses

All secondary IP addresses on a newly provisioned instance are disabled by default. Instance owners must enable all secondary IP addresses through the networking tools of the instance's operating system. For more information on enabling secondary IP addresses on Linux instances, refer to the "Activating Secondary IPs" topic of the "Working with your Linux instances" section of IBM SmartCloud Enterprise User's Guide. For more information on enabling secondary IP address on Windows instances, refer to the "Managing network adapter settings" topic of the "Working with your Windows instances" section of IBM SmartCloud Enterprise User's Guide.

When the VPN is established in the IBM Cloud environment for the enterprise account, a private virtual local area network (VLAN) is also provisioned for the account. This VLAN provides an additional layer of network isolation for instances that are provisioned on it. Users in the enterprise account that have the VPN option are able to provision new instances either on the public Internet-facing VLAN or the private, VPN facing VLAN.

Instances in the IBM Cloud environment have long been able to be provisioned with both a primary and up to two secondary IP addresses; however, both the primary and secondary IP addresses had to both be on the same VLAN (either all on the public VLAN or all on the private VLAN). With Release 1.4, not only has the limit of two secondary IP addresses been removed, so has the limitation of all addresses being required to be on the same VLAN.

Now, when provisioning a new instance, users can select a primary IP address from either the public VLAN or the private VLAN address pools, both reserved and unreserved, and one or more secondary IP addresses that are reserved IP addresses on either the public VLAN or the private VLAN.


Spanning the VLANs

To create an instance that spans or bridges the public and private VLANs, first decide if the primary IP address for the instance will reside on the public or the private VLAN. As seen in Figure 1, this is done by selecting the appropriate VLAN (such as the public VLAN) from the VLAN pull-down menu from Step 2 of the Add instance process.


Figure 1. Configuring the primary IP address
Configuring the primary IP address

Choosing in which VLAN the primary IP address resides is important since that will be the only available network interface for the instance when the instance is initially provisioned. Once the VLAN has been chosen, the primary IP address pull-down will be populated from the correct pool of either system generated or reserved IP addresses for the selected VLAN.

After the primary IP address is selected, select the Add IP link on the Virtual IP entry field. As seen in Figure 2, when assigning the virtual (or secondary) IP address(es), first select the VLAN (such as Private VLAN Ehningen) other than the one selected in the previous step and then select the appropriate reserved IP address.


Figure 2. Configuring the secondary IP address
Configuring the secondary IP address

Note, only reserved IP addresses can be assigned as secondary IP addresses.

Once the provisioning process is complete for this instance, the instance is accessible via the primary IP address only.

Using the appropriate access method to the instance (such as ssh for Linux® or RDP for Microsoft® Windows®), the next step is to enable the secondary IP interfaces. The process for doing this depends on the instance's operating system (ifup for Linux or Control Panel for Microsoft Windows).

Now that both network interfaces are enabled, the instance can communicate (send and receive) on both the private VLAN and the public VLAN.


Connectivity to instances

The ability to have an instance with IP addresses on both the public and private VLANs can open up the capabilities of cloud computing. In Figure 3, four instances have been configured in an account that has the optional VPN in IBM SmartCloud Enterprise.


Figure 3. Networking options in IBM SmartCloud Enterprise
Networking options in IBM SmartCloud Enterprise

The instance named PrivateOnly is configured with only a primary IP address which is assigned to the private VLAN associated with the VPN option. This instance is only accessible to other instances on the private VLAN or from the enterprise network via the established VPN. All network traffic from this instance, if not locally routable on the private VLAN, is sent over the VPN to the enterprise-side VPN gateway for further routing.

The instance named PrivateSpanToPublic is configured with a primary IP address on the private VLAN and a secondary IP address on the public VLAN. Once the secondary IP address is enabled, the instance is able to communicate on both the private VLAN and the Internet-facing public VLAN. All network traffic from this instance, if not locally routable on the private VLAN or public VLAN, is sent over the VPN to the enterprise-side VPN gateway for further routing.

The instance named PublicOnly is configured with only a primary IP address which is assigned to the Internet-facing public VLAN. This instance is accessible over the Internet and to all instances on the public VLAN.

The instance named PublicSpanToPrivate is configured with a primary IP address on the Internet-facing public VLAN and a secondary IP address on the private VLAN. Once the secondary IP address is enabled, the instance is able to communicate on both the Internet-facing public VLAN and the private VLAN. All network traffic from this instance, if not locally routable on the private VLAN or public VLAN, is sent over the VPN to the enterprise-side VPN gateway for further routing.

In Table 1, the network connectivity of these instances is described in more detail.


Table 1. Network connectivity between instances
PrivateOnly
Primary: Private 10.128.0.8
PublicOnly
Primary: Public 129.35.213.128
PrivateSpanToPublic
Primary: Private 10.128.0.2
PrivateSpanToPublic
Secondary: Public 129.35.209.254
PublicSpanToPrivate
Primary: Public 129.35.213.127
PublicSpanToPrivate
Secondary: Private 10.128.0.6
PrivateOnly
Primary: Private 10.128.0.8
ReachableUnreachableReachableUnreachableUnreachableReachable
PublicOnly
Primary: Public 129.35.213.128
UnreachableReachableUnreachableReachableReachableUnreachable
PrivateSpanToPublic
Primary: Private 10.128.0.2
ReachableReachableReachableReachableReachableReachable
PrivateSpanToPublic
Secondary: Public 129.35.209.254
ReachableReachableReachableReachableReachableReachable
PublicSpanToPrivate
Primary: Public 129.35.213.127
ReachableReachableReachableReachableReachableReachable
PublicSpanToPrivate
Secondary: Private 10.128.0.6
ReachableReachableReachableReachableReachableReachable

If an instance of the first column has a network interface that is able to ping a particular network address of another instance of the first row, that path is marked as Reachable. If the address is not routable, the path is marked as Unreachable.

Real world use case

With this new capability of creating multi-homed instances that span both the public and private VLANs, it is now possible to create n-tier deployments. Let's take a basic 3-tier deployment of a HTTP server, application server, and database server.

In a traditional deployment, each of these servers may be logically isolated from each other by routers and firewalls that limit the network connectivity and access to the servers. By isolating the access to these servers, a higher degree of security can be imposed on the infrastructure to prevent network-based intrusion and denial of service attacks.

By combining the VLAN spanning capabilities of IBM SmartCloud Enterprise and through the use of a firewall (those provided by the virtual instance's operating system or a third-party solution), a similar deployment can be created in the cloud.

One option for building this 3-tier deployment in the IBM Cloud environment is illustrated in Figure 4.


Figure 4. A 3-tier deployment in the cloud
A 3-tier deployment in the cloud

In this deployment, the HTTP server is deployed on an instance that only has a public VLAN primary IP address. The HTTP server instance's firewall be configured to accept HTTP traffic (such as port 80). Requests for URLs that map to a path that needs to be serviced by the application server are forwarded to the secondary IP address of the application server on the public VLAN. The application server's firewall must be configured to only accept network traffic over the public VLAN from the specific IP address of the HTTP server. All other network traffic on the secondary IP address should be blocked (such as port 22 for ssh access).

There are several alternatives to the this type of deployment in the cloud: For example, the HTTP server could be the spanning instance between the public and private VLANs. The drawback to this implementation is that the advertised IP address of the HTTP would be on an instance that directly spans the public and private VLANs. If compromised, no additional barriers would exist between that instance and other instances on the private VLAN.

In another implementation, the database server could reside within the enterprise network. In this case, the enterprise VPN gateway and/or firewalls would need to be configured to allow the database network traffic to flow over the VPN tunnel to and from the application server in the cloud (for instance, JDBC traffic over port 50000).

Firewall rules

It is critical that firewalls are utilized in a deployment where instances are used to span the public and private VLANs. Proper configuration of the firewalls is essential for securing an n-tier deployment in the cloud. For more information about configuring firewalls in the IBM SmartCloud Enterprise environment refer to the User's Guide and firewall documentation for the operating systems you are using.


Resources

Learn

Get products and technologies

Discuss

About the authors

Dominique Vernier photo developerWorks Contributing author level

In recent years, Dominique Vernier focused on Java technologies and cloud architecture. He also has been working in information technology for quite a while where he earned a broad knowledge in such technologies and products as messaging, database, SOA, EAI, client/server, C/C++, and existing frameworks. Dominique also has extensive knowledge in industry areas such as telecom, CRM, logistics, and insurance. He is the author/co-author of four patents having to do with state engines and resource management. At present, Dominique is in charge of the IBM SmartCloud Enterprise solutions on the IBM GTS Global Team.

Andrew R. Jones photo

Andrew R. Jones is a Senior Solution Architect with over 22 years of experience at IBM. For the past 16 years, he has focused on customer and business partner enablement of IBM middleware solutions in cloud computing, telecommunications, wireless technologies, and network computers. Andrew is an IBM Master Inventor and Certified IT Architect.

Report abuse help

Report abuse

Thank you. This entry has been flagged for moderator attention.


Report abuse help

Report abuse

Report abuse submission failed. Please try again later.


developerWorks: Sign in


Need an IBM ID?
Forgot your IBM ID?


Forgot your password?
Change your password

By clicking Submit, you agree to the developerWorks terms of use.

 


The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

Choose your display name

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerWorks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

(Must be between 3 – 31 characters.)

By clicking Submit, you agree to the developerWorks terms of use.

 


Rate this article

Comments

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Cloud computing
ArticleID=757459
ArticleTitle=SmartCloud tip: Span virtual local area networks
publish-date=09162011