系统对接服务器,配置堆叠系统对接NLB服务器群集示例(通过物理链路环回方法)...

组网需求

如图2-21所示,交换机Switch_1与Switch_2组成堆叠系统Stack,通过接口GE0/0/1和GE1/0/1分别与两台NLB服务器直连。NLB服务器群集工作在组播模式下,群集IP地址为10.128.246.252/24,对应的群集MAC地址为03bf-0a80-f6fc。Switch与客户端Client之间路由可达。

用户希望网络中客户端Client访问NLB服务器群集时,堆叠系统能够将发往群集IP地址的报文发送给群集中的所有NLB服务器。

图2-21  堆叠系统对接组播模式的NLB服务器群集

abce6d15

配置思路

通过物理链路环回方法实现对接的配置思路如下:

配置与NLB服务器直连的接口GE0/0/1和GE1/0/1加入VLAN100。

配置接口GE0/0/4和GE1/0/4加入Eth-Trunk4、接口GE0/0/5和GE1/0/5加入Eth-Trunk5。

去使能自环接口Eth-Trunk4和Eth-Trunk5的STP/RSTP/VBST/MSTP功能,并以Access类型分别加入VLAN100和VLAN200。

配置三层接口VLANIF200的IP地址,VLANIF200作为NLB服务器群集的网关。

配置静态ARP表项。静态ARP表项的IP地址为群集IP地址,MAC地址为群集组播MAC,出接口为自环口上NLB服务器群集网关VLAN所在的接口。

连接接口GE0/0/4和GE0/0/5、GE1/0/4和GE1/0/5。

操作步骤

配置与NLB直连的接口加入VLAN100

# 配置接口GE0/0/1加入VLAN100。

system-view

[HUAWEI] sysname Stack

[Stack] vlan batch 100 200

[Stack] interface gigabitethernet 0/0/1

[Stack-GigabitEthernet0/0/1] port link-type access

[Stack-GigabitEthernet0/0/1] port default vlan 100

[Stack-GigabitEthernet0/0/1] quit

# 配置接口GE1/0/1加入VLAN100。

[Stack] interface gigabitethernet 1/0/1

[Stack-GigabitEthernet1/0/1] port link-type access

[Stack-GigabitEthernet1/0/1] port default vlan 100

[Stack-GigabitEthernet1/0/1] quit

配置接口加入Eth-Trunk

# 配置接口GE0/0/4和GE1/0/4加入Eth-Trunk4。

[Stack] interface eth-trunk 4

[Stack-Eth-Trunk4] quit

[Stack] interface gigabitethernet 0/0/4

[Stack-GigabitEthernet0/0/4] eth-trunk 4

[Stack-GigabitEthernet0/0/4] quit

[Stack] interface gigabitethernet 1/0/4

[Stack-GigabitEthernet1/0/4] eth-trunk 4

[Stack-GigabitEthernet1/0/4] quit

# 配置接口GE0/0/5和GE1/0/5加入Eth-Trunk5。

[Stack] interface eth-trunk 5

[Stack-Eth-Trunk5] quit

[Stack] interface gigabitethernet 0/0/5

[Stack-GigabitEthernet0/0/5] eth-trunk 5

[Stack-GigabitEthernet0/0/5] quit

[Stack] interface gigabitethernet 1/0/5

[Stack-GigabitEthernet1/0/5] eth-trunk 5

[Stack-GigabitEthernet1/0/5] quit

配置自环口Eth-Trunk4和Eth-Trunk5

# 去使能接口Eth-Trunk4和Eth-Trunk5的STP/RSTP/VBST/MSTP功能。

[Stack] interface eth-trunk 4

[Stack-Eth-Trunk4] undo stp enable

[Stack-Eth-Trunk4] quit

[Stack] interface eth-trunk 5

[Stack-Eth-Trunk5] undo stp enable

[Stack-Eth-Trunk5] quit

# 配置接口Eth-Trunk4和Eth-Trunk5以Access类型分别加入VLAN100和VLAN200。

[Stack] interface eth-trunk 4

[Stack-Eth-Trunk4] port link-type access

[Stack-Eth-Trunk4] port default vlan 100

[Stack-Eth-Trunk4] quit

[Stack] interface eth-trunk 5

[Stack-Eth-Trunk5] port link-type access

[Stack-Eth-Trunk5] port default vlan 200

[Stack-Eth-Trunk5] quit

配置NLB服务器群集网关的IP地址

[Stack] interface vlanif 200

[Stack-Vlanif200] ip address 10.128.246.250 24

[Stack-Vlanif200] quit

配置静态ARP表项,静态ARP表项的IP地址为群集IP地址10.128.246.252,MAC地址为群集组播MAC地址03bf-0a80-f6fc,出接口为VLAN200所在的接口Eth-Trunk5

[Stack] arp static 10.128.246.252 03bf-0a80-f6fc vid 200 interface eth-trunk 5

连接接口Switch_1上的GE0/0/4和GE0/0/5、Switch_2上的GE1/0/4和GE1/0/5

上述配置完成后,进行物理连线。

检查配置结果

上述配置完成后,发往NLB服务器群集IP地址的报文Server_1和Server_2都能收到。

配置文件

Stack的配置文件

#

sysname Stack

#

vlan batch 100 200

#

interface Vlanif200

ip address 10.128.246.250 255.255.255.0

#

interface Eth-Trunk4

port link-type access

port default vlan 100

stp disable

#

interface Eth-Trunk5

port link-type access

port default vlan 200

stp disable

#

interface GigabitEthernet0/0/1

port link-type access

port default vlan 100

#

interface GigabitEthernet0/0/4

eth-trunk 4

#

interface GigabitEthernet0/0/5

eth-trunk 5

#

interface GigabitEthernet1/0/1

port link-type access

port default vlan 100

#

interface GigabitEthernet1/0/4

eth-trunk 4

#

interface GigabitEthernet1/0/5

eth-trunk 5

#

arp static 10.128.246.252 03bf-0a80-f6fc vid 200 interface Eth-Trunk5

#

return

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值