在vsr1000上配置了OSPF协议相关信息,但是通过netconf读取时,协议配置的某些参数无法的得到。
配置信息和查询方法以及查询结果请参见附件文件。
(0)
最佳答案
哪些配置参数无法获取到呢?建议咨询400工程师看看
(1)
具体如下: 命令行查询ospf: [H3C]show current-configuration # version 7.1.059, ESS 0322 # sysname H3C # telnet server enable # ospf 100 peer 10.1.1.3 dr-priority 2 lsa-generation-interval 50 10 bandwidth-reference 34 filter-policy 3000 import area 0.0.0.0 network 10.1.1.0 0.0.0.255 area 0.0.0.1 network 192.168.10.0 0.0.0.255 stub # netconf查询ospf: <rpc message- xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <get> <filter> <top xmlns="http://www.h3c.com/netconf/data:1.0"> <OSPF/> </top> </filter> </get> </rpc> 结果: <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-> <data> <top xmlns="http://www.h3c.com/netconf/data:1.0"> <OSPF> <Areas> <Area> <Name>100</Name> <AreaId>0.0.0.0</AreaId> </Area> <Area> <Name>100</Name> <AreaId>0.0.0.1</AreaId> </Area> </Areas> <Instances> <Instance> <Name>100</Name> <VRF/> <RouterId>192.168.10.104</RouterId> </Instance> </Instances> <Interfaces> <Interface> <IfIndex>17</IfIndex> <IfEnable> <Name>100</Name> <AreaId>0.0.0.1</AreaId> </IfEnable> <Cost>1</Cost> <NetworkType>1</NetworkType> <HelloTimer>10</HelloTimer> <DeadTimer>40</DeadTimer> <DrPriority>1</DrPriority> <State>3</State> </Interface> <Interface> <IfIndex>33</IfIndex> <IfEnable> <Name>100</Name> <AreaId>0.0.0.0</AreaId> </IfEnable> <Cost>1</Cost> <NetworkType>1</NetworkType> <HelloTimer>10</HelloTimer> <DeadTimer>40</DeadTimer> <DrPriority>1</DrPriority> <State>3</State> </Interface> </Interfaces> <Networks> <Network> <Name>100</Name> <AreaId>0.0.0.0</AreaId> <NetworkAddr>10.1.1.0</NetworkAddr> <WildcardMask>0.0.0.255</WildcardMask> </Network> <Network> <Name>100</Name> <AreaId>0.0.0.1</AreaId> <NetworkAddr>192.168.10.0</NetworkAddr> <WildcardMask>0.0.0.255</WildcardMask> </Network> </Networks> </OSPF> </top> </data> </rpc-reply> 从netconf的反馈结果来看,ospf的如下配置信息并没有在netconf中体现出来。 peer 10.1.1.3 dr-priority 2 lsa-generation-interval 50 10 bandwidth-reference 34 filter-policy 3000 import
具体如下: 命令行查询ospf: [H3C]show current-configuration # version 7.1.059, ESS 0322 # sysname H3C # telnet server enable # ospf 100 peer 10.1.1.3 dr-priority 2 lsa-generation-interval 50 10 bandwidth-reference 34 filter-policy 3000 import area 0.0.0.0 network 10.1.1.0 0.0.0.255 area 0.0.0.1 network 192.168.10.0 0.0.0.255 stub # netconf查询ospf: <rpc message- xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <get> <filter> <top xmlns="http://www.h3c.com/netconf/data:1.0"> <OSPF/> </top> </filter> </get> </rpc> 结果: <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-> <data> <top xmlns="http://www.h3c.com/netconf/data:1.0"> <OSPF> <Areas> <Area> <Name>100</Name> <AreaId>0.0.0.0</AreaId> </Area> <Area> <Name>100</Name> <AreaId>0.0.0.1</AreaId> </Area> </Areas> <Instances> <Instance> <Name>100</Name> <VRF/> <RouterId>192.168.10.104</RouterId> </Instance> </Instances> <Interfaces> <Interface> <IfIndex>17</IfIndex> <IfEnable> <Name>100</Name> <AreaId>0.0.0.1</AreaId> </IfEnable> <Cost>1</Cost> <NetworkType>1</NetworkType> <HelloTimer>10</HelloTimer> <DeadTimer>40</DeadTimer> <DrPriority>1</DrPriority> <State>3</State> </Interface> <Interface> <IfIndex>33</IfIndex> <IfEnable> <Name>100</Name> <AreaId>0.0.0.0</AreaId> </IfEnable> <Cost>1</Cost> <NetworkType>1</NetworkType> <HelloTimer>10</HelloTimer> <DeadTimer>40</DeadTimer> <DrPriority>1</DrPriority> <State>3</State> </Interface> </Interfaces> <Networks> <Network> <Name>100</Name> <AreaId>0.0.0.0</AreaId> <NetworkAddr>10.1.1.0</NetworkAddr> <WildcardMask>0.0.0.255</WildcardMask> </Network> <Network> <Name>100</Name> <AreaId>0.0.0.1</AreaId> <NetworkAddr>192.168.10.0</NetworkAddr> <WildcardMask>0.0.0.255</WildcardMask> </Network> </Networks> </OSPF> </top> </data> </rpc-reply> 从netconf的反馈结果来看,ospf的如下配置信息并没有在netconf中体现出来。 peer 10.1.1.3 dr-priority 2 lsa-generation-interval 50 10 bandwidth-reference 34 filter-policy 3000 import
命令行查询ospf:
[H3C]show current-configuration
#
version 7.1.059, ESS 0322
#
sysname H3C
#
telnet server enable
#
ospf 100
peer 10.1.1.3 dr-priority 2
lsa-generation-interval 50 10
bandwidth-reference 34
filter-policy 3000 import
area 0.0.0.0
network 10.1.1.0 0.0.0.255
area 0.0.0.1
network 192.168.10.0 0.0.0.255
stub
#
netconf查询ospf:
<?xml version="1.0" encoding="UTF-8" ?>
<rpc message- xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get>
<filter>
<top xmlns="http://www.h3c.com/netconf/data:1.0">
<OSPF/>
</top>
</filter>
</get>
</rpc>
结果:
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message->
<data>
<top xmlns="http://www.h3c.com/netconf/data:1.0">
<OSPF>
<Areas>
<Area>
<Name>100</Name>
<AreaId>0.0.0.0</AreaId>
</Area>
<Area>
<Name>100</Name>
<AreaId>0.0.0.1</AreaId>
</Area>
</Areas>
<Instances>
<Instance>
<Name>100</Name>
<VRF/> <RouterId>192.168.10.104</RouterId>
</Instance>
</Instances>
<Interfaces>
<Interface>
<IfIndex>17</IfIndex>
<IfEnable>
<Name>100</Name>
<AreaId>0.0.0.1</AreaId>
</IfEnable>
<Cost>1</Cost>
<NetworkType>1</NetworkType>
<HelloTimer>10</HelloTimer>
<DeadTimer>40</DeadTimer>
<DrPriority>1</DrPriority>
<State>3</State>
</Interface>
<Interface>
<IfIndex>33</IfIndex>
<IfEnable>
<Name>100</Name>
<AreaId>0.0.0.0</AreaId>
</IfEnable>
<Cost>1</Cost>
<NetworkType>1</NetworkType>
<HelloTimer>10</HelloTimer>
<DeadTimer>40</DeadTimer>
<DrPriority>1</DrPriority>
<State>3</State>
</Interface>
</Interfaces>
<Networks>
<Network>
<Name>100</Name>
<AreaId>0.0.0.0</AreaId>
<NetworkAddr>10.1.1.0</NetworkAddr>
<WildcardMask>0.0.0.255</WildcardMask>
</Network>
<Network>
<Name>100</Name>
<AreaId>0.0.0.1</AreaId>
<NetworkAddr>192.168.10.0</NetworkAddr>
<WildcardMask>0.0.0.255</WildcardMask>
</Network>
</Networks>
</OSPF>
</top>
</data>
</rpc-reply>
从netconf的反馈结果来看,ospf的如下配置信息并没有在netconf中体现出来。
peer 10.1.1.3 dr-priority 2
lsa-generation-interval 50 10
bandwidth-reference 34
filter-policy 3000 import
(0)
记得有些获取不到的参数可以用命令行获取喔 <rpc message- xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <CLI> <Configuration> system-view ospf 100 display this </Configuration> </CLI> </rpc>
记得有些获取不到的参数可以用命令行获取喔 <rpc message- xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <CLI> <Configuration> system-view ospf 100 display this </Configuration> </CLI> </rpc>
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明