MAC地址表及邻居信息查看;配置接口速率及双工模式;配置交换机管理IP
1:MAC地址表及邻居信息查看
1.1 问题
本例要求为修改计算机名并加入工作组:
1)查看交换机MAC地址表
2)查看CISCO设备邻居信息
1.2 方案
网络拓扑,如图-1所示。
图-1
1.3 步骤
实现此案例需要按照如下步骤进行。
步骤一:查看交换机sw1的mac地址表
1)在PC1上ping PC2:192.168.1.2:
copytextpop-up
- PC>ipconfig /all
- FastEthernet0 Connection:(default port)
- Connection-specific DNS Suffix..:
- Physical Address................: 00E0.B079.7815
- Link-local IPv6 Address.........: FE80::2E0:B0FF:FE79:7815
- IP Address......................: 192.168.1.1
- Subnet Mask.....................: 255.255.255.0
- Default Gateway.................: 0.0.0.0
- DNS Servers.....................: 0.0.0.0
- DHCP Servers....................: 0.0.0.0
- DHCPv6 Client DUID..............: 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-seconds:
- Minimum = 0ms, Maximum = 1ms, Average = 0ms
PC>ipconfig /all
FastEthernet0 Connection:(default port)
Connection-specific DNS Suffix..:
Physical Address................: 00E0.B079.7815
Link-local IPv6 Address.........: FE80::2E0:B0FF:FE79:7815
IP Address......................: 192.168.1.1
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 0.0.0.0
DNS Servers.....................: 0.0.0.0
DHCP Servers....................: 0.0.0.0
DHCPv6 Client DUID..............: 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-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
2)查看PC2的IP信息
copytextpop-up
- PC>ipconfig /all
- FastEthernet0 Connection:(default port)
- Connection-specific DNS Suffix..:
- Physical Address................: 0003.E49E.6445
- Link-local IPv6 Address.........: FE80::203:E4FF:FE9E:6445
- IP Address......................: 192.168.1.2
- Subnet Mask.....................: 255.255.255.0
- Default Gateway.................: 0.0.0.0
- DNS Servers.....................: 0.0.0.0
- DHCP Servers....................: 0.0.0.0
- DHCPv6 Client DUID..............: 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..:
Physical Address................: 0003.E49E.6445
Link-local IPv6 Address.........: FE80::203:E4FF:FE9E:6445
IP Address......................: 192.168.1.2
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 0.0.0.0
DNS Servers.....................: 0.0.0.0
DHCP Servers....................: 0.0.0.0
DHCPv6 Client DUID..............: 00-01-00-01-DB-A7-C6-5E-00-03-E4-9E-64-45
3)在查看交换机sw1的mac地址表
copytextpop-up
- Switch#hostname SW1
- SW1#show mac-address-table
- Mac Address Table
- -------------------------------------------
- Vlan Mac Address Type Ports
- ----------------------------
- 10003.e49e.6445 DYNAMIC Fa0/2
- 10010.1148.9309DYNAMIC Fa0/24
- 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的主机名
copytextpop-up
- Switch>enable
- SW2#configure terminal
- SW2(config)#hostname SW2
- SW2(config)#
Switch>enable
SW2#configure terminal
SW2(config)#hostname SW2
SW2(config)#
2)进入交换机SW1特权模式通过命令查看CISCO设备邻居信息:
copytextpop-up
- 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
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 步骤
实现此案例需要按照如下步骤进行
步骤一:配置交换机接口模式
copytextpop-up
- Switch>enable
- Switch#configure terminal
- Switch(config)#interface fastEthernet 0/24
- Switch(config-if)#duplex half
- Switch(config-if)#speed 10
- Switch#show interfaces fastEthernet 0/24
- FastEthernet0/24is up, line protocol is up (connected)
- Hardware is Lance, address is 00d0.5807.8301 (bia 00d0.5807.8301)
- BW 10000 Kbit, DLY 1000 usec,
- reliability 255/255, txload 1/255, rxload 1/255
- Encapsulation ARPA, loopback not set
- Keepalive set (10 sec)
- Half-duplex, 10Mb/s
- input flow-control is off, output flow-control is off
- ARP type: ARPA, ARP Timeout 04:00:00
- Last input 00:00:08, output 00:00:05, output hang never
- Last clearing of "show interface" counters never
- Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
- Queueing strategy: fifo
- Output queue :0/40 (size/max)
- 5minute input rate 0 bits/sec, 0 packets/sec
- 5minute output rate 0 bits/sec, 0 packets/sec
- 956packets input, 193351 bytes, 0 no buffer
- Received 956 broadcasts, 0 runts, 0 giants, 0 throttles
- 0input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
- 0watchdog, 0 multicast, 0 pause input
- 0input packets with dribble condition detected
- 2357packets output, 263570 bytes, 0 underruns
- 0output errors, 0 collisions, 10 interface resets
- 0babbles, 0 late collision, 0 deferred
- 0lost carrier, 0 no carrier
- 0output buffer failures, 0 output buffers swapped out
- Switch#
- 最长 = 0ms,平均 = 0ms
Switch>enable
Switch#configure terminal
Switch(config)#interface fastEthernet 0/24
Switch(config-if)#duplex half
Switch(config-if)#speed 10
Switch#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 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Half-duplex, 10Mb/s
input flow-control is off, output flow-control is off
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:08, output 00:00:05, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
956 packets input, 193351 bytes, 0 no buffer
Received 956 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 watchdog, 0 multicast, 0 pause input
0 input packets with dribble condition detected
2357 packets output, 263570 bytes, 0 underruns
0 output errors, 0 collisions, 10 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Switch#
最长 = 0ms,平均 = 0ms
3 案例3:配置交换机管理IP
3.1 问题
配置交换机管理IP为192.168.1.1 ,默认网关为192.168.1.100
3.2 方案
网络拓扑图如图-3
图-3
3.3 步骤
实现此案例需要按照如下步骤进行
步骤一:配置交换机接口模式
1)配置路由器R1的接口IP作为192.168.1.0网段的网关地址
copytextpop-up
- Router>enable
- Router#configure terminal
- Router(config)#interface fastEthernet 0/0
- Router(config-if)#ip address 192.168.1.100
- Router(config-if)#ip address 192.168.1.100 255.255.255.0
- Router(config-if)#no shutdown
Router>enable
Router#configure terminal
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 192.168.1.100
Router(config-if)#ip address 192.168.1.100 255.255.255.0
Router(config-if)#no shutdown
2)配置交换机管理IP和网关地址
copytextpop-up
- Switch(config)#interface vlan 1
- Switch(config-if)#ip address 192.168.1.1 255.255.255.0
- Switch(config-if)#no shutdown
- Switch(config-if)#exit
- Switch(config)#ip default-gateway 192.168.1.100
Switch(config)#interface vlan 1
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#ip default-gateway 192.168.1.100
3)用ping命令进行测试
copytextpop-up
- PC>ipconfig
- FastEthernet0 Connection:(default port)
- Link-local IPv6 Address.........: FE80::200:CFF:FEE4:90B0
- IP Address......................: 192.168.1.2
- Subnet Mask.....................: 255.255.255.0
- Default Gateway.................: 192.168.1.100
- PC>ping 192.168.1.1
- Pinging 192.168.1.1 with 32 bytes of data:
- Request timed out.
- Reply from 192.168.1.1: bytes=32 time=0ms TTL=255
- Reply from 192.168.1.1: bytes=32 time=3ms TTL=255
- Reply from 192.168.1.1: bytes=32 time=0ms TTL=255
- Ping statistics for 192.168.1.1:
- Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
- Approximate round trip times in milli-seconds:
- Minimum = 0ms, Maximum = 3ms, Average = 1ms
- PC>ping 192.168.1.100
- Pinging 192.168.1.100 with 32 bytes of data:
- Reply from 192.168.1.100: bytes=32 time=50ms TTL=255
- Reply from 192.168.1.100: bytes=32 time=0ms TTL=255
- Reply from 192.168.1.100: bytes=32 time=0ms TTL=255
- Reply from 192.168.1.100: bytes=32 time=0ms TTL=255
- Ping statistics for 192.168.1.100:
- Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
- Approximate round trip times in milli-seconds:
- Minimum = 0ms, Maximum = 50ms, Average = 12ms
PC>ipconfig
FastEthernet0 Connection:(default port)
Link-local IPv6 Address.........: FE80::200:CFF:FEE4:90B0
IP Address......................: 192.168.1.2
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 192.168.1.100
PC>ping 192.168.1.1
Pinging 192.168.1.1 with 32 bytes of data:
Request timed out.
Reply from 192.168.1.1: bytes=32 time=0ms TTL=255
Reply from 192.168.1.1: bytes=32 time=3ms TTL=255
Reply from 192.168.1.1: bytes=32 time=0ms TTL=255
Ping statistics for 192.168.1.1:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 3ms, Average = 1ms
PC>ping 192.168.1.100
Pinging 192.168.1.100 with 32 bytes of data:
Reply from 192.168.1.100: bytes=32 time=50ms TTL=255
Reply from 192.168.1.100: bytes=32 time=0ms TTL=255
Reply from 192.168.1.100: bytes=32 time=0ms TTL=255
Reply from 192.168.1.100: bytes=32 time=0ms TTL=255
Ping statistics for 192.168.1.100:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 50ms, Average = 12ms
MAC地址表及邻居信息查看;配置接口速率及双工模式;配置交换机管理IP相关推荐
- 华为交换机接口速率,双工模式配置,协商模式配置
undo negotiation auto #关闭自协商功能 范例: [S1]interface G 0/0/1 [S1-GigabitEthernet0/0/1]undo negotiatio ...
- [H3C]配置命令之MAC地址表项应用:封禁MAC地址
MAC(Media Access Control,媒体访问控制)地址表记录了 MAC 地址与接口的对应关系,以及接口所属的 VLAN 等信息.设备在转发报文时,根据报文的目的 MAC 地址查询 MAC ...
- 2022-09-07 网工进阶(三十)以太网交换安全-端口隔离、MAC地址表安全、端口安全、MAC地址漂移防止与检测、链路层安全、流量抑制、风暴控制、IPSG(IP Source Guard)
概述 目前网络中以太网技术的应用非常广泛.然而,各种网络攻击的存在,不仅造成了网络合法用户无法正常访问网络资源,而且对网络信息安全构成严重威胁,因此以太网交换的安全性越来越重要. 端口隔离 大型网络中 ...
- MAC地址表配置与绑定
MAC地址表分类 ---静态MAC地址表项由用户手工配置,表项不老化: ---黑洞MAC地址表项包括源黑洞MAC地址表项和目的黑洞MAC地址表项,用于丢弃含有特定源MAC地址或目的MAC地址的报文(例 ...
- 交换机的配置、工作原理以及管理MAC地址表
1.网桥和交换机 网桥: (1)主要基于软件 (2)每个网桥实现一个spanning-tree 交换机 (1)主要基于硬件(ASIC) -(2) 每个交换机可以支持多个spanning-tree sw ...
- 华为交换机MAC地址表以及命令配置
MAC地址表:记录了交换机学习到的其他设备的MAC地址与接口的对应关系,以及接口所属VLAN等信息 mac地址表的组成 一.三类mac地址表 静态表项:由用户手工配置,并下发到各接口板,表项不可老化, ...
- cisco packet tracer_交换机配置/mac地址表(图解version:8+)
文章目录 添加交换机(可选添加一台pc) console线链接 Topological graph: terminal pc更名 mac地址表 查看mac地址表 设置静态mac 添加交换机(可选添加一 ...
- 中兴网络设备交换机路由器查看MAC地址表项命令方法
描述:中兴网络设备交换机路由器查看MAC地址表项命令方法 命令: show mac
- 交换机工作原理、MAC地址表、路由器工作原理详解
一:MAC地址表详解 说到MAC地址表,就不得不说一下交换机的工作原理了,因为交换机是根据MAC地址表转发数据帧的.在交换机中有一张记录着局域网主机MAC地址与交换机接口的对应关系的表,交换机就是根据 ...
最新文章
- Linux进程休眠和唤醒
- Java8-Stream 概括
- Android 腾讯入门教程( 智能手表UI设计 和 MVC模式 )
- 黄猫被汽车撞死 花猫雨夜苦守
- 知乎:什么时候你是产品经理,而不是产品助理?
- MCPlayerKit 0.0.6 Release
- SpringMVC源码解析与思考
- 自编码器(Auto-encoder) (下)它的应用
- C/C++语法知识:typedef struct 用法详解
- 设计模式--单例模式--Java实现
- ContestHunter暑假欢乐赛 SRM 03
- python计算2的20次方_Python学习二运算符
- java----数组
- (转)Rust:Ownership,Reference和Lifetime详解
- 企业开票信息税号查询API接口服务
- [515]歌曲识别-dejavu-python
- 颤抖吧,理科生们,让你们看看文科帝!
- 多米诺骨牌java_通过递归和回溯找到所有可能的多米诺骨牌链
- 使用PMW3901和VL53L1X 实现室内定点悬停
- python画抛物线_python画抛物线
热门文章
- python科学计算数据可视化模块-seaborn
- 二手电商迎来“新风口”?
- 使用xgboost以及lgbm
- PC端“王者荣耀”页面,【姐妹情缘 今生再续~~~~】
- 网页图标favicon.ico介绍及使用
- 关于Excel操作编写的一个软件设计构思案例[连载] --如何把处理好后的数据导出Excel文件中(含背景\字体颜色设置)
- HotRing——热点感知的哈希冲突解决方案
- 亏损54亿“着急”上市,蕉下能否赶上新消费的末班车?
- 固纬GPM-8212使用时电流和功率显示为0解决办法
- 计算机配件选购实训报告,零件测绘实训总结范文