📄 第九章 桥配置命令.htm
字号:
<P>设置状态转换间隔为25秒:</P>
<P>Quidway(config)#bridge max-age 25</P>
<P><FONT size=3>【相关命令】</FONT></P>
<P><B>bridge hello-time</B>,<B>bridge forward-time</B></P>
<H3><A name="9.10 bridge port pathcost"><BIG>9.10 bridge port
pathcost</BIG></A></H3>
<P>设置桥端口的路径值,使用<B>no bridge port pathcost</B> 命令设置该端口的路径值为缺省值。</P>
<P><B>bridge port pathcost</B> <I>number</I></P>
<P><B>no bridge port pathcost</B></P>
<P><FONT size=3>【参数说明】</FONT></P>
<P><I>number</I> 为端口路径值,范围是1~ 65535。</P>
<P><FONT size=3>【缺省情况】</FONT></P>
<P>以太网口缺省的路径值为100,串口缺省的路径值为647。</P>
<P><FONT size=3>【命令模式】</FONT></P>
<P>接口配置模式</P>
<P><FONT size=3>【使用指南】</FONT></P>
<P>该命令配置桥端口的路径值,一般路径值 =1000/与该端口相连的LAN的传输速度。</P>
<P><FONT size=3>【举例】</FONT></P>
<P>设置接口Ethernet0的路径值为250。</P>
<P>Quidway(config-if-ethernet0)#bridge pathcost 250</P>
<P><FONT size=3>【相关命令】</FONT></P>
<P><B>bridge port priority</B></P>
<H3><A name="9.11 bridge port priority"><BIG>9.11 bridge port
priority</BIG></A></H3>
<P>设置桥端口的优先级,使用<B>no bridge port priority</B>命令恢复该端口的优先级为缺省值。</P>
<P><B>bridge port priority</B> <I>number</I></P>
<P><B>no bridge port priority</B></P>
<P><FONT size=3>【参数说明】</FONT></P>
<P><I>number </I>为端口优先级,范围是0 ~255。</P>
<P><FONT size=3>【缺省情况】</FONT></P>
<P>桥端口的缺省优先级为128。</P>
<P><FONT size=3>【命令模式】</FONT></P>
<P>接口配置模式</P>
<P><FONT size=3>【使用指南】</FONT></P>
<P>该命令配置桥端口的优先级,优先级数(<I>number</I>)越低,则该端口的优先级越高。</P>
<P><FONT size=3>【举例】</FONT></P>
<P>设置串口1的优先级为100。</P>
<P>Quidway(config-if-serial1)#bridge priority 100</P>
<P><FONT size=3>【相关命令】</FONT></P>
<P><B>bridge port path-cost</B></P>
<H3><A name="9.12 bridge spanning-disable"><BIG>9.12 bridge
spanning-disable</BIG></A></H3>
<P>设置桥端口允许参加生成树,使用<B>no bridge spanning-disable</B>
命令设置该端口不允许参加生成树。</P>
<P>[ <B>no</B> ] <B>bridge spanning-disable</B></P>
<P><FONT size=3>【缺省情况】</FONT></P>
<P>桥端口缺省参加生成树。</P>
<P><FONT size=3>【命令模式】</FONT></P>
<P>接口配置模式</P>
<P><FONT size=3>【使用指南】</FONT></P>
<P>该命令配置的是桥端口是否参加生成树协议,如果某端口不参加生成树协议,则该端口不会属于桥,即在桥中不包含该端口。</P>
<P><FONT size=3>【举例】</FONT></P>
<P>设置串口0参加生成树协议。</P>
<P>Quidway(config-if-serial0)#no bridge spanning-disable</P>
<P><FONT size=3>【相关命令】</FONT></P>
<P><B>bridge group</B></P>
<H3><A name="9.13 show bridge information"><BIG>9.13 show bridge
information</BIG></A></H3>
<P>显示动态数据库中的内容。</P>
<P><B>show bridge informatio</B></P>
<P><FONT size=3>【命令模式】</FONT></P>
<P>特权用户模式</P>
<P><FONT size=3>【使用指南】</FONT></P>
<P>该命令显示桥的动态数据库中的路由信息,有助于用户进行桥的故障诊断。</P>
<P><FONT size=3>【举例】</FONT></P>
<P>Quidway#show bridge information</P>
<P>Total of 200 station blocks, 197 free.</P>
<P>Address Action Interface Age RX count TX count</P>
<P>00-e0-fc-01-11-11 forward Ethernet0 P 10 7</P>
<P>00-a9-b0-22-00-d9 forward Ethernet0 P 5 7</P>
<P>00-b0-c2-01-11-e3 discard Serial0 P 3 0</P>
<P>该命令显示了网桥数据库中的信息,包括MAC地址、行为、接口、是否超时、该MAC地址接收数据包的个数和发送数据包的个数等。</P>
<H3><A name="9.14 show bridge group"><BIG>9.14 show bridge
group</BIG></A></H3>
<P>显示桥组的信息。</P>
<P><B>show bridge group</B></P>
<P><FONT size=3>【命令模式】</FONT></P>
<P>特权用户模式</P>
<P><FONT size=3>【使用指南】</FONT></P>
<P>该命令显示桥组的信息,有助于用户进行桥的故障诊断。</P>
<P><FONT size=3>【举例】</FONT></P>
<P>Quidway#show bridge group</P>
<P>Concurrent routing and bridging is enabled.</P>
<P>Bridge is running the IEEE compatible Spanning Tree protocol.</P>
<P>Port 1 ( Ethernet 0 ) is forwarding.</P>
<P>Port 2 ( Serial 0 ) is forwarding.</P>
<P>Port 3 ( Serial 1) isn't belong to bridge group.</P>
<P>该命令显示了路由器中哪些端口属于桥,以及各个端口的当前状态。</P>
<H3><A name="9.15 show bridge span"><BIG>9.15 show bridge
span</BIG></A></H3>
<P>显示生成树信息。</P>
<P><B>show bridge span</B></P>
<P><FONT size=3>【命令模式】</FONT></P>
<P>特权用户模式</P>
<P><FONT size=3>【使用指南】</FONT></P>
<P>该命令显示生成树信息,有助于用户进行桥的故障诊断。</P>
<P><FONT size=3>【举例】</FONT></P>
<P>Quidway#show bridge span</P>
<P>Bridge is executing the IEEE compatible Spanning Tree
protocol.</P>
<P>Bridge Identifier has priority: 0080.00e0.fc01.11c4 , address:
00e0.fc01.11c4</P>
<P>Configured Hello time: 2, Max Age: 30, Forward : 15</P>
<P>We are the root of the spanning tree.</P>
<P>Current root has priority: 0080.00e0.fc01.11c4 , address:
00e0.fc01.11c4</P>
<P>Topology change flag doesn't set.</P>
<P>Topology change detected flag doesn't set.</P>
<P>Port 1 ( Ethernet 0 ) is forwarding.</P>
<P>Port path cost: 100, Port priority:0800</P>
<P>Port 2 ( Serial 0 ) is forwarding.</P>
<P>Port path cost: 233, Port priority:1000</P>
<P>Port 3 ( Serial 1) isn't belong to bridge group</P>
<H3><A name="9.16 show bridge traffic"><BIG>9.16 show bridge
traffic</BIG></A></H3>
<P>显示桥的统计信息。</P>
<P><B>show bridge traffi</B></P>
<P><FONT size=3>【命令模式】</FONT></P>
<P>特权用户模式</P>
<P><FONT size=3>【使用指南】</FONT></P>
<P>该命令显示桥接收、传送、丢弃等统计信息,有助于用户进行桥的流量统计和故障诊断。</P>
<P><FONT size=3>【举例】</FONT></P>
<P>Quidway#show bridge traffic</P>
<P>Port No: 1 ( Ethernet 0 )</P>
<P>Port in frames: 20</P>
<P>Port out frames: 15</P>
<P>Port in discards: 0</P>
<P>Mtu exceeded discards: 0</P>
<P>Learned entry discards: 0</P>
<P>Port No: 2 ( Serial 0 )</P>
<P>Port in frames: 17</P>
<P>Port out frames: 17</P>
<P>Port in discards: 0</P>
<P>Mtu exceeded discards: 0</P>
<P>Learned entry discards: 0</P>
<P>该命令显示了各个端口输入的数据包的个数,输出数据包的个数,丢弃数据包的个数,超过MTU丢弃数据包的个数,和通过学习算法丢弃的数据包的个数。</P></TD></TR></TBODY></TABLE>
<P><B><FONT face=华文行楷 size=4> </FONT></B> <!--msnavigation--></P></TD></TR><!--msnavigation--></TBODY></TABLE><!--msnavigation-->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD>
<TABLE height=163 cellSpacing=0 cellPadding=0 width=768 border=0>
<TBODY>
<TR>
<TD align=middle width=766 height=40>
<P align=center><A target=_blank
href="http://www.363.net/cgi-bin/gb2000/gb.cgi?id=zhengwei"><FONT
size=2>我要留言</FONT></A><FONT size=2><BR><BR></FONT></P></TD></TR>
<TR>
<TD align=middle width=766 height=123>
<P align=center><FONT size=2><A
href="http://www.ccilan.com/index.htm">首页</A> | </FONT><A
href="http://www.ccilan.com/ljwm.htm"><FONT color=#0000ff
size=2>了解我们</FONT></A><FONT size=2> | </FONT><A
href="http://www.ccilan.com/dxdl.htm"><FONT color=#0000ff
size=2>电线电缆</FONT></A><FONT size=2> | </FONT><A
href="http://www.ccilan.com/gsbj.htm"><FONT color=#0000ff
size=2>公司报介</FONT></A><FONT size=2> | </FONT><A
href="http://www.ccilan.com/hybz.htm"><FONT color=#0000ff
size=2>网络服务</FONT></A><FONT size=2> | </FONT><FONT color=red
size=2><A target=_blank
href="http://www.ccilan.com/lxwm.htm">联系我们</A></FONT><FONT size=2> |
</FONT><FONT color=#0000ff size=2><A target=_blank
href="http://www.ccilan.com/qdxz.htm">驱动下载</A></FONT><FONT
size=2><FONT color=red> </FONT>|<A
href="http://www.ccilan.com/jszs.htm">技术支持</A>|<FONT color=red>
</FONT></FONT><A target=_blank
href="http://www.ccilan.com/guestbook.htm"><FONT color=#0000ff
size=2>给我留言</FONT></A><FONT color=#0000ff size=2>|</FONT>
<P align=center><FONT size=2>如有关于本站点的问题或建议,请向<A
href="mailto:zheng_wei@263.net">mailto:zheng_wei@263.net</A>发邮件。</FONT>
<P align=center><FONT size=2>hao hui wang lou you xian gong shi
<BR><A href="http://www.ccilan.com/zg.htm"><FONT color=#ffffff>zheng
wei</FONT></A></FONT></P>
<P align=center><FONT size=2>板权所有 深圳盛伟盟实业有限公司</FONT></P>
<P align=center> </P>
<P align=center> </P>
<P
align=center> </P></TD></TR></TBODY></TABLE></TD></TR><!--msnavigation--></TBODY></TABLE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -