OSPF配置常用命令知识总结

1.display ospf abr-asbr 命令用来显示OSPF的区域边界路由器和自治系统边界路由器信息。

[R3]dis ospf abr-asbr

OSPF Process 1 with Router ID 20.1.3.0
Routing Table to ABR and ASBR

Rt Type       Destination    Area    Cost   Nexthop       Type
Intra-area    30.3.6.0       0.0.0.0    3      192.168.34.4           ABR

2.display ospf lsdb 命令用来显示OSPF的链路状态数据库(LSDB)信息。

[R3]display ospf lsdb

OSPF Process 1 with Router ID 20.1.3.0
Link State Database

Area: 0.0.0.0
Type      LinkState ID     AdvRouter    Age    Len   Sequence   Metric
Router        20.1.3.0      20.1.3.0      1264     36     80000004    1
Router        0.2.5.0        0.2.5.0       1257    48    80000007    1
Network    192.168.56.6    30.3.6.0       1259   32    80000001    0
Network    192.168.34.3    20.1.3.0      1264    32    80000001    0

3.display ospf peer brief //查看OSPF邻接表

[R3]display ospf peer brief

OSPF Process 1 with Router ID 20.1.3.0
Peer Statistic Information
----------------------------------------------------------------------------
Area Id   Interface         Neighbor id   State
0.0.0.0      GigabitEthernet0/0/2      0.2.4.0           Full
0.0.0.20    GigabitEthernet0/0/0     20.1.2.0         Full
0.0.0.20    GigabitEthernet0/0/1          20.1.1.0               Full
----------------------------------------------------------------------------

4.display ip routing-table protocol ospf  //查看OSPF路由表

[R3]display ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
Destinations : 5 Routes : 6

OSPF routing table status : <Active>
Destinations : 5 Routes : 6

Destination/Mask    Proto    Pre    Cost    Flags   NextHop     Interface

192.168.12.0/24      OSPF    10    2      D    192.168.13.1    GigabitEthernet0/0/1
           OSPF    10    2      D    192.168.23.2    GigabitEthernet0/0/0
192.168.20.0/24      OSPF    10    2     D    192.168.13.1    GigabitEthernet0/0/1
192.168.45.0/24      OSPF    10    2      D    192.168.34.4    GigabitEthernet0/0/2
192.168.56.0/24      OSPF       10    3      D    192.168.34.4    GigabitEthernet0/0/2
192.168.67.0/24      OSPF    10     4      D    192.168.34.4    GigabitEthernet0/0/2

OSPF routing table status : <Inactive>
Destinations : 0 Routes : 0

5.配置网络接口类型,影响DR的选举

[R3] interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0] ospf  network-type  p2p

6.配置所在网段的接口,影响DR的选举

[R3] interface GigabitEthernet 0/0/0

[R3-GigabitEthernet0/0/0] ospf dr-priority 0

7.配置路由器所在接口的cost,影响路由的选择

[R3]interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0]ospf cost 45

8.配置路由器间的Hello计时器时长

[R3]interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0]ospf timer hello 4

9.配置路由器之间的Dead计时器时长

[R3]interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0]ospf timer dead 33

