适用于:有多个以太WAN口的机型。

业务需求:

运营商1分配的接口IP为100.100.1.2,子网掩码为255.255.255.252,网关IP为100.100.1.1。

运营商2分配的接口IP为200.200.1.2,子网掩码为255.255.255.248,网关IP为200.200.1.1。

实现通过静态IP双上行接入Internet,链路1和链路2的出口路由采用等价默认路由进行负载分担。

拓扑简图:

组网规划:

GE1连接运营商1,GE0连接运营商2。

LAN口连接内网。

内网用户获取IP的方式:DHCP(动态获取IP)。

操作步骤:

一、WAN侧配置

1. 配置静态IP接口

<AR> system-view                                                                                      //先从用户视图切换到系统视图再进行配置
[AR] interface gigabitethernet 0/0/1 //对GE1口配置运营商1分配的IP和子网掩码
[AR-GigabitEthernet0/0/1] ip address 100.100.1.2 255.255.255.252
[AR-GigabitEthernet0/0/1] quit
[AR] interface gigabitethernet 0/0/0 //对GE0口配置运营商2分配的IP和子网掩码
[AR-GigabitEthernet0/0/0] ip address 200.200.1.2 255.255.255.248
[AR-GigabitEthernet0/0/0] quit

2. 配置等价默认路由(基于源IP地址进行负载分担)

[AR] ip route-static 0.0.0.0 0.0.0.0 100.100.1.1                                               //配置运营商1分配的网关IP
[AR] ip route-static 0.0.0.0 0.0.0.0 200.200.1.1 //配置运营商2分配的网关IP
[AR] ip load-balance hash src-ip

3. 配置NAT功能

[AR] acl number 3000
[AR-acl-adv-3000] rule permit ip
[AR-acl-adv-3000] quit
[AR] interface gigabitethernet 0/0/1
[AR-GigabitEthernet0/0/1] nat outbound 3000
[AR-GigabitEthernet0/0/1] quit
[AR] interface gigabitethernet 0/0/0
[AR-GigabitEthernet0/0/0] nat outbound 3000
[AR-GigabitEthernet0/0/0] quit

AR配置静态IP双链路上行备份示例

适用于:有多个以太WAN口的机型。

业务需求:

运营商1分配的接口IP为100.100.1.2,子网掩码为255.255.255.252,网关IP为100.100.1.1。

运营商2分配的接口IP为200.200.1.2,子网掩码为255.255.255.248,网关IP为200.200.1.1。

实现通过静态IP双上行接入Internet,链路1和链路2采用主备的形式,主备链路可以通过配置静态路由的优先级区分出来。

拓扑简图:

组网规划:

GE1连接运营商1做为主链路,GE0连接运营商2并做为备链路。

LAN口连接内网。

内网用户获取IP的方式:DHCP(动态获取IP)。

操作步骤:

一、WAN侧配置

1. 配置静态IP接口

<AR> system-view                                                                                      //先从用户视图切换到系统视图再进行配置
[AR] interface gigabitethernet 0/0/1 //对GE1口配置运营商1分配的IP和子网掩码
[AR-GigabitEthernet0/0/1] ip address 100.100.1.2 255.255.255.252
[AR-GigabitEthernet0/0/1] quit
[AR] interface gigabitethernet 0/0/0 //对GE0口配置运营商2分配的IP和子网掩码
[AR-GigabitEthernet0/0/0] ip address 200.200.1.2 255.255.255.248
[AR-GigabitEthernet0/0/0] quit

2. 配置默认路由(通过路由的优先级来指定链路2为备份链路)

说明:通过preference参数指定优先级。缺省值是60,数值越小,优先级越高。

[AR] ip route-static 0.0.0.0 0.0.0.0 100.100.1.1                                                //配置运营商1分配的网关IP
[AR] ip route-static 0.0.0.0 0.0.0.0 200.200.1.1 preference 100 //配置运营商2分配的网关IP,并比链路1的优先级数值大

3. 配置NAT功能

[AR] acl number 3000
[AR-acl-adv-3000] rule permit ip
[AR-acl-adv-3000] quit
[AR] interface gigabitethernet 0/0/1
[AR-GigabitEthernet0/0/1] nat outbound 3000
[AR-GigabitEthernet0/0/1] quit
[AR] interface gigabitethernet 0/0/0
[AR-GigabitEthernet0/0/0] nat outbound 3000
[AR-GigabitEthernet0/0/0] quit

配置NQA实例

