1、拓扑图

2、配置IP

R1

  1. Please press enter to start cmd line!
  2. ############
  3. <Huawei>
  4. Dec ::-: Huawei %%01IFPDT//IF_STATE(l)[]:Interface GigabitEt
  5. hernet0// has turned into UP state.
  6. <Huawei>
  7. Dec ::-: Huawei %%01IFPDT//IF_STATE(l)[]:Interface Serial2/
  8. / has turned into UP state.
  9. <Huawei>
  10. Dec ::-: Huawei %%01IFNET//LINK_STATE(l)[]:The line protocol
  11. PPP on the interface Serial2// has entered the UP state.
  12. <Huawei>sys
  13. Enter system view, return user view with Ctrl+Z.
  14. [Huawei]sysname R1
  15. [R1]int g0//
  16. [R1-GigabitEthernet0//]ip add 12.1.1.1
  17. Dec ::-: R1 %%01IFNET//LINK_STATE(l)[]:The line protocol IP
  18. on the interface GigabitEthernet0// has entered the UP state.
  19. [R1-GigabitEthernet0//]q
  20. [R1]int s
  21. [R1]int Serial
  22. [R1]int Serial
  23. ^
  24. Error: Wrong parameter found at '^' position.
  25. [R1]int Serial
  26. [R1]int Serial ?
  27. <-> Serial interface slot number
  28. [R1]int Serial
  29. ^
  30. Error: Wrong parameter found at '^' position.
  31. [R1]int Serial //
  32. [R1-Serial2//]ip add 11.1.1.1
  33. [R1-Serial2//]q
  34. [R1]
  35. Dec ::-: R1 %%01IFNET//LINK_STATE(l)[]:The line protocol PPP
  36. IPCP on the interface Serial2// has entered the UP state.
  37. [R1]dis ip int
  38. [R1]dis ip interface bri
  39. *down: administratively down
  40. ^down: standby
  41. (l): loopback
  42. (s): spoofing
  43. The number of interface that is UP in Physical is
  44. The number of interface that is DOWN in Physical is
  45. The number of interface that is UP in Protocol is
  46. The number of interface that is DOWN in Protocol is
  47.  
  48. Interface IP Address/Mask Physical Protocol
  49. GigabitEthernet0// 12.1.1.1/ up up
  50. GigabitEthernet0// unassigned down down
  51. NULL0 unassigned up up(s)
  52. Serial2// 11.1.1.1/ up up
  53. Serial2// unassigned down down
  54. [R1]

R2

  1. Please press enter to start cmd line!
  2. ####
  3. <Huawei>
  4. Dec ::-: Huawei %%01IFNET//BOARD_ENABLE(l)[]:Board has bee
  5. n available.
  6. <Huawei>
  7. Dec ::-: Huawei %%01IFNET//IF_ENABLE(l)[]:Interface GigabitE
  8. thernet1// has been available.
  9. <Huawei>
  10. Dec ::-: Huawei %%01DEV//ENTUP(l)[]:2SA board[] register su
  11. ccess.
  12. <Huawei>
  13. Dec ::-: Huawei %%01IFNET//BOARD_ENABLE(l)[]:Board has bee
  14. n available.
  15. <Huawei>
  16. Dec ::-: Huawei %%01IFNET//IF_ENABLE(l)[]:Interface Serial2/
  17. / has been available.
  18. <Huawei>
  19. Dec ::-: Huawei %%01IFNET//IF_ENABLE(l)[]:Interface Serial2/
  20. / has been available.
  21. <Huawei>
  22. Dec ::-: Huawei %%01IFPDT//IF_STATE(l)[]:Interface GigabitEt
  23. hernet0// has turned into UP state.
  24. <Huawei>
  25. Dec ::-: Huawei %%01IFPDT//IF_STATE(l)[]:Interface GigabitEt
  26. hernet0// has turned into UP state.
  27. <Huawei>
  28. Dec ::-: Huawei %%01IFPDT//IF_STATE(l)[]:Interface Serial2/
  29. / has turned into UP state.
  30. <Huawei>
  31. Dec ::-: Huawei %%01IFNET//LINK_STATE(l)[]:The line protocol
  32. PPP on the interface Serial2// has entered the UP state.
  33. <Huawei>sys
  34. Enter system view, return user view with Ctrl+Z.
  35. [Huawei]sysname R2
  36. [R2]int
  37. [R2]interface g0//
  38. [R2-GigabitEthernet0//]ip add 12.1.1.2
  39. Dec ::-: R2 %%01IFNET//LINK_STATE(l)[]:The line protocol IP
  40. on the interface GigabitEthernet0// has entered the UP state.
  41. [R2-GigabitEthernet0//]q
  42. [R2]int s2///
  43. ^
  44. Error: Wrong parameter found at '^' position.
  45. [R2]int s
  46. [R2]int Serial //
  47. [R2-Serial2//]ip add 11.1.1.2
  48. [R2-Serial2//]
  49. Dec ::-: R2 %%01IFNET//LINK_STATE(l)[]:The line protocol PP
  50. P IPCP on the interface Serial2// has entered the UP state.
  51. [R2-Serial2//]q
  52. [R2]int
  53. [R2]interface g0//
  54. [R2-GigabitEthernet0//]ip add 10.1.1.1
  55. Dec ::-: R2 %%01IFNET//LINK_STATE(l)[]:The line protocol IP
  56. on the interface GigabitEthernet0// has entered the UP state.
  57. [R2-GigabitEthernet0//]q
  58. [R2]interface g0//
  59. [R2-GigabitEthernet0//]ip add 10.1.1.2
  60. [R2-GigabitEthernet0//]q
  61. [R2]dis ip int
  62. [R2]dis ip interface br
  63. [R2]dis ip interface brief
  64. *down: administratively down
  65. ^down: standby
  66. (l): loopback
  67. (s): spoofing
  68. The number of interface that is UP in Physical is
  69. The number of interface that is DOWN in Physical is
  70. The number of interface that is UP in Protocol is
  71. The number of interface that is DOWN in Protocol is
  72.  
  73. Interface IP Address/Mask Physical Protocol
  74. GigabitEthernet0// 12.1.1.2/ up up
  75. GigabitEthernet0// 10.1.1.2/ up up
  76. GigabitEthernet1// unassigned down down
  77. NULL0 unassigned up up(s)
  78. Serial2// 11.1.1.2/ up up
  79. Serial2// unassigned down down
  80. [R2]

R3

  1. The device is running!
  2.  
  3. <Huawei>
  4. Dec ::-: Huawei %%01IFPDT//IF_STATE(l)[]:Interface GigabitEt
  5. hernet0// has turned into UP state.
  6. <Huawei>sys
  7. Enter system view, return user view with Ctrl+Z.
  8. [Huawei]sysname R3
  9. [R3]int g0//
  10. [R3-GigabitEthernet0//]ip add 10.1.1.3
  11. [R3-GigabitEthernet0//]
  12. Dec ::-: R3 %%01IFNET//LINK_STATE(l)[]:The line protocol IP
  13. on the interface GigabitEthernet0// has entered the UP state.
  14. [R3-GigabitEthernet0//]q
  15. [R3]dis ip int bri
  16. *down: administratively down
  17. ^down: standby
  18. (l): loopback
  19. (s): spoofing
  20. The number of interface that is UP in Physical is
  21. The number of interface that is DOWN in Physical is
  22. The number of interface that is UP in Protocol is
  23. The number of interface that is DOWN in Protocol is
  24.  
  25. Interface IP Address/Mask Physical Protocol
  26. GigabitEthernet0// unassigned down down
  27. GigabitEthernet0// 10.1.1.3/ up up
  28. GigabitEthernet0// unassigned down down
  29. GigabitEthernet2// unassigned down down
  30. GigabitEthernet2// unassigned down down
  31. GigabitEthernet2// unassigned down down
  32. GigabitEthernet2// unassigned down down
  33. NULL0 unassigned up up(s)
  34. [R3]

3、R1配置浮动静态路由

  1. [R1]ip rou
  2. [R1]ip route-s
  3. [R1]ip route-static 10.1.1.0 g0// 12.1.1.2
  4. [R1]ip rou
  5. [R1]ip route-st
  6. [R1]ip route-static 10.1.1.0 se
  7. [R1]ip route-static 10.1.1.0 Serial // 11.1.1.2
  8. [R1]dis ip rou
  9. [R1]dis ip routing-table
  10. Route Flags: R - relay, D - download to fib
  11. ------------------------------------------------------------------------------
  12. Routing Tables: Public
  13. Destinations : Routes :
  14.  
  15. Destination/Mask Proto Pre Cost Flags NextHop Interface
  16.  
  17. 10.1.1.0/ Static D 12.1.1.2 GigabitEthernet
  18. //
  19. Static D 11.1.1.2 Serial2//
  20. 11.1.1.0/ Direct D 11.1.1.1 Serial2//
  21. 11.1.1.1/ Direct D 127.0.0.1 Serial2//
  22. 11.1.1.2/ Direct D 11.1.1.2 Serial2//
  23. 11.1.1.255/ Direct D 127.0.0.1 Serial2//
  24. 12.1.1.0/ Direct D 12.1.1.1 GigabitEthernet
  25. //
  26. 12.1.1.1/ Direct D 127.0.0.1 GigabitEthernet
  27. //
  28. 12.1.1.255/ Direct D 127.0.0.1 GigabitEthernet
  29. //
  30. 127.0.0.0/ Direct D 127.0.0.1 InLoopBack0
  31. 127.0.0.1/ Direct D 127.0.0.1 InLoopBack0
  32. 127.255.255.255/ Direct D 127.0.0.1 InLoopBack0
  33. 255.255.255.255/ Direct D 127.0.0.1 InLoopBack0
  34.  
  35. [R1]ip route-static 10.1.1.0 Serial // 11.1.1.2 pri
  36. [R1]ip route-static 10.1.1.0 Serial // 11.1.1.2 pr
  37. [R1]ip route-static 10.1.1.0 Serial // 11.1.1.2 preference ?
  38. INTEGER<-> Preference value range
  39. [R1]ip route-static 10.1.1.0 Serial // 11.1.1.2 preference
  40. Info: Succeeded in modifying route.
  41. [R1]dis ip ro
  42. [R1]dis ip routing-table
  43. Route Flags: R - relay, D - download to fib
  44. ------------------------------------------------------------------------------
  45. Routing Tables: Public
  46. Destinations : Routes :
  47.  
  48. Destination/Mask Proto Pre Cost Flags NextHop Interface
  49.  
  50. 10.1.1.0/ Static D 12.1.1.2 GigabitEthernet
  51. //
  52. 11.1.1.0/ Direct D 11.1.1.1 Serial2//
  53. 11.1.1.1/ Direct D 127.0.0.1 Serial2//
  54. 11.1.1.2/ Direct D 11.1.1.2 Serial2//
  55. 11.1.1.255/ Direct D 127.0.0.1 Serial2//
  56. 12.1.1.0/ Direct D 12.1.1.1 GigabitEthernet
  57. //
  58. 12.1.1.1/ Direct D 127.0.0.1 GigabitEthernet
  59. //
  60. 12.1.1.255/ Direct D 127.0.0.1 GigabitEthernet
  61. //
  62. 127.0.0.0/ Direct D 127.0.0.1 InLoopBack0
  63. 127.0.0.1/ Direct D 127.0.0.1 InLoopBack0
  64. 127.255.255.255/ Direct D 127.0.0.1 InLoopBack0
  65. 255.255.255.255/ Direct D 127.0.0.1 InLoopBack0
  66.  
  67. [R1]int
  68. [R1]interface g
  69. [R1]interface GigabitEthernet //
  70. [R1-GigabitEthernet0//]shut
  71. [R1-GigabitEthernet0//]shutdown
  72. Dec ::-: R1 %%01IFPDT//IF_STATE(l)[]:Interface GigabitEthern
  73. et0// has turned into DOWN state.
  74. [R1-GigabitEthernet0//]
  75. [R1-GigabitEthernet0//]
  76. Dec ::-: R1 %%01IFNET//LINK_STATE(l)[]:The line protocol IP
  77. on the interface GigabitEthernet0// has entered the DOWN state.
  78. [R1-GigabitEthernet0//]dis ip ro
  79. [R1-GigabitEthernet0//]dis ip rou
  80. [R1-GigabitEthernet0//]dis ip rout
  81. [R1-GigabitEthernet0//]q
  82. [R1]dis ip rou
  83. [R1]dis ip routing-table
  84. Route Flags: R - relay, D - download to fib
  85. ------------------------------------------------------------------------------
  86. Routing Tables: Public
  87. Destinations : Routes :
  88.  
  89. Destination/Mask Proto Pre Cost Flags NextHop Interface
  90.  
  91. 10.1.1.0/ Static D 11.1.1.2 Serial2//
  92. 11.1.1.0/ Direct D 11.1.1.1 Serial2//
  93. 11.1.1.1/ Direct D 127.0.0.1 Serial2//
  94. 11.1.1.2/ Direct D 11.1.1.2 Serial2//
  95. 11.1.1.255/ Direct D 127.0.0.1 Serial2//
  96. 127.0.0.0/ Direct D 127.0.0.1 InLoopBack0
  97. 127.0.0.1/ Direct D 127.0.0.1 InLoopBack0
  98. 127.255.255.255/ Direct D 127.0.0.1 InLoopBack0
  99. 255.255.255.255/ Direct D 127.0.0.1 InLoopBack0
  100.  
  101. [R1]

HCNA配置浮动静态路由的更多相关文章

  1. 路由与交换,cisco路由器配置,浮动静态路由

    设置浮动静态路由的目的就是为了防止因为一条线路故障而引起网络故障.言外之意就是说浮动静态路由实际上是主干路由的备份.例如下图: 假如我们设路由器之间的串口(seria)为浮动静态路由(管理距离为100 ...

  2. 路由与交换,cisco路由器配置,静态路由

    网络是一个大型的拓扑结构,在路由表中,最重要的是管理距离和度量值 管理距离 管理距离用来确定路由的优先级.管理距离的范围是0-255之间的整数值.值越低代表优先级越高.0代表最高优先级.并且只有直连路 ...

  3. 两台CISCO2691测试静态路由汇总,浮动静态路由和负载分担静态路由配置

    Dynagen的配置文件内容: #Lab - autostart = False [localhost] [[]] ram = image = C:\Program Files (x86)\Dynam ...

  4. Network基础(五):配置静态路由、配置浮动路由、配置多路由的静态路由、配置默认路由

    一.配置静态路由 目标: 配置路由接口IP地址并通过静态路由的配置实现全网的互通. 方案: 按如下网络拓扑配置接口IP地址并通过静态路由的配置实现全网的互通如下图所示: 步骤: 步骤一:配置静态路由 ...

  5. 华为eNSP路由交换-静态路由

    静态路由 一. 静态路由及默认路由基本配置 1.1实验内容 在由三台路由器所组成的简单网络中,R1和R3各连着一台PC,现在要求能够实现PC-1和PC-2之间的通信.本实验将通过配置基本的静态路由和默 ...

  6. ubuntu 配置静态路由

    原文:http://blog.sina.com.cn/s/blog_6fd8d5d90101f1xy.html -------------------------------------------- ...

  7. 路由器静态IP的配置及其备份静态路由缺省路由

    静态路由时管理员手动配置并维护的路由.静态路由配置简单,被广泛应用于网络中.静态路由还可以实现负载均衡和路由备份.学习掌握好静态路由的配置是很重要的. 如下图, 首先进入路由器的命令视图,(sys) ...

  8. CCNP之静态路由实验报告

                   静态路由实验报告 一.实验要求: 1.内网IP基于172.16.0.0/16自行子网划分 2.除了R2--R4路由器各有两个环回接口 3.R1下的PC自动获取IP地址 4 ...

  9. 总结:BGP和静态路由并存,达到故障自动倒换的目的。

    总体结论: 在上云的场景中,客户需要本地数据中心到云上VPC,出现网络故障时做到自动倒换,保证业务不中断. 一.客户需求 1.客户有总厂.分厂.总厂是通过专线和VPN连接上云,分厂是通过专线先连接到总 ...

随机推荐

  1. Python判断字符串编码以及编码的转换

    转自:http://www.cnblogs.com/zhanhg/p/4392089.html Python判断字符串编码以及编码的转换 判断字符串编码: 使用 chardet 可以很方便的实现字符串 ...

  2. C语言单片机中延时程序的实现

    在单片机或嵌入式系统的程序,常常用规定次数的空循环来实现延时 /** * 通过一个空循环体循环让程序运行一段时间.在嵌入式系统中,这个函数用来实现延时. * * 参数: *    u16 i -- 循 ...

  3. P3193 [HNOI2008]GT考试

    传送门 容易看出是道DP 考虑一位一位填数字 设 f [ i ] [ j ] 表示填到第 i 位,在不吉利串上匹配到第 j 位时不出现不吉利数字的方案数 设 g [ i ] [ j ] 表示不吉利串匹 ...

  4. linux 中varnish服务

    一.安装varnish在server1中安装两个包varnish-3.0.5-1.el6.x86_64.rpm varnish-libs-3.0.5-1.el6.x86_64.rpm1.在server ...

  5. html样式

    <!doctype html> <html> <head> <style id="mceDefaultStyles" type=" ...

  6. @AutoConfigureAfter不生效 @Configration bean的创建顺序

    https://gooroo.io/GoorooTHINK/Article/17466/Lessons-Learned-Writing-Spring-Boot-Auto-Configurations/ ...

  7. 单点登录-JWT(Json Web Tokens)

    来自:http://www.ruanyifeng.com/blog/2018/07/json_web_token-tutorial.html 1.跨域认证 1.用户向服务器发送用户名和密码. 2.服务 ...

  8. OpenCV属性页配置问题~

    详细的OpenCV属性页的安装流程,参考这个网站:http://m.bubuko.com/infodetail-793518.html 运行例子时候,如果遇到这个问题,可能配置环境时候出现问题了. 此 ...

  9. 爬虫(GET)——爬baidu.com主页

    工具:python3 目标:www.baidu.com 工作流程: 1)反爬虫第一步:抓包工具fiddler抓取页面请求信息,得到User-Agent的值,用于重构urllib.request.Req ...

  10. HBuilder的常用快捷键

    Ctrl + d 删除整行内容 Ctrl + Shift +R 复制当前行到下一行 Ctrl + Shift +D 重新编辑 Ctrl + 方向键 当前行整行内容上移或下移 Alt + ↓ 跳转到下一 ...