实验十七:交换机端口基本配置

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

实验十七:交换机端口基本配置

一、理论基础

1、端口的速率

华为Quidway S系列交换机支持端口速率的手工配置和自适应,缺省情况下所有端口都是自适应状态,通过相互交换自协商报文进行速率匹配。当链路两端一端为自适应,另一端为固定速率时,我们建议修改两端的端口速率,保持端口速率的一致。如果两端的速率不一致时,很容易出现通信故障,应当尽量避免。

可以使用speed命令对以太网端口的速率进行设置,当设置端口速率为自协商状态时,端口的速率在双方自动协商下而定。

需要注意的是:百兆以太网电端口支持10Mbit/s、100Mbit/s或自协商工作速率,可以根据需要对其设置。

缺省情况下,以太网端口的速率处于auto(自协商)状态。

2、端口模式

目前新的交换机端口既支持全双工工作模式,也支持半双工工作模式。可以手工配置,也可以自动协商来决定端口到底工作在哪种模式下。

Auto:表示端口工作在自协商模式。

Full:表示端口工作在全双工模式。

Half:表示端口工作在半双工模式。

当希望端口在发送数据包的同时可以接收数据包,可以将端口设置为全双工属性;当希望端口同一时刻只能发送数据包或接收数据包时,可以将端口设置为半双工属性;当设置端口为自协商状态时,端口的双工状态由本端口和对端端口自动协商而定。

需要注意的是:百兆以太网电端口支持全双工、半双工或自协商工作模式,可以根据需要对其设置。

缺省情况下,端口的双工状态为auto(自协商)状态。

二、实验案例

基本端口的配置

1、实验拓扑图:

2、配置说明:

交换机A加地址:192.168.10.1

交换机B加地址:192.168.10.2

3、具体配置:

方法一:(speed)

交换机B的配置:

[SwitchB]int vlan 1

[SwitchB-Vlan-interface1]ip address 192.168.10.2 255.255.255.0

交换机A的配置:

[SwitchA]int vlan 1

[SwitchA-Vlan-interface1]ip address 192.168.10.1 255.255.255.0

[SwitchA-Vlan-interface1]quit

[SwitchA]ping 192.168.10.2

PING 192.168.10.2: 56 data bytes, press CTRL_C to break

Reply from 192.168.10.2: bytes=56 Sequence=1 ttl=255 time = 50 ms

Reply from 192.168.10.2: bytes=56 Sequence=2 ttl=255 time = 20 ms

Reply from 192.168.10.2: bytes=56 Sequence=3 ttl=255 time = 20 ms

Reply from 192.168.10.2: bytes=56 Sequence=4 ttl=255 time = 20 ms

Reply from 192.168.10.2: bytes=56 Sequence=5 ttl=255 time = 30 ms

--- 192.168.10.2 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 20/28/50 ms

[SwitchA]dis int e0/1

Ethernet0/1 current state : UP

IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 000f-e206-f643 The Maximum Transmit Unit is 1500

Media type is twisted pair, loopback not set

Port hardware type is 100_BASE_TX

100Mbps-speed mode, full-duplex mode

Link speed type is autonegotiation, link duplex type is autonegotiation

Flow-control is not enabled

Port-flow-constrain has not been configured completely

The Maximum Frame Length is 1518

Broadcast MAX-ratio: 100%

PVID: 1

Mdi type: normal

Port link-type: access

Tagged VLAN ID : none

Untagged VLAN ID : 1

Last 300 seconds input: 0 packets/sec 17 bytes/sec

Last 300 seconds output: 0 packets/sec 19 bytes/sec

Input(total): 85 packets, 8722 bytes

47 broadcasts, 32 multicasts

Input(normal): 85 packets, - bytes

47 broadcasts, 32 multicasts

Input: 0 input errors, 0 runts, 0 giants, - throttles, 0 CRC

相关文档
最新文档