配置ICMP测试示例

组网图形

ICMP测试组网图

组网需求

如图一所示,SwitchA作为NQA客户端,测试SwitchB是否可达。

配置思路

采用如下思路进行配置:

1.      使用NQA ICMP测试功能,测试报文在本端(SwitchA)和指定的目的端(SwitchB)之间是否可达。

2.      使用NQA ICMP测试功能,测试报文在本端(SwitchA)和指定的目的端(SwitchB)之间的往返时间。

操作步骤

1.      配置SwitchA的IP地址

<HUAWEI> system-view
[HUAWEI] sysname SwitchA
[SwitchA] vlan 100
[SwitchA-vlan100] quit
[SwitchA] interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] port link-type hybrid
[SwitchA-GigabitEthernet0/0/1] port hybrid pvid vlan 100
[SwitchA-GigabitEthernet0/0/1] port hybrid untagged vlan 100
[SwitchA-GigabitEthernet0/0/1] quit
[SwitchA] interface vlanif 100
[SwitchA-Vlanif100] ip address 10.1.1.1 24
[SwitchA-Vlanif100] quit

13.  配置SwitchB的IP地址

<HUAWEI> system-view
[HUAWEI] sysname SwitchB
[SwitchB] vlan 100
[SwitchB-vlan100] quit
[SwitchB] interface gigabitethernet 0/0/1
[SwitchB-GigabitEthernet0/0/1] port link-type hybrid
[SwitchB-GigabitEthernet0/0/1] port hybrid pvid vlan 100
[SwitchB-GigabitEthernet0/0/1] port hybrid untagged vlan 100
[SwitchB-GigabitEthernet0/0/1] quit
[SwitchB] interface vlanif 100
[SwitchB-Vlanif100] ip address 10.1.1.2 24
[SwitchB-Vlanif100] quit

25.  使能NQA客户端,配置ICMP类型的NQA测试例

[SwitchA] nqa test-instance admin icmp
[SwitchA-nqa-admin-icmp] test-type icmp
[SwitchA-nqa-admin-icmp] destination-address ipv4 10.1.1.2

28.  启动测试

[SwitchA-nqa-admin-icmp] start now

29.  验证测试结果

[SwitchA-nqa-admin-icmp] display nqa results test-instance admin icmp

NQA entry(admin, icmp) :testflag is inactive ,testtype is icmp

1 . Test 1 result   The test is finished

Send operation times: 3              Receive response times: 3

Completion:success                   RTD OverThresholds number: 0

Attempts number:1                    Drop operation number:0

Disconnect operation number:0        Operation timeout number:0

System busy operation number:0       Connection fail number:0

Operation sequence errors number:0   RTT Status errors number:0

Destination ip address:10.1.1.2

Min/Max/Average Completion Time: 3/125/44

Sum/Square-Sum  Completion Time: 132/15650

Last Good Probe Time: 2014-11-28 13:55:52.5

Lost packet ratio: 0 %

配置文件

  • SwitchA的配置文件

    • #
      sysname SwitchA
      #
      vlan batch 100
      #
      interface Vlanif100
      ip address 10.1.1.1 255.255.255.0
      #
      interface GigabitEthernet0/0/1
      port link-type hybrid
      port hybrid pvid vlan 100
      port hybrid untagged vlan 100
      #
      nqa test-instance admin icmp
      test-type icmp
      destination-address ipv4 10.1.1.2
      #
      return
  • SwitchB的配置文件

    • #
      sysname SwitchB
      #
      vlan batch 100
      #
      interface Vlanif100
      ip address 10.1.1.2 255.255.255.0
      #
      interface GigabitEthernet0/0/1
      port link-type hybrid
      port hybrid pvid vlan 100
      port hybrid untagged vlan 100
      #
      return

