静态路由配置典型举例
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
软件版本 Release 1120系列,Release 1130系列,Release 1200系列 Release 1808 Release 1115,Release 1118 Release 2220
1.2.2 组网需求
如 图 1 所示的简单组网环境中,通过配置静态路由功能实现各主机的路由互通。 图1 静态路由配置组网图
# 配置 Switch C 的 VLAN 虚接口地址。
<SwitchC> system-view [SwitchC] vlan 600 [SwitchC-Vlan600] interface Vlan-interface600 [SwitchC-Vlan-interface600] ip address 1.1.5.6 255.255.255.252 [SwitchC-Vlan-interface600] quit [SwitchC] vlan 900 [SwitchC-Vlan900] interface Vlan-interface900 [SwitchC-Vlan-interface900] ip address 1.1.3.1 255.255.255.0 [SwitchC-Vlan-interface900] quit
# 在 Switch C 上配置缺省路由。
<SwitchC> system-view [SwitchC] ip route-static 0.0.0.0 0.0.0.0 1.1.5.5
i
1 静态路由典型配置举例
1.1 简介
本章介绍了静态路由的各种典型配置。
1.2 静态路由典型配置举例
1.2.1 适用产品和版本
表1 配置适用的产品与软件版本关系
产品 S10500系列以太网交换机 S5800&S5820X系列以太网交换机 S5830系列以太网交换机 S5500-EI&S5500-SI系列以太网交换机
1-1
[SwitchA-Vlan-interface500] ip address 1.1.4.1 255.255.255.252 [SwitchA-Vlan-interface500] quit
# 配置 Switch B 的 VLAN 虚接口地址。
<SwitchB> system-view [SwitchB] vlan 100 [SwitchB-Vlan100] interface Vlan-interface100 [SwitchB-Vlan-interface100] ip address 1.1.6.1 255.255.255.0 [SwitchB-Vlan-interface100] quit [SwitchB] vlan 500 [SwitchB-Vlan500] interface Vlan-interface500 [SwitchB-Vlan-interface500] ip address 1.1.4.2 255.255.255.252 [SwitchB-Vlan-interface500] quit [SwitchB] vlan 600 [SwitchB-Vlan600] interface Vlan-interface600 [SwitchB-Vlan-interface600] ip address 1.1.5.5 255.255.255.252 [SwitchB-Vlan-interface600] quit
1.2.3 配置步骤
(1) 配置交换机各 VLAN 虚接口的 IP 地址 # 配置 Switch A 的 VLAN 虚接口地址。
<SwitchA> system-view [SwitchA] vlan 300 [SwitchA-Vlan300] interface Vlan-interface300 [SwitchA-Vlan-interface300] ip address 1.1.2.3 255.255.255.0 [SwitchA-Vlan-interface300] quit [SwitchA] vlan 500 [SwitchA-Vlan500] interface Vlan-interface500
(2) 配置静态路由 # 在 Switch A 上配置缺省路由。
<SwitchA> system-view [SBaidu NhomakorabeaitchA] ip route-static 0.0.0.0 0.0.0.0 1.1.4.2
# 在 Switch B 上配置两条静态路由。
<SwitchB> system-view [SwitchB] ip route-static 1.1.2.0 255.255.255.0 1.1.4.1 [SwitchB] ip route-static 1.1.3.0 255.255.255.0 1.1.5.6
目录
1 静态路由典型配置举例·······················································································································1-1 1.1 简介 ···················································································································································1-1 1.2 静态路由典型配置举例 ······················································································································1-1 1.2.1 适用产品和版本 ······················································································································1-1 1.2.2 组网需求 ·································································································································1-1 1.2.3 配置步骤 ·································································································································1-1 1.2.4 验证配置 ·································································································································1-2 1.2.5 配置文件 ·································································································································1-2 1.3 静态路由、Track与NQA联动配置举例 ······························································································1-4 1.3.1 适用产品和版本 ······················································································································1-4 1.3.2 组网需求 ·································································································································1-4 1.3.3 配置注意事项 ··························································································································1-4 1.3.4 配置步骤 ·································································································································1-4 1.3.5 验证配置 ·································································································································1-6 1.3.6 配置文件 ·································································································································1-8 1.4 静态路由、Track与BFD联动配置举例·······························································································1-9 1.4.1 适用产品和版本 ······················································································································1-9 1.4.2 组网需求 ·································································································································1-9 1.4.3 配置注意事项 ··························································································································1-9 1.4.4 配置步骤 ·································································································································1-9 1.4.5 验证配置 ·······························································································································1-10 1.4.6 配置文件 ·······························································································································1-12