Virtual MAC Based Traffic Domains
Before you Begin
-
Virtual MAC based traffic domains are the easiest way to achieve network traffic segregation.
-
Because virtual MAC-based traffic domains segregate network traffic based on virtual MAC addresses and not VLANS, you cannot create duplicate IP addresses on different virtual MAC based traffic domains on a NetScaler.
-
Virtual MAC based traffic domains do not work when the NetScaler is deployed only in L2 Mode.
-
Both VLAN and virtual MAC based traffic domains can coexist on a NetScaler. virtual MAC based traffic domains actually run on all VLANs that are not bound to any VLAN-based traffic domain.
Configuration Steps
-
Create a traffic domain entity and enable the virtual MAC option. Create a traffic domain entity uniquely identified by an ID, which is an integer value, and then enable the virtual MAC option. After creating the traffic domain entity, the NetScaler creates a virtual MAC address and then associates it to the traffic domain entity.
-
Create feature entities on the traffic domain. Create the required feature entities in the traffic domain by specifying the traffic domain identifier (td) when configuring these feature entities. NetScaler owned network entities created in a virtual MAC based traffic domain are associated with the virtual MAC address, which is associated with the traffic domain. The NetScaler then sends the traffic domain’s virtual MAC address in ARP announcements and ARP responses for these network entities.
CLI procedures
add ns trafficDomain \<td> [-vmac ( ENABLED | DISABLED )]
show ns trafficdomain \<td>
add ns ip \<IPAddress> \<netmask> -type SNIP -td \<id>
show ns ip \<IPAddress> -td \<id>
add service \<name> \<IP> \<serviceType> \<port> -td \<id>
show service \<name> -td \<id>
add lb vserver \<name> \<serviceType> \<IPAddress> \<port> -td \<id>
bind lb vserver \<name> \<serviceName>
show lb vserver \<name> -td \<id>
> add ns trafficDomain 1 -vmac ENABLED
Done
> add ns trafficDomain 2 -vmac ENABLED
Done
> add ns ip 192.0.2.5 255.255.255.0 -type SNIP -td 1
Done
> add service SVC-S1-TD1 192.0.2.10 HTTP 80 -td 1
Done
> add service SVC-S2-TD1 192.0.2.20 HTTP 80 -td 1
Done
> add lb vserver LBVS-TD1 HTTP 203.0.113.15 80 -td 1
Done
> bind lb vserver LBVS-TD1 SVC-S1-TD1
Done
> bind lb vserver LBVS-TD1 SVC-S2-TD1
Done
> add ns ip 192.0.2.6 255.255.255.0 -type SNIP -td 2
Done
> add service SVC-S3-TD2 192.0.2.30 HTTP 80 -td 2
Done
> add service SVC-S4-TD2 192.0.2.40 HTTP 80 -td 2
Done
> add lb vserver LBVS-TD2 HTTP 203.0.113.16 80 -td 2
Done
> bind lb vserver LBVS-TD2 SVC-S3-TD2
Done
> bind lb vserver LBVS-TD2 SVC-S4-TD2
Done
GUI procedures
-
Navigate to System > Network > Interfaces.
-
In the details pane, click Add.
-
On the Create Traffic Domain page, set the following parameters:
-
Traffic Domain ID*
-
Enable Mac
-
-
Click Create.
-
Navigate to System > Network > IPs > IPv4.
-
Navigate to Network > IPs > IPv4.
-
In the details pane, click Add.
-
In the Create IP page, set the following parameters. For a description of a parameter, hover the mouse cursor over the corresponding field.
-
IP Address
-
Netmask
-
IP Type
-
Traffic Domain ID
-
-
Click Create.
-
Navigate to Traffic Management > Load Balancing > Services.
-
In the details pane, click Add.
-
In the Basic Settings Page, set the following parameters. For a description of a parameter, hover the mouse cursor over the corresponding field.
-
Service Name
-
Server
-
Protocol
-
Port
-
Traffic Domain ID
-
-
Click Continue, and click Done.
-
Repeat step 2 through step 4 to create another service.
-
Click Close.
-
Navigate to Traffic Management > Load Balancing > Virtual Servers.
-
In the Load Balancing Virtual Servers pane, click Add.
-
In the Create Virtual Servers (Load Balancing) dialog box, set the following parameters. For a description of a parameter, hover the mouse cursor over the corresponding field.
-
Name
-
IP Address
-
Protocol
-
Port
-
Traffic Domain ID
-
-
Click Continue, on the Service Pane, click >.
-
On the Service page, click Insert, and then select the checkbox for the services that you want to bind to the virtual server.
-
Click Continue, and click Done.
-
Repeat step 2 through step 5 to create another virtual server.