华为S5700系列交换机AR配置静态IP双链路负载分担的更多相关文章

  1. 华为S5700系列交换机配置通过流策略实现VLAN间三层隔离

    组网图形 图1 配置通过流策略实现VLAN间三层隔离组网图 组网需求 如图一所示,为了通信的安全性,某公司将访客.员工.服务器分别划分到VLAN10.VLAN20.VLAN30中.公司希望: 员工.服 ...

  2. 华为S5700系列交换机配置通过Telnet登录设备

    声明:不管什么服务,都需要交换机开启服务,创建对应权限的用户,在通道下允许协议通过,缺一不可,以telnet为例. 组网图形 图1 配置通过Telnet登录设备组网图 组网需求 如图一所示,PC与设备 ...

  3. 华为S5700系列交换机配置文件导出、导入

    一.导出 配置用户名密码,使能ftp ftp server enable aaa local-user putty password cipher putty123 local-user putty ...

  4. 华为S5700系列交换机使用高级ACL限制不同网段的用户互访

    组网图形 图1 使用高级ACL限制不同网段的用户互访示例 组网需求 如图一所示,某公司通过Switch实现各部门之间的互连.为方便管理网络,管理员为公司的研发部和市场部规划了两个网段的IP地址.同时为 ...

  5. 为 instance 配置静态 IP - 每天5分钟玩转 OpenStack(157)

    这是 OpenStack 实施经验分享系列的第 7 篇. 传统运维中为服务器配置静态 IP 是再常见不过的了.但在 OpenStack 环境下只能指定 network,IP 都是 Neutron 从 ...

  6. 华为QUIDWAY系列交换机的console重置

    作者:邓聪聪 华为QUIDWAY系列交换机的console重置 这里以华为QUIDWAY S3700密码清除为例: 各位看官请自行注意,这是两个不同版本设备的重置方法. 一:方法1 首先在电脑上新建一 ...

  7. VMware虚拟机中如何配置静态IP

    我们首先说一下VMware的几个虚拟设备 VMnet0:用于虚拟桥接网络下的虚拟交换机 VMnet1:用于虚拟Host-Only网络下的虚拟交换机 VMnet8:用于虚拟NAT网络下的虚拟交换机 VM ...

  8. Centos8 配置静态IP

    安装centos 8之后,重启启动网络时,会出现以下报错 报错信息如下: Failed to start network.service: Unit network.service not found ...

  9. centos7配置静态ip后仍然显示动态ip

    我在虚拟机上安装了CentOS7操作系统,将 /etc/sysconfig/network-scripts/ifcfg-eth0 文件配置静态 IP 为192.168.1.210,如图1: 然后我用 ...

随机推荐

  1. linux机器之间配置ssh无密访问

    首先确认已安装了ssh服务,没装的自行百度一下. A机器:192.168.1.1 B机器:192.168.1.2 使A无密访问B,步骤如下[root@localhost ~]# cd .ssh 如果没 ...

  2. 如何下载ubuntu桌面,并使用

    下载ubuntu,进行linux系统的操作 1.下载ubuntu 百度搜索ubuntu或直达下载链接http://cn.ubuntu.com/download/ 你可以选择,优麒麟16或者Ubuntu ...

  3. Android开发:《Gradle Recipes for Android》阅读笔记(翻译)5.4——使用Espresso测试Activity

    问题: 你想要使用Google的Espresso测试Activity. 解决方案: 在Gradle配置里面增加Espresso,书写测试脚本. 讨论: Espresso测试库已经被添加进“Androi ...

  4. Android开发:《Gradle Recipes for Android》阅读笔记(翻译)4.3——排除任务

    问题: 你想要在构建进程当中排除指定的任务. 解决方案: 可以使用-x排除单个任务.编辑task graph排除多个任务. 讨论: Gradle的构建进程包含了许多任务的执行顺序.他们中的大多数都依赖 ...

  5. Win10下Hyper-V设置网络连接

    具体方法如下. 1.点击虚拟交换机管理 2.创建虚拟交换机 选择内部 3.选择链接类型

  6. hdu 4576(简单概率dp | 矩阵优化)

    艰难的一道题,体现出菜菜的我... 首先,先吐槽下. 这题到底出题人是怎么想的,用普通概率dp水过??? 那为什么我概率dp写的稍微烂点就一直tle?  感觉很不公平.大家算法都一致,因为我程序没有那 ...

  7. iOS侧面加shadow

    UIBezierPath *shadowPath = [UIBezierPath bezierPathWithRect:_bgView.bounds]; _bgView.layer.masksToBo ...

  8. cannot be cast to javax.servletFilter

    java.lang.ClassCastException: org.springframework.web.filter.CharacterEncodingFilter cannot be cast ...

  9. JS让DIV绑定某个事件

    <html> <head> <title>Add/Remove Event Handlers Example</title> <script ty ...

  10. Ionic的下拉框在手机上点击无效

    最近在维护ionic+angular的项目,在浏览器使用下拉框的时候调试的时候,一切正常. 但是在手机上测试的时候,遇到这个问题. 我使用的版本是ionic1.3.1,不知道新版本有没有解决这个bug ...