OSPF配置常用命令知识总结的更多相关文章

  1. 华为路由器OSPF配置常用命令

    OSPF单区域配置 ospf 1 进入ospf视图1代表进程号 area 0 创建区域并进入OSPF区域视图,输入要创建的区域ID,骨干区域即区域0 network +IP +匹配码 display ...

  2. Git 使用的配置 常用命令

    老文一篇 搬过来 1. git的部分配置 # 全局提交用户名与邮箱 git config --global user.name "simon" git config --globa ...

  3. mysql5.7安装配置,常用命令,常见问题

    1.安装配置 参考:http://www.cnblogs.com/Fiona20170420/p/6738185.html 1. 下载 2. 解压缩 3. 添加path环境变量,路径指向mysql所在 ...

  4. adb 环境配置 常用命令 总结

    配置环境变量 右键我的电脑 -> 属性 -> 高级 -> 环境变量 -> Path 在Path中添加Android SDK安装路径中 adb.exe 的路径,例如[\sdk\p ...

  5. 开始使用 git(配置+常用命令)

    ▶ 注意 页面显示问题: -- 是两个短横线 - 是一个横短线 由于显示问题导致两个短横线之间没有空格,看起来像是一条横线,实则是两条短横线 ▶ git 常用命令 ◆ git add ● git ad ...

  6. Linux常用命令知识积累

    基本操作 Linux关机,重启 # 关机 shutdown -h now # 重启 shutdown -r now 查看系统,CPU信息 # 查看系统内核信息 uname -a # 查看系统内核版本 ...

  7. Linux网络配置常用命令

    计算机需要网络连接才能和其他计算机通信,这是通过操作系统识别接口卡(如以太网卡.猫等等),并配置该接口以连接到网络上来实现的.网络配置命令可以用来配置以下类型的网络接口:以太网.ISDN(综合业务数字 ...

  8. wifi配置常用命令总结

    1:iwlist eth1 scanning 查看无线路由 2:iwconfig eth1 essid "无线路由的名称" 3: ifconfig eth1 IP 4: route ...

  9. Ubuntu/Linux网络配置常用命令

    配置ip 打开配置文件 sudo vim /etc/network/interfaces # This file describes the network interfaces available ...

  10. H3C交换机配置常用命令(转)

    1.配置文件相关命令 [Quidway]display current-configuration //显示当前生效的配置 [Quidway]display saved-configuration / ...

随机推荐

  1. rin和快速迭代

    链接:https://ac.nowcoder.com/acm/contest/3002/E rin最近喜欢上了数论. 然而数论实在太复杂了,她只能研究一些简单的问题. 这天,她在研究正整数因子个数的时 ...

  2. 【ASP.NET Core】标记帮助器——替换元素名称

    标记帮助器不仅可以给目标元素(标记)插入(或修改)属性,插入自定义的HTML内容,在某些需求中还可以替换原来标记的名称. 比如我们在使用 Blazor 时很熟悉的 Component 标记帮助器.在 ...

  3. python 获取docker容器内存使用率

    # -*- encoding: utf-8 -*- from subprocess import Popen, PIPE, STDOUTimport time def Run_Cmd(cmd): # ...

  4. js截取数组

    在JavaScript中,可以使用 slice() 方法来截取数组的一部分.该方法接受两个参数,第一个参数是截取的起始位置(包括该位置),第二个参数是截取的结束位置(不包括该位置). 例如,假设有一个 ...

  5. 【Java】BigDecimal

    BigDecimal转int类型 BigDecimal a=new BigDecimal(12.88); int b=a.intValue(); System.out.println(b);//b=1 ...

  6. rabbitmq的Exchange类型案例

    一.direct(将消息转发到指定Routing key的Queue上,Routing key的解析规则为精确匹配) publish代码 consumer代码,绑定了另一个队列 优先启动publish ...

  7. appcrawler(2.1.3)采坑

    转发:https://www.jianshu.com/p/d97290136bad 遇到的坑: 问题1: Exception in thread "main" org.openqa ...

  8. dll帮助类

    项目中有很多时候用到外部dll,调用的时候如果用静态调用,程序exe目录下有很多dll,看起来很乱,不利于后续维护:动态调用可以把dll放在想放的文件夹内,但是如果一个dll要用到的函数很多,动态调用 ...

  9. php 常用助手函数

    1 <?php 2 3 if (!function_exists('bcSum')) { 4 function bcSum($scale, ...$args): string 5 { 6 $re ...

  10. JavaScript基础知识整理(对象的属性)

    对象的定义 无序属性的集合,属性可以包括基本值,对象或函数. JavaScript中有两类属性,数据属性和访问器属性. 特征值 JavaScript使用特征值来描述属性的行为,因为是为实现JavaSc ...