⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 第二章 接口配置命令.htm

📁 华为路由器配置手册是一本书
💻 HTM
📖 第 1 页 / 共 4 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0033)http://www.ccilan.com/qdxz091.htm -->
<HTML><HEAD><TITLE>第二章&nbsp; 接口配置命令</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 5.50.4134.100" name=GENERATOR>
<META content=FrontPage.Editor.Document name=ProgId>
<META content=tb name="Microsoft Border"></HEAD>
<BODY><!--msnavigation-->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD>
      <P><IMG height=57 src="第二章 接口配置命令.files/sheng_.jpg" width=284 align=left 
      border=0><IMG height=60 src="第二章 接口配置命令.files/swm.gif" width=484 
      align=left border=0>&nbsp;&nbsp;&nbsp; 
  </P></TD></TR><!--msnavigation--></TBODY></TABLE><!--msnavigation-->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR><!--msnavigation-->
    <TD vAlign=top>
      <H2 align=center><FONT color=#003333>第二章&nbsp; 接口配置命令</FONT></H2>
      <H3><FONT color=#003333>2.1 以太网口配置命令</FONT></H3>
      <P><FONT color=#003333>以太网口配置命令包括:</FONT> 
      <UL type=disc>
        <LI><FONT color=#003333>description</FONT> 
        <LI><FONT color=#003333>mtu</FONT> 
        <LI><FONT color=#003333>send-frame-type</FONT> </LI></UL>
      <H4><FONT color=#003333><A name="2.1.1 description"><BIG>2.1.1 
      description</BIG></A></FONT></H4>
      <P><FONT color=#003333>设置以太网口描述。</FONT></P>
      <P><FONT color=#003333><B>description</B> 
      <I>ethernet-description</I></FONT></P>
      <P><FONT color=#003333><B>no</B> <B>description</B></FONT></P>
      <P><FONT color=#003333 size=3>【参数说明】</FONT></P>
      <P><FONT 
      color=#003333><I>ethernet-description</I>为路由器以太网接口的描述字符串。</FONT></P>
      <P><FONT color=#003333 size=3>【缺省情况】</FONT></P>
      <P><FONT color=#003333>缺省描述为Quidway R<I>Series</I> Router, ethernet 
      interface</FONT></P>
      <P><FONT color=#003333 size=3>【命令模式】</FONT></P>
      <P><FONT color=#003333>以太网接口配置模式</FONT></P>
      <P><FONT color=#003333>【使用指南】</FONT></P>
      <P><FONT color=#003333><B>description</B>设置以太网口描述,<B>no 
      description</B>恢复以太网口缺省描述。</FONT></P>
      <P><FONT color=#003333 size=3>【举例】</FONT></P>
      <P><FONT color=#003333>设置以太网接口描述为QuidwayR2501 ethernet 
      interface。</FONT></P>
      <P><FONT color=#003333>Quidway(config-if-Ethernet0)#description 
      QuidwayR2501 ethernet interface</FONT></P>
      <P><FONT color=#003333 size=3>【相关命令】</FONT></P>
      <P><FONT color=#003333><B>show interface</B></FONT></P>
      <H4><FONT color=#003333><A name="2.1.2 duplex"><BIG>2.1.2 
      duplex</BIG></A></FONT></H4>
      <P><FONT color=#003333>设置以太网口工作方式是半双工或全双工模式。</FONT></P>
      <P><FONT color=#003333>[<B> no </B>]<B> duplex</B></FONT></P>
      <P><FONT color=#003333 size=3>【缺省情况】</FONT></P>
      <P><FONT color=#003333>缺省情况下为半双工模式</FONT></P>
      <P><FONT color=#003333 size=3>【命令模式】</FONT></P>
      <P><FONT color=#003333>以太网接口配置模式</FONT></P>
      <P><FONT color=#003333 size=3>【使用指南】</FONT></P>
      <P><FONT color=#003333><B>duplex</B> 设置以太网口工作于全双工模式,<B>no duplex</B> 
      恢复以太网口缺省工作模式。当路由器以太网口与共享式Hub相连时,应工作于半双工方式,当路由器以太网口与交换式Lan Switch相连,而且Lan 
      Switch设置了全双工方式时,应工作于全双工方式。</FONT></P>
      <P><FONT color=#003333 size=3>【举例】</FONT></P>
      <P><FONT color=#003333>设置以太网接口描述为全双工模式。</FONT></P>
      <P><FONT color=#003333>Quidway(config-if-Ethernet0)#duplex</FONT></P>
      <P><FONT color=#003333 size=3>【相关命令】</FONT></P>
      <P><FONT color=#003333><B>show interface</B></FONT></P>
      <H4><FONT color=#003333><A name="2.1.3 loopback"><BIG>2.1.3 
      loopback</BIG></A></FONT></H4>
      <P><FONT color=#003333>允许或禁止以太网口对内自环和对外回波。</FONT></P>
      <P><FONT color=#003333>[ <B>no</B> ] <B>loopback</B></FONT></P>
      <P><FONT color=#003333 size=3>【缺省情况】</FONT></P>
      <P><FONT color=#003333>禁止以太网口对内自环和对外回波。</FONT></P>
      <P><FONT color=#003333 size=3>【命令模式】</FONT></P>
      <P><FONT color=#003333>以太网口接口配置模式</FONT></P>
      <P><FONT color=#003333 size=3>【使用指南】</FONT></P>
      <P><FONT color=#003333>只有在进行某些特殊功能测试时,才将以太网口设为对内自环和对外回波。</FONT></P>
      <P><FONT color=#003333 size=3>【举例】</FONT></P>
      <P><FONT color=#003333>允许以太网口对内自环和对外回波。</FONT></P>
      <P><FONT color=#003333>Quidway(config-if-Ethernet0)#loopback</FONT></P>
      <H4><FONT color=#003333><A name="2.1.4 mtu"><BIG>2.1.4 
      mtu</BIG></A></FONT></H4>
      <P><FONT color=#003333>设置以太网口最大传输单元。</FONT></P>
      <P><FONT color=#003333>mtu ethernet-mtu</FONT></P>
      <P><FONT color=#003333><B>no</B> <B>mtu</B></FONT></P>
      <P><FONT color=#003333 size=3>【参数说明】</FONT></P>
      <P><FONT color=#003333><I>ethernet-mtu</I>为以太网口最大传输单元,范围0~1500。</FONT></P>
      <P><FONT color=#003333 size=3>【缺省情况】</FONT></P>
      <P><FONT color=#003333>以太网口缺省的最大传输单元为:</FONT> 
      <UL type=disc>
        <LI><FONT color=#003333>采用Ethernet_II帧格式为1500</FONT> 
        <LI><FONT color=#003333>采用Ethernet_SNAP帧格式为1492</FONT> </LI></UL>
      <P><FONT color=#003333 size=3>【命令模式】</FONT></P>
      <P><FONT color=#003333>以太网接口配置模式</FONT></P>
      <P><FONT color=#003333 size=3>【使用指南】</FONT></P>
      <P><FONT 
      color=#003333>以太网接口的最大传输单元只影响IP在以太网接口的组包和拆包,采用Ethernet_II帧格式时最大传输单元可达到1500,采用Ethernet_SNAP帧格式时最大传输单元可达到1492。</FONT></P>
      <P><FONT color=#003333>用<B>no mtu</B>命令恢复缺省的最大传输单元。</FONT></P>
      <P><FONT color=#003333 size=3>【举例】</FONT></P>
      <P><FONT color=#003333>设置以太网口的最大传输单元为1492。</FONT></P>
      <P><FONT color=#003333>Quidway(config-if-Ethernet0)#mtu 1492</FONT></P>
      <P><FONT color=#003333 size=3>【相关命令】</FONT></P>
      <P><FONT color=#003333><B>send-frame-type</B>,<B>show 
      interface</B></FONT></P>
      <H4><FONT color=#003333><A name="2.1.5 send-frame-type">2.1.5 
      send-frame-type</A></FONT></H4>
      <P><FONT color=#003333>设置以太网口IP报文发送帧格式。</FONT></P>
      <P><FONT color=#003333><B>send-frame-type</B> { <B>Ethernet_II</B> | 
      <B>Ethernet_SNAP</B> }</FONT></P>
      <P><FONT color=#003333><B>no</B> <B>send-frame-type</B></FONT></P>
      <P><FONT color=#003333 size=3>【缺省情况】</FONT></P>
      <P><FONT color=#003333>以太网口缺省的IP报文发送帧格式为<B>Ethernet_II</B>。</FONT></P>
      <P><FONT color=#003333 size=3>【命令模式】</FONT></P>
      <P><FONT color=#003333>以太网接口配置模式</FONT></P>
      <P><FONT color=#003333 size=3>【使用指南】</FONT></P>
      <P><FONT color=#003333>Quidway<SUP>(R)</SUP> 系列路由器的以太网口支持四种帧格式:</FONT> 
      <UL type=disc>
        <LI><FONT color=#003333>Ethernet_II(ARPA)</FONT> 
        <LI><FONT color=#003333>Ethernet_SNAP</FONT> 
        <LI><FONT color=#003333>802.2</FONT> 
        <LI><FONT color=#003333>802.3</FONT> </LI></UL>
      <P><FONT color=#003333>其中Ethernet_II和Ethernet_SNAP用于支持IP协议,802.2和802.3 
      用于支持IPX协议。以太网口对接收到的帧能够自动识别其格式,因此可以同时接收多种格式的帧,但在同一时间只能发送一种帧格式。</FONT></P>
      <P><FONT color=#003333><B>no send-frame-type</B> 
      命令恢复缺省的IP报文发送帧格式。</FONT></P>
      <P><FONT color=#003333 size=3>【举例】</FONT></P>
      <P><FONT color=#003333>设置以太网口发送帧格式为Ethernet_SNAP。</FONT></P>
      <P><FONT color=#003333>Quidway(config-if-Ethernet0)#send-frame-type 
      Ethernet_SNAP</FONT></P>
      <P><FONT color=#003333 size=3>【相关命令】</FONT></P>
      <P><FONT color=#003333><B>mtu</B>,<B>show interface</B></FONT></P>
      <H3><FONT color=#003333>2.2 串口配置命令</FONT></H3>
      <P><FONT color=#003333>串口配置命令包括:</FONT> 
      <UL type=disc>
        <LI><FONT color=#003333>async mode</FONT> 
        <LI><FONT color=#003333>baudrate</FONT> 
        <LI><FONT color=#003333>clock-select</FONT> 
        <LI><FONT color=#003333>detect dsr-dtr</FONT> 
        <LI><FONT color=#003333>enable</FONT> 
        <LI><FONT color=#003333>flowcontrol</FONT> 
        <LI><FONT color=#003333>invert transmit-clock</FONT> 
        <LI><FONT color=#003333>loopback</FONT> 
        <LI><FONT color=#003333>mtu</FONT> 
        <LI><FONT color=#003333>physical-layer</FONT> </LI></UL>
      <H4><FONT color=#003333><BIG><A name="2.2.1 async mode">2.2.1 async 
      mode</A></BIG></FONT></H4>
      <P><FONT color=#003333>设置异步串口的建立链路方式。</FONT></P>
      <P><FONT color=#003333><B>async mode</B> { <B>dedicate</B> | 
      <B>interactive</B> }</FONT></P>
      <P><FONT color=#003333 size=3>【缺省情况】</FONT></P>
      <P><FONT color=#003333>异步串口的缺省建立链路方式为直接方式(<B>dedicate</B>)。</FONT></P>
      <P><FONT color=#003333 size=3>【命令模式】</FONT></P>
      <P><FONT color=#003333>串口配置模式</FONT></P>
      <P><FONT color=#003333 size=3>【使用指南】</FONT></P>
      <P><FONT color=#003333>异步串口可以有两种建立链路方式:</FONT> 
      <UL type=disc>
        <LI><FONT color=#003333>直接方式(Dedicate):拨号成功之后,直接采用链路层协议配置参数建立链路。</FONT> 
        <LI><FONT 
        color=#003333>交互方式(Interactive):拨号成功之后,主叫方向对端发送配置命令(与用户从远端手工键入配置命令效果相同),设置对端的链路层协议工作参数,然后建立链路。</FONT> 
        </LI></UL>
      <P><FONT 
      color=#003333>比较常用的是直接方式,但在与同样支持交互方式的路由器(如Cisco路由器等)互连时,采用交互方式显得更为灵活。</FONT></P>
      <P><FONT color=#003333>交互方式一般与外接Modem以及Modem Script共同使用。</FONT></P>
      <P><FONT color=#003333 size=3>【举例】</FONT></P>
      <P><FONT color=#003333>设置异步串口建立链路采用交互方式。</FONT></P>
      <P><FONT color=#003333>Quidway(config-if-Serial0)#async mode 
      interactive</FONT></P>
      <P><FONT color=#003333 size=3>【相关命令】</FONT></P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -