A10负载均衡SLB测试配置 v1.0 联系客服

发布时间 : 星期五 文章A10负载均衡SLB测试配置 v1.0更新完毕开始阅读360bbf82ba0d4a7303763a5f

A10网络负载均衡测试方案

Router Interface: ve 4

GUI:

进入配置模式—网络—VLAN中, 添加新的VLAN,设置VLAN ID,

添加接口,未标记的表示此端口允许通过本VLAN中untag的帧,标记的代表此端口允许通过本VLAN中tagged的帧;

填写虚拟接口,此处虚拟接口与VLAN ID相同,如果不相同则无法创建。

注意:

同一个端口下只允许通过一个untag的VLAN,相当于Cisco的Access口; 同一个端口下可以通过多个tagged的VLAN,相当于Cisco中的Trunk口。

3. IP地址的配置及测试

配置ip地址,VLAN3配置地址为10.0.1.11,VLAN4配置为10.0.2.11

interface ve 3

ip address 10.0.1.11 255.255.255.0 !

interface ve 4

ip address 10.0.2.11 255.255.255.0

GUI:

进入配置模式—网络—接口—虚拟, 则可以看到创建好的虚拟接口,ve3和ve4;

A10网络负载均衡测试方案

点击VE3和VE4,进入虚拟接口配置模式,添加ip地址

4. 默认路由的配置

配置默认网关为10.0.1.1,使用命令

!

ip route 0.0.0.0 /0 10.0.1.1 !

GUI:

进入配置模式—网络—路由,选择IPV4静态路由,添加默认路由0.0.0.0,子网掩码0.0.0.0,网关为10.0.1.1。

A10网络负载均衡测试方案

5. 动态路由的配置

AX支持多种动态路由协议,包括BGP, OSPF, RIP, ISIS等等,均可从命令行方式进行配置,动态路由暂时不支持使用web方式配置。

AX(config)#router ?

bgp Border Gateway Protocol (BGP) Router

device-context The target device the following router commands to configure for ipv6 IPv6 Routing Configuration Commands

isis Intermediate System - Intermediate System (IS-IS) log Router log options

ospf Open Shortest Path First (OSPF) rip Routing Information Protocol (RIP)

6. 端口捆绑的配置及测试

AX支持静态端口捆绑和动态LACP端口捆绑的方式,推荐使用静态端口捆绑,即Trunk方式,Cisco对应的方式为Port-Channel。

使用命令行将端口ethernet 1 至4进行链路捆绑,采用静态绑定,绑定端口为trunk 1。

AX(config)# trunk 1

AX(config-trunk:1)# ethernet 1 to 4

;将以太口1~4做端口捆绑

在后续的使用中,可以在vlan中直接调用trunk 1端口

注意: 端口配置成trunk模式后,加入vlan的时候,仅需要加入第一个端口即可,本例中,untagged ethe 3时候,ethernet 3和ethernet 4均在此vlan下。

AX(config)#vlan 10

A10网络负载均衡测试方案

AX(config-vlan:10)#untagged trunk 1 AX(config-vlan:10)#show vlan VLAN 10, Name [None]: Untagged Ports: 1

Tagged Ports: None

在trunk端口中可配置ipv4或ipv6地址。例如:

trunk 1

ethernet 1 to 4 interface trunk 1

ip address 10.0.0.1 255.255.255.0

使用命令”show interfaces”可查看当前的ip地址

AX(config-if:trunk1)#show ip interfaces

Port IP Netmask PrimaryIP Name

---------------------------------------------------------------------- trunk1 10.0.0.1 255.255.255.0 Yes

注意: 如果不能配置ip地址,则需要查看此trunk是否配置到端口中,使用命令”show trunk”查看

AX(config)#show trunk

Trunk ID : 1 Member Count: 4 Trunk Name : None Trunk Status : Up

Trunk Type : Static

Members : 1 2 3 4 Cfg Status : Enb Enb Enb Enb Oper Status : Up Up Up Up Ports-Threshold : None Working Lead : 3

使用命令行将端口ethernet 1 至 4 进行链路捆绑,采用LACP协议进行动态捆绑

interface ethernet 1

lacp trunk 1 mode active !

interface ethernet 2

lacp trunk 1 mode active !

interface ethernet 3

lacp trunk 1 mode active !

interface ethernet 4

lacp trunk 1 mode active

使用命令“show lacp trunk 1”来查看LACP TRUNK的状态

AX#show lacp trunk 1

Aggregator po1 1000001 Admin Key: 0001 - Oper Key 0001 Partner LAG: 0x8000,00-00-00-00-00-00 Partner Oper Key 0000 Link: ethernet 1 (3) sync: 0 Link: ethernet 2 (4) sync: 0