Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

NLB Typical Configuration Example

Network Requirements

  • After configuring the reflection group, MAC multi-port, static ARP, the packet sent by PC will be sent to all NLB servers.

Network Topology

Networking of configuring NLB

Figure 2-1 Networking of configuring NLB

Configuration Steps

Step 1: On Device, configure VLAN and port link type and IP address.

#On Device, create VLAN2 and 3.

Device#configure terminal
Device(config)#vlan 2,3

#Configure the link type of port gigabitethernet0/2 to access, allow the services of VLAN2 to pass, enable interact VLAN2, and configure the IP address to 192.168.1.1/24.

Device(config)#interface gigabitethernet 0/2
Device(config-if-gigabitethernet0/2)#switchport mode access
Device(config-if-gigabitethernet0/2)#switchport access vlan 2
Device(config-if-gigabitethernet0/2)#exit
Device(config)#interface vlan 2
Device(config-if-vlan2)#ip address 192.168.1.1 255.255.255.0
Device(config-if-vlan2)#exit

#Configure the port link type on gigabitethernet 0/3–gigabitethernet 0/5 of Device to Access, allow the services of VLAN2 to pass, enable interface VLAN2, and configure the IP address to 192.168.1.1/24 (omitted).

Step 2: Configure the reflection group.

#Configure reflection group 1, and select any port of the device to add to the reflection group.

Device(config)#serviceloop-group 1
Device (config)# interface gigabitethernet 0/6
Device(config-if-gigabitethernet0/6)#serviceloop-group 1 active
Device(config-if-gigabitethernet0/6)#exit

Step 3: Configure MAC multi-port.

#On Device, configure MAC multi-port, and specify the egress port as gi0/3-gi0/5.

Device#configure terminal
Device(config)#mac-address multiport 02BF.1.1 vlan 3 interface gigabitethernet 0/3,0/4,0/5
Device(config)#exit

Step 4: Configure the static ARP.

#On Device, configure the static ARP, and bind the reflection group.

Device#configure terminal
Device(config)# arp 192.168.2.2 02bf.1.1 vlan 3 serviceloop-group 1
Device(config)#exit

Step 7: Check the result.

#View the reflection group.

Device# show serviceloop-group  
 serviceloop group 1 
  Description:  
  Number of ports in total: 1 
  serviceloop port: gigabitethernet0/6

#View the MAC multi-port.

Device# show mac-address multiport  
mac              vlan      interface
02BF.0001.0001   3         gi0/3-0/5

#View ARP.

Device# show arp  
Protocol   Address       Age (min) Hardware Addr    Type   Interface Switchport           
Internet   192.168.1.1	           0001.7a6a.011e   ARPA   vlan2               
---                  
Internet   192.168.2.1	           0001.7a6a.011e   ARPA   vlan3               
---                  
Internet   192.168.2.2   -         02bf.0001.0001   ARPA   vlan3     gigabitethernet0/3 
Internet   192.168.2.2   -         02bf.0001.0001   ARPA   vlan3     gigabitethernet0/4 
Internet   192.168.2.2	           02bf.0001.0001   ARPA   vlan3               
gigabitethernet0/5

#When accessing the cluster IP of NLB server from PC, each server can receive the packet.