MAC地址表及邻居信息查看;配置接口速率及双工模式;配置交换机管理IP

更新时间:2023-05-17 06:18:21 阅读: 评论:0

MAC地址表及邻居信息查看;配置接⼝速率及双⼯模式;配置
交换机管理IP
1:MAC地址表及邻居信息查看
1.1 问题
本例要求为修改计算机名并加⼊⼯作组:
1)查看交换机MAC地址表
2)查看CISCO设备邻居信息
1.2 ⽅案
⽹络拓扑,如图-1所⽰。
图-1
1.3 步骤
实现此案例需要按照如下步骤进⾏。
步骤⼀:查看交换机sw1的mac地址表
electronic1)在PC1上ping PC2:192.168.1.2:
1. PC>ipconfig /all
2. FastEthernet0 Connection:(default port)
3. Connection-specific DNS Suffix..:
4. .:00E0.B079.7815
5. Link-local .: FE80::2E0:B0FF:FE79:7815
6. :192.168.1.1
7. :255.255.255.0
8. :0.0.0.0
9. :0.0.0.0
10. :0.0.0.0
11. DHCPv6 :00-01-00-01-E3-E0-53-04-00-E0-B0-79-78-15
12.
13. PC>ping 192.168.1.2
14. Pinging 192.168.1.2with32 bytes of data:
15. Reply from 192.168.1.2: bytes=32 time=1ms TTL=128
16. Reply from 192.168.1.2: bytes=32 time=0ms TTL=128
17. Reply from 192.168.1.2: bytes=32 time=1ms TTL=128
18. Reply from 192.168.1.2: bytes=32 time=0ms TTL=128
19. Ping statistics for192.168.1.2:
20. Packets: Sent =4, Received =4, Lost =0(0% loss),
21. Approximate round trip times in milli-conds:
22. Minimum = 0ms, Maximum = 1ms, Average = 0ms
PC>ipconfig /all
FastEthernet0 Connection:(default port)
Connection-specific DNS Suffix..:
.: 00E0.B079.7815
Link-local .: FE80::2E0:B0FF:FE79:7815
: 192.168.1.1
: 255.255.255.0
: 0.0.0.0
: 0.0.0.0
: 0.0.0.0
DHCPv6 : 00-01-00-01-E3-E0-53-04-00-E0-B0-79-78-15
PC>ping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data:
Reply from 192.168.1.2: bytes=32 time=1ms TTL=128
Reply from 192.168.1.2: bytes=32 time=0ms TTL=128
Reply from 192.168.1.2: bytes=32 time=1ms TTL=128
Reply from 192.168.1.2: bytes=32 time=0ms TTL=128
Ping statistics for 192.168.1.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-conds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
2)查看PC2的IP信息
1. PC>ipconfig /all
2. FastEthernet0 Connection:(default port)
3. Connection-specific DNS Suffix..:
4. .:0003.E49E.6445
5. Link-local .: FE80::203:E4FF:FE9E:6445
6. :192.168.1.2
7. :255.255.255.0
8. :0.0.0.0
9. :0.0.0.0
10. :0.0.0.0
11. DHCPv6 :00-01-00-01-DB-A7-C6-5E-00-03-E4-9E-64-45 PC>ipconfig /all
FastEthernet0 Connection:(default port)
Connection-specific DNS Suffix..:汽车如何漂移
.: 0003.E49E.6445
Link-local .: FE80::203:E4FF:FE9E:6445
: 192.168.1.2
: 255.255.255.0
: 0.0.0.0
: 0.0.0.0honest的反义词
: 0.0.0.0
DHCPv6 : 00-01-00-01-DB-A7-C6-5E-00-03-E4-9E-64-45
3)在查看交换机sw1的mac地址表
gestetner1. Switch#hostname SW1
2. SW1#show mac-address-table
3. Mac Address Table
4. -------------------------------------------
5. Vlan Mac Address Type Ports
6. ----------------------------
7. 10003.e49e.6445 DYNAMIC Fa0/2
8. 10010.1148.9309DYNAMIC Fa0/24
9. 100e0.b079.7815 DYNAMIC Fa0/1
Switch#hostname SW1
SW1#show mac-address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
1 0003.e49e.6445 DYNAMIC Fa0/2
1 0010.1148.9309 DYNAMIC Fa0/24
1 00e0.b079.7815 DYNAMIC Fa0/1
步骤⼆:查看交换机sw1邻居信息
1)更改交换机sw2的主机名
1. Switch>enable
2. SW2#configure terminal
3. SW2(config)#hostname SW2
4. SW2(config)#
Switch>enable
SW2#configure terminal
SW2(config)#hostname SW2
SW2(config)#
2)进⼊交换机SW1特权模式通过命令查看CISCO设备邻居信息:
1. Switch#show cdp neighbors
2. Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
3. S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
4. Device ID Local Intrfce Holdtme Capability Platform Port ID
5. SW2 Fas 0/24174 S 2950 Fas 0/9
Switch#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID    Local Intrfce  Holdtme  Capability  Platform    Port ID
SW2            Fas 0/24        174        S          2950      Fas 0/9
2:配置接⼝速率及双⼯模式
2.1 问题
配置交换机接⼝双⼯模式为半双⼯,端⼝速率为10M并查看
2.2 ⽅案
⽹络拓扑图如图-2
图-2
2.3 步骤
实现此案例需要按照如下步骤进⾏
步骤⼀:配置交换机接⼝模式
1. Switch>enable
2. Switch#configure terminal
3. Switch(config)#interface fastEthernet 0/24
4. Switch(config-if)#duplex half
5. Switch(config-if)#speed 10
6. Switch#show interfaces fastEthernet 0/24
7. FastEthernet0/24is up, line protocol is up(connected)
8. Hardware is Lance, address is 00d0.5807.8301(bia 00d0.5807.8301)
9. BW 10000 Kbit, DLY 1000 uc,
10. reliability 255/255, txload 1/255, rxload 1/255
11. Encapsulation ARPA, loopback not t
12. Keepalive t(10 c)
13. Half-duplex, 10Mb/s
14. input flow-control is off, output flow-control is off
15. ARP type: ARPA, ARP Timeout 04:00:00
16. Last input 00:00:08, output 00:00:05, output hang never
液体药品的取用
17. Last clearing of "show interface" counters never
18. Input queue:0/75/0/0(size/max/drops/flushes); Total output drops:0
19. Queueing strategy: fifo
20. Output queue :0/40(size/max)
21. 5minute input rate 0 bits/c,0 packets/c
22. 5minute output rate 0 bits/c,0 packets/c
23. 956packets input,193351 bytes,0 no buffer
24. Received 956 broadcasts,0 runts,0 giants,0 throttles
25. 0input errors,0 CRC,0 frame,0 overrun,0 ignored,0 abort
26. 0watchdog,0 multicast,0 pau input
27. 0input packets with dribble condition detected
28. 2357packets output,263570 bytes,0 underruns
29. 0output errors,0 collisions,10interface rets
30. 0babbles,0 late collision,0 deferred
altimeter31. 0lost carrier,0 no carrier
32. 0output buffer failures,0 output buffers swapped out
bargaining33. Switch#
34. 最长 = 0ms,平均 = 0ms
Switch>enable
Switch#configure terminal
Switch(config)#interface fastEthernet 0/24
日语等级考试Switch(config-if)#duplex half
Switch(config-if)#speed 10
rugoSwitch#show interfaces fastEthernet 0/24
FastEthernet0/24 is up, line protocol is up (connected)
Hardware is Lance, address is 00d0.5807.8301 (bia 00d0.5807.8301)
BW 10000 Kbit, DLY 1000 uc,
丧失是什么意思reliability 255/255, txload 1/255, rxload 1/255

本文发布于:2023-05-17 06:18:21,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/78/664080.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:查看   交换机   邻居
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图