Cisco及华为网络技术论坛

实例:华为和思科路由器的互联配置(二)


来源:Pconline 作者: 出处:Vlan9.com 2007-12-22 进入论坛

华为路由器配置文件(部分):
Current configuration
  !
    version 1.74
    local-user hw service-type administrator password cipher @'E8P0>+S>'-LGXJQ<%DJQ!!
//定义用户hw,Adminstrator用户是路由器的管理员身份用户,拥有路由器所有命//令的执行权限,cipher方式下密码密文存放,simple方式下密码明文存放。
    router id 192.168.0.2      //定义路由器ID,OSPF中用来标识路由器
    sysname huawei          //定义路由器主机名
firewall enable
  !
  interface Aux0
   
  !
  interface Ethernet0
    ip address 172.18.1.1 255.255.255.0  
    ospf enable area 0.0.0.123    //定义area 123,是在每个端口上配置的,和CISCO不同
  !
  interface Serial0
    clock DTECLK1           //选择DTE侧同步串口时钟
    link-protocol ppp          //华为路由器串口缺省的封装是PPP,CISCO缺省的封装是//HDLC,要改成一致,CISCO的HDLC实现和标准的HDLC   //有细微的差别,所以最好采用PPP,但两边都采用HDLC //测试也是通过的。
    ip address 192.168.1.2 255.255.255.252
    ospf enable area 0.0.0.0     //定义area 0
    ospf peer 192.168.1.1      //需要手工指定对端IP地址,否则OSPF邻居建立不起来
    ospf network-type p2p     //需指定网络类型
  !
  quit
  ospf enable                //需将OSPF enable
  !
  quit
  !
return


  以上配置在Cisco 3640  (C3640-I-M), Version 12.1(2)T 和华为Quidway R2610  VRP (R) software, Version 1.74 Release 0105下验证通过。


  :思科和华为路由器OSPF相关的调试命令比较:


  思科路由器OSPF调试的命令主要有:


  显示关于OSPF的信息      show ip ospf


  显示某个接口上的OSPF的相关信息        show ip ospf interface


  显示由OSPF学习到的路由        show ip route ospf


  显示OSPF连接状态数据库信息       show ip ospf database


  调试与其它OSPF路由器邻接关系事件        debug ip ospf adj


  调试所有OSPF事件          debug ip ospf events


  关闭所有的调试命令          undebug all


  将调试信息输出到终端        terminal monitor


  关闭调试信息输出到终端      terminal no monitor


  华为路由器OSPF调试的命令主要有:


  显示OSPF主要信息     display ospf


  显示OSPF连接状态数据库信息     display ospf database [ retranse ]


  显示OSPF错误信息     display ospf error


  显示OSPF接口信息     display ospf interface interface-type interface-number


  显示OSPF邻居点信息     display ospf peer


  显示OSPF路由表信息     display ospf routing


  打开OSPF调试信息开关    debugging ospf { event | packet [ ack | dd | hello | request | update ] | lsa | spf }


  关闭OSPF调试信息开关    undo debugging ospf { event | packet [ ack | dd | hello | request | update ] | lsa | spf }


  华为路由器首先必须使用info-center enable 命令开启Syslog功能,当用户使用控制台终端,使用info-center console debugging命令,希望信息输出到telnet 终端,使用info-center monitor debugging命令;undo info-center monitor命令关闭各自终端上的信息输出,使用undo info-center monitor all命令可以关闭所有telnet终端的信息输出。


  华为路由器提供了一个快捷键“Ctrl+D”,用来关闭终端输出的大量调试信息,其功能和undo debugging all命令完全相同。

更多请看Cisco与华为技术网(Vlan9.com)cisco路由器配置华为交换机路由故障处理专题,或进入论坛讨论。

上一页12
vlan9_logo
相关专题

论坛精华
阅读排行榜
最新技术文档
热门关键字导读