计算机网络技术-路由-静态路由 学习笔记

路由-静态路由 学习笔记(需结合PPT课件)

静态路由

  • 配置命令
    • HW:ip route-static 192.168.1.0 24 g0/0/0 192.168.2.2
    • HW:ip route-static 192.168.1.0 24 192.168.2.2
    • HW 优先级:ip route-static 192.168.1.0 24 g0/0/0 192.168.2.2 9
    • COSCO:ip route 192.168.1.0 255.255.255.0 192.168.2.2
    • COSCO 优先级:ip route 192.168.1.0 255.255.255.0 192.168.2.2 9
  • 黑洞路由
    • null 0 下一跳为null 0直接丢包
    • HW:ip route-static 192.168.0.0 24 null 0
  • 浮动路由
    • ip route-static 192.168.100.0 24 172.16.13.3
    • ip route-static 192.168.100.0 24 172.16.12.2 preference 61
    • 在网段一样的情况下加载最优的路由(优先值、度量值)
    • 做备用的
    • 下一跳的接口down之后才会切换
  • 常用命令
    • HW
      • 查看配置 dis cur
      • 查看特定配置 dis cur |in ip rout
      • 查看接口情况 dis ip int br
      • 查看数据三层路径 tracert 114.114.114.114
    • CISCO
      • 查看配置 sh run
      • 查看特定配置 sh run |in ip rout
      • 查看接口情况 sh ip int br
      • 查看数据三层路径 traceroute 114.114.114.114

猜你喜欢

转载自www.cnblogs.com/rgz-blog/p/12638673.html