1 description設(shè)置以太網(wǎng)口描述
description ethernet-description
no description
【參數(shù)說(shuō)明】ethernet-description為路由器以太網(wǎng)接口的描述字符串。
【缺省情況】缺省描述為Quidway RSeries Router, ethernet interface
【命令模式】以太網(wǎng)接口配置模式
【使用指南】description設(shè)置以太網(wǎng)口描述,no description恢復(fù)以太網(wǎng)口缺省描述。
【舉例】設(shè)置以太網(wǎng)接口描述為QuidwayR2501 ethernet interface
Quidway(config-if-Ethernet0)#description QuidwayR2501 ethernet interface
【相關(guān)命令】 show interface
2 duplex 設(shè)置以太網(wǎng)口工作方式是半雙工或全雙工模式
[ no ] duplex
【缺省情況】缺省情況下為半雙工模式
【命令模式】以太網(wǎng)接口配置模式
【使用指南】duplex 設(shè)置以太網(wǎng)口工作于全雙工模式,no duplex 恢復(fù)以太網(wǎng)口缺省工作模式。當(dāng)路由器以太網(wǎng)口與共享式Hub相連時(shí),應(yīng)工作于半雙工方式,當(dāng)路由器以太網(wǎng)口與交換式Lan Switch相連,而且Lan Switch設(shè)置了全雙工方式時(shí),應(yīng)工作于全雙工方式。
【舉例】設(shè)置以太網(wǎng)接口描述為全雙工模式 Quidway(config-if-Ethernet0)#duplex
【相關(guān)命令】show interface
3 loopback 允許或禁止以太網(wǎng)口對(duì)內(nèi)自環(huán)和對(duì)外回波
[ no ] loopback
【缺省情況】禁止以太網(wǎng)口對(duì)內(nèi)自環(huán)和對(duì)外回波。
【命令模式】以太網(wǎng)口接口配置模式
【使用指南】只有在進(jìn)行某些特殊功能測(cè)試時(shí),才將以太網(wǎng)口設(shè)為對(duì)內(nèi)自環(huán)和對(duì)外回波。
【舉例】允許以太網(wǎng)口對(duì)內(nèi)自環(huán)和對(duì)外回波。
Quidway(config-if-Ethernet0)#loopback
4 mtu 設(shè)置以太網(wǎng)口最大傳輸單元
mtu ethernet-mtu no mtu
【參數(shù)說(shuō)明】 ethernet-mtu為以太網(wǎng)口最大傳輸單元,范圍0~1500
【缺省情況】以太網(wǎng)口缺省的最大傳輸單元為:
采用Ethernet_II幀格式為1500
采用Ethernet_SNAP幀格式為1492
【命令模式】以太網(wǎng)接口配置模式
【使用指南】以太網(wǎng)接口的最大傳輸單元只影響IP在以太網(wǎng)接口的組包和拆包,采用Ethernet_II幀格式時(shí)最大傳輸單元可達(dá)到1500,采用Ethernet_SNAP幀格式時(shí)最大傳輸單元可達(dá)到1492。
用no mtu命令恢復(fù)缺省的最大傳輸單元。
【舉例】設(shè)置以太網(wǎng)口的最大傳輸單元為1492
Quidway(config-if-Ethernet0)#mtu 1492
【相關(guān)命令】send-frame-type,show interface
5 send-frame-type
設(shè)置以太網(wǎng)口IP報(bào)文發(fā)送幀格式。
send-frame-type { Ethernet_II | Ethernet_SNAP }
no send-frame-type
【缺省情況】以太網(wǎng)口缺省的IP報(bào)文發(fā)送幀格式為Ethernet_II。
【命令模式】以太網(wǎng)接口配置模式
【使用指南】Quidway(R) 系列路由器的以太網(wǎng)口支持四種幀格式:
Ethernet_II(ARPA)
Ethernet_SNAP
802.2
802.3
其中Ethernet_II和Ethernet_SNAP用于支持IP協(xié)議,802.2和802.3 用于支持IPX協(xié)議。以太網(wǎng)口對(duì)接收到的幀能夠自動(dòng)識(shí)別其格式,因此可以同時(shí)接收多種格式的幀,但在同一時(shí)間只能發(fā)送一種幀格式。
no send-frame-type 命令恢復(fù)缺省的IP報(bào)文發(fā)送幀格式。
【舉例】設(shè)置以太網(wǎng)口發(fā)送幀格式為Ethernet_SNAP
Quidway(config-if-Ethernet0)#send-frame-type Ethernet_SNAP
【相關(guān)命令】mtu,show interface