华为华为nova2s手机壳多少钱 mip

Using SNMP to Find a Port Number from a MAC Address on a Catalyst Switch - Cisco
Using SNMP to Find a Port Number from a MAC Address on a Catalyst Switch
Translations
Available Languages
Download Options
View with Adobe Reader on a variety of devices
Document ID:44800
This document describes how to use Simple Network Management Protocol (SNMP) to obtain the port number on a Cisco Catalyst switch from which you know the MAC address.
Readers of this document should have knowledge of these topics:
How to get VLANs from a Catalyst switch with use of SNMP
How to use community string indexing with SNMP
General use of the SNMP get command and walk command
This document applies to Catalyst switches that run regular Catalyst OS (CatOS) or Cisco IOS& Software. The software supports the
The information in this document is based on these software and hardware versions:
Catalyst 3524XL that runs Cisco IOS Software Release 12.0(5)WC5a
Net-SNMP version 5.0.6
Note:&To obtain this software, refer to
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
For more information on document conventions, refer to the .
For more information on how to query the content-addressable memory (CAM) table, VLANs, and all related MIBs, such as the CISCO-VTP-MIB and the BRIDGE-MIB, refer to the
section of the document .
.1.3.6.1.2.1.17.4.3.1.1
dot1dTpFdbAddress OBJECT-TYPE
-- FROM BRIDGE-MIB
-- TEXTUAL CONVENTION MacAddress
OCTET STRING (6)
MAX-ACCESS
DESCRIPTION
&A unicast MAC address for which the bridge has forwarding
and/or filtering information.&
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) dot1dBridge(17) dot1dTp(4)
dot1dTpFdbTable(3) dot1dTpFdbEntry(1) 1 }
.1.3.6.1.2.1.17.4.3.1.2
dot1dTpFdbPort OBJECT-TYPE
-- FROM BRIDGE-MIB
MAX-ACCESS
DESCRIPTION
&Either the value &0&, or the port number of the port on which
a frame having a source
address equal to the value of the corresponding instance of
dot1dTpFdbAddress has been seen.
A value of &0& indicates that the port number has not been learned,
but that the bridge does
have some forwarding/filtering information about this address (that is,
in the StaticTable).
Implementors are encouraged to assign the port value to this
object whenever it is
learned, even for addresses for which the corresponding value of
dot1dTpFdbStatus is not learned(3).&
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) dot1dBridge(17) dot1dTp(4)
dot1dTpFdbTable(3) dot1dTpFdbEntry(1) 2 }
.1.3.6.1.2.1.2.2.1.1
ifIndex OBJECT-TYPE
InterfaceIndex
MAX-ACCESS
DESCRIPTION
&A unique value, greater than zero, for each interface.
is recommended that values are assigned contiguously
starting from 1.
The value for each interface sub-layer
must remain constant at least from one re-initialization of
the entity's network management system to the next re-
initialization.&
::= { ifEntry 1 }
.1.3.6.1.2.1.17.1.4.1.2
dot1dBasePortIfIndex OBJECT-TYPE
DESCRIPTION
&The value of the instance of the ifIndex object,
defined in MIB-II, for the interface corresponding
to this port.&
::= { dot1dBasePortEntry 2 }
.1.3.6.1.2.1.31.1.1.1.1
ifName OBJECT-TYPE
DisplayString
MAX-ACCESS
DESCRIPTION
&The textual name of the interface.
The value of this
object should be the name of the interface as assigned by
the local device and should be suitable for use in commands
entered at the device's `console'.
This might be a text
name, such as `le0' or a simple port number, such as `1',
depending on the interface naming syntax of the device.
several entries in the ifTable together represent a single
interface as named by the device, then each will have the
same value of ifName.
Note that for an agent which responds
to SNMP queries concerning an interface on some other
(proxied) device, then the value of ifName for such an
interface is the proxied device's local name for it.
If there is no local name, or this object is otherwise not
applicable, then this object contains a zero-length string.&
::= { ifXEntry 1 }
Complete the steps in this section in order to use SNMP to get the port number on which a MAC address has been learned. Consider that the port number is in VLAN1.
Note:&In the commands in this section:
is the read community string.
is the VLAN 1 part of the read community string.
is the device host name.
Note:&You can also use the IP address for this host name.
section uses the values that appear in
in the command output.
Retrieve the VLANs. Use the snmpwalk command on the vtpVlanState object (.1.3.6.1.4.1.9.9.46.1.3.1.1.2 ):
%snmpwalk -c public crumpy .1.3.6.1.4.1.9.9.46.1.3.1.1.2
CISCO-VTP-MIB::vtpVlanState.1.1 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.3 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.7 = INTEGER: operational(1)
CISCO-VTP-MIB::vtpVlanState.1.10 = INTEGER: operational(1)
Note:&This command uses . The command also uses , which has OID .1.3.6.1.4.1.9.9.46.1.3.1.1.2. If you have loaded the MIBs to your network management system (NMS), you can use the object name instead of the OID. Issue this command instead:
%snmpwalk -c public@1 crumpy vtpVlanState
Note:&You can also use the object names in steps 2 through 6.
Issue this command in order to obtain the MAC address table by considering that the port belongs to VLAN1:
snmpwalk -c public@1 crumpy .1.3.6.1.2.1.17.4.3.1.1
17.4.3.1.1.0.0.12.7.172.8 =
Hex: 00 00 0C 07 AC 08
17.4.3.1.1.0.1.2.27.80.145 =
Hex: 00 01 02 1B 50 91
17.4.3.1.1.0.1.3.72.77.90 =
Hex: 00 01 03 48 4D 5A
17.4.3.1.1.0.1.3.72.221.191 =
Hex: 00 01 03 48 DD BF
Note:&Provide the appropriate VLAN number after the community string. In this example, it is VLAN1. The command lists all MAC addresses that have been learned on all ports that belong to VLAN 1.
Issue this command to determine the bridge port number for VLAN 1:
snmpwalk -c public@1 crumpy .1.3.6.1.2.1.17.4.3.1.2
17.4.3.1.2.0.0.12.7.172.8 = 13
17.4.3.1.2.0.1.2.27.80.128 = 13
17.4.3.1.2.0.1.2.27.80.145 = 13
17.4.3.1.2.0.1.2.163.145.225 = 13
Note:&VLAN 1 is , or .1.3.6.1.2.1.17.4.3.1.2.
Issue this command to map the bridge port to the , OID .1.3.6.1.2.1.2.2.1.1:
snmpwalk -c public@1 crumpy .1.3.6.1.2.1.17.1.4.1.2
17.1.4.1.2.13 = 2
17.1.4.1.2.14 = 3
17.1.4.1.2.15 = 4
17.1.4.1.2.16 = 5
This command queries the , which has OID .1.3.6.1.2.1.17.1.4.1.2.
Use the walk command with
in order to correlate the
value with a correct port name. Issue this command:
has OID .1.3.6.1.2.1.31.1.1.1.1.
snmpwalk -c public@1 crumpy .1.3.6.1.2.1.31.1.1.1.1
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName.1 = VL1
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName.2 = Fa0/1
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName.3 = Fa0/2
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName.4 = Fa0/3
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName.5 = Fa0/4
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName.6 = Fa0/5
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName.7 = Fa0/6
Link a MAC address to the port on which the address was learned.
From Step 1, the MAC address is:
17.4.3.1.1.0.0.12.7.172.8 = Hex: 00 00 0C 07 AC 08
From Step 2, the bridge port tells that the MAC address belongs to bridge port number 13:
17.4.3.1.2.0.0.12.7.172.8 = 13
From Step 3, the bridge port number 13 has ifIndex number 2:
17.1.4.1.2.13 = 2
From Step 4, the ifIndex 2 corresponds to port Fast Ethernet 0/1:
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName.2 = Fa0/1
The MAC address 00 00 0C 07 AC 08 is learned on port Fa0/1.
Compare this conclusion with output from:
The show cam dynamic command for CatOS switches
The show mac command for Cisco IOS Software switches
Here is the sample output:
crumpy# show mac
Dynamic Address Count:
Secure Address Count:
Static Address (User-defined) Count:
System Self Address Count:
Total MAC addresses:
Maximum MAC addresses:
Non-static Address Table:
Destination Address
Address Type
Destination Port
-------------------
------------
-------------------
.ac08 Dynamic 1 FastEthernet0/1
FastEthernet0/1
FastEthernet0/1
FastEthernet0/1
FastEthernet0/1
FastEthernet0/1
FastEthernet0/1
Was this Document Helpful?
Let Us Help
(Requires a )
Related Support Community Discussions华为Nova青春版多少钱|华为Nova青春版价格是多少 - 统一手机站
大下:7.1MB|版本:7.2.2.301
华为Nova青春版多少钱 华为Nova青春版首发报价介绍
编辑:猫木
  华为Nova青春版多少钱?华为Nova青春版价格是多少?3月24日下午,华为官方已在上海的发布会上宣布将于上正式推出华为Nova青春版,并还是由90后女神长腿学霸偶像关晓彤代言,售价1999元。
  华为nova青春版在外观上采用2.5D双弧面玻璃机身+背面流光水波纹设计,配金属中框和后置指纹识别,拥有幻夜黑、珍珠白、铂光金、樱语粉、魅海蓝等5种机身配色。
  具体规格方面,华为nova青春版采用5.2英寸1080P柔光护眼屏,软件层面辅以视频显示增强引擎,长看不伤眼;搭载主频2.36GHz麒麟658八核处理器,辅以4GB运行内存与64GB机身存储,运行基于Android 7.0的EMUI 5.1系统。
  该机还搭载一颗800万像素前置镜头与1200万像素后置镜头,支持前置人像模式+背景虚化效果,突出人物主体;配备3000mAh电池,支持9V/2A安全快充。
  华为nova青春版将于3月24日18:08在华为商城、京东商城等各大电商平台和同步开启预约,售价为1999元!
  好了以上就是此次与大家分享的关于华为Nova青春版这款手机的首发报价介绍,想了解更多精彩资讯请继续关注,猫木将为大家带来最新最好玩的精彩资讯。华为荣耀8Lite多少钱|华为荣耀8 Lite价格是多少 - 统一手机站
大下:7.1MB|版本:7.2.2.301
华为荣耀8 Lite价格是多少 荣耀8Lite版首发报价介绍
编辑:猫木
  华为荣耀8Lite版多少钱?华为荣耀8 Lite价格是多少?据消息人士透露,华为荣耀8系列还将迎来一名新成员,它就是荣耀8低端版,将称为荣耀8 Lite。
  据称,设计方面荣耀8 Lite仍采用双面玻璃加铝合金边框设计,同时也会后置指纹识别,不过取消了背部双摄像头,而配备了一枚1200万像素摄像头,前置相机依然为800万像素。
  今天有国外媒体率先曝光了荣耀8 Lite(低配版)的渲染图,尽管图片没有展示荣耀8 Lite的全貌,但我们依然可以看到,荣耀8 Lite取消了双摄像头,底部为microUSB接口而非USB-C接口,此外还使用了背部指纹识别器。
  据悉荣耀8 Lite将会在MWC发布会不久后,于3月初上市,机身颜色提供蓝色,黑色,金色以及白色可选。
  考虑到配置功能上有所缩减,荣耀8 Lite售价应该会在元之间确定。
  好了以上就是此次与大家分享的关于华为荣耀8Lite版这款手机的首发报价介绍,想了解更多精彩资讯请继续关注,猫木将为大家带来最新最好玩的精彩资讯。1798人阅读
网络(17)
mep1: 4/0/42
mep2: 3/0/46
acsno&&syacsno888
删除配置:
1.&基本配置
[UPE1]&cfm&enable
[UPE1]&cfm&md&md1&level&1
[UPE1-md-md]&ma&ma1
[UPE1-md-md-ma-ma]&map&vlan&1500&
[UPE1-md-md-ma-ma]&mep&mep-id&1&interface&gigabitethernet&4/0/42&outward
[UPE1-md-md-ma-ma]&mep&ccm-send&mep-id&1&enable
[UPE1-md-md-ma-ma]&remote-mep&mep-id&2
[UPE1-md-md-ma-ma]&remote-mep&ccm-receive&mep-id&2&enable
[PEAGG]&cfm&enable
[PEAGG]&cfm&md&md1&level&1
[PEAGG-md-md]&ma&ma1
[PEAGG-md-md-ma-ma]&map&vlan&1500
[PEAGG-md-md-ma-ma]&mep&mep-id&2&interface&gigabitethernet&3/0/46&outward
[PEAGG-md-md-ma-ma]&mep&ccm-send&mep-id&2&enable
[PEAGG-md-md-ma-ma]&remote-mep&mep-id&1
[PEAGG-md-md-ma-ma]&remote-mep&ccm-receive&mep-id&1&enable
在或上执行命令和命令
2.&环回测试
使用802.1ag&MAC&Ping
1.&执行命令,进入系统视图。
2.&执行命令,进入视图。
3.&执行命令,进入视图。
4.&执行命令
mac-address&|&remote-mep&mep-id&mep-id&}&|&mac&mac-address&|&remote-mep&mepid
mep-id&}&[&-c&count&|&interface&interface-type&interface-number&|&-s&packetsize&|&-t
timeout&|&-p&priority-value&]&*,检测和指定或之间的连通性。
[A05-HWS9306-md-md1-ma-ma1]ping&mac-8021ag&mac&7054-f59d-d740
Pinging&7054-f59d-d740&with&95&bytes&of&data:&
Reply&from&7054-f59d-d740:&bytes&=&95,&time&=&4ms
Reply&from&7054-f59d-d740:&bytes&=&95,&time&=&2ms
Reply&from&7054-f59d-d740:&bytes&=&95,&time&=&2ms
Reply&from&7054-f59d-d740:&bytes&=&95,&time&=&2ms
Reply&from&7054-f59d-d740:&bytes&=&95,&time&=&2ms
Packets:&Sent&=&5,&Received&=&5,&Lost&=&0&(0%&loss)
Minimum&=&2ms,&Maximum&=&4ms,&Average&=&2ms
使用通用MAC&Ping
步骤执行命令,进入系统视图。
步骤执行命令,全局使能通用功能。
缺省情况下,通用功能处于未使能状态。
当通用功能处于使能状态时:在设备上可以进行通用操作;设备
对接收到的通用报文进行回复。
步骤执行命令&count&|&-s&packetsize&|&-t&timeout&|&-p&priority-value&]&*,检测和对端设备之间的连通性。
通用不需要由发起,目的节点也不需要是或,即在源设备、中
间设备和目的设备上均不需要配置、和就可以进行通用。
两台设备上必须配置协议的相同版本。如果本端设备上配置草案版本,对
端设备上配置标准版本,此时用户使用命令检测这两台设备之间
的连通性时,则本端设备无法通对端设备。
[A05-HWS9306]trace&mac&7054-f59d-d740&vlan&1500
Tracing&the&route&to&7054-f59d-d740&over&a&maximum&of&255&hops:
&Hops&&Mac&&&&&&&&&&&&&Ingress&&&&&&&&&&&&&&&&&&&Ingress&Action&&&&Relay&Action
&&&&&&&Forwarded&&&&&&&Egress&&&&&&&&&&&&&&&&&&&&Egress&Action&&&&&
&1&&&&&7054-f59d-d740&&GigabitEthernet3/0/46&&&&&IngOK&&&&&&&&&&&&&RlyHit
&&&&&&&Not&Forwarded&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Info:&Succeed&in&tracing&the&destination&address&7054-f59d-d740.
3.&链路跟踪测试
使用802.1ag&MAC&Trace
1.&执行命令,进入系统视图。
2.&执行命令,进入视图。
3.&执行命令,进入视图。
4.&执行命令
{&mac&mac-address&|&remote-mep&mep-id&mep-id&}&|&mac&mac-address&|&remotemep
mep-id&mep-id&}&[&interface&interface-type&interface-number&|&-t&timeout&|&ttl&ttl&]
*,定位和对端设备之间的连通性故障。
–&不指定参数,定位该内链路的实际转发路径和故障
–&指定参数,根据指定和的名称来确定内链路
的实际转发路径和故障点。
[A05-HWS9306-md-md1-ma-ma1]trace&mac-8021ag&mac&7054-f59d-d740
使用通用MAC&Trace
步骤配置两端和中间设备
在被测链路的两端和中间设备上进行以下配置。
1.&执行命令,进入系统视图。
2.&执行命令,全局使能通用功能。
缺省情况下,通用功能处于未使能状态。
只有当通用功能处于使能状态时,在设备上才能进行通用
操作;设备才对接收到的通用报文进行回复。
步骤执行探测
在被测链路的任意一端设备上执行探测。
1.&执行命令,进入系统视图。
2.&执行命令
|&-t&timeout&|&-h&]*,定位和对端设备之间的连通性故障。
通用不需要由发起,中间节点和目的节点也不需要是或,
即在源设备、中间设备和目的设备上均不需要配置、和就可以进行通
用,所有中间设备均回应消息。
两台设备上必须配置协议的相同版本。如果本端设备上配置草案版
本,对端设备上配置标准版本,此时用户使用命令定位这两
台设备之间的连通性故障时,则无法定位成功。
[A05-HWS9306-md-md1-ma-ma1]ping&mac-8021ag&mac&7054-f59d-d740
Pinging&7054-f59d-d740&with&95&bytes&of&data:&
Reply&from&7054-f59d-d740:&bytes&=&95,&time&=&4ms
Reply&from&7054-f59d-d740:&bytes&=&95,&time&=&2ms
Reply&from&7054-f59d-d740:&bytes&=&95,&time&=&2ms
Reply&from&7054-f59d-d740:&bytes&=&95,&time&=&2ms
Reply&from&7054-f59d-d740:&bytes&=&95,&time&=&2ms
Packets:&Sent&=&5,&Received&=&5,&Lost&=&0&(0%&loss)
Minimum&=&2ms,&Maximum&=&4ms,&Average&=&2ms
4.&按需的单向时延统计
1.&请在单向时延统计链路两端设备上进行如下配置。
a.&执行命令,进入系统视图。
b.&执行命令,进入视图。
c.&执行命令,进入视图。
d.&执行命令,配置当前与进行绑定。
e.&(可选)执行命令,配置
单向时延统计的告警门限值。
2.&请在单向时延统计的接收端设备上进行如下配置。
执行命令,配置接收报文功能。
缺省情况下,内没有配置远端设备接收报文功能。
3.&请在单向时延统计的发起端设备上进行如下配置。
mep-id&}&interval&{&1000&|&10000&}&count&count-value,配置的单向时
延统计功能。
缺省情况下,内没有配置按需单向时延统计功能。
VLAN的单向时延统计功能通过指定或者目的地址进行统计。
–&如果本端没有学到的地址,则必须使用指定目的的方
式进行时延统计。
–&如果本端已经学到的地址,则可以使用指定目的远端
号的方式进行时延统计。
[A05-HWS9306-md-md1-ma-ma1]delay-measure&one-way&receive
[A05-HWS9306-md-md1-ma-ma1]delay-measure&one-way&mac&7054-f59d-d740&interval&1000&count&10
5.&按需的双向时延统计
1.&请在对等的两端设备上进行如下配置。
a.&执行命令,进入系统视图。
b.&执行命令,进入视图。
c.&执行命令,进入视图。
d.&执行命令,配置当前与进行绑定。
e.&(可选)执行命令,配置
双向时延统计的告警门限值。
2.&请在双向时延统计接收端设备上进行如下配置。
执行命令,配置对端设备接收
报文功能。
缺省情况下,内没有配置远端设备接收报文功能。
3.&请在双向时延统计发起端设备上进行如下配置。
mep-id&}&interval&interval-value&count&count-value,配置双向时延统
缺省情况下,内没有配置按需双向时延统计功能。
VLAN的双向时延统计功能通过指定或者目的地址进行统计。
–&如果本端没有学到的地址,则必须使用指定目的的方
式进行时延统计。
–&如果本端已经学到的地址,则可以使用指定目的远端
号的方式进行时延统计。
[A05-HWS9306-md-md1-ma-ma1]delay-measure&two-way&receive
[A05-HWS9306-md-md1-ma-ma1]delay-measure&two-way&mac&7054-f59d-d740&interval&1000&count&10
访问:87164次
积分:1942
排名:千里之外
原创:97篇华为Nova2多少钱|华为Nova2价格是多少 - 统一手机站
大下:7.1MB|版本:7.2.2.301
华为Nova2多少钱 华为Nova2首发报价介绍
编辑:猫木
  &&&&&&小编推荐&&&&&&
  &&&&&&阅读正文&&&&&&
  华为Nova2多少钱?华为Nova2价格是多少?今天下午,华为在长沙举行了华为nova 2系列新品发布会,此次发布会的主题是&高颜值、爱自拍&,和此前曝光的一样,这款手机主打年轻人,拥有多种配色版本可选:玫瑰金、流光金、草木绿、极光蓝、曜石黑。而华为Nova2的首发价格为2499元,喜欢的朋友不容错过。
  nova 2系列共有两款产品,分别是屏幕为5.5英寸的nova 2 Plus和5英寸的nova 2。
  发布会上,华为重点强调了这款手机的前置摄像头,全新的nova 2首次搭载了2000万的前置高清美拍摄像头(F/2.0光圈),拥有智能色温补光技术,搭载美颜4.0,拥有十级美颜、视频美颜、男女识别等技术。
  另外,新机还支持3D动态全景技术。
  nova 2搭载了新一代广角+长焦后置双摄,万摄像头(F/1.8光圈),支持人像拍摄模式,支持先拍照后对焦。
  nova 2内置Hi-Fi芯片,搭载了华为Histen技术,官方称之为基于心理声学模型和听觉感知模型,拥有六大音质提升。
  配置方面,搭载了麒麟8核64位处理器,基于7.0的EMUI 5.1系统,该系统基于人工智能算法,官方称使用18个月不卡顿。
  nova 2支持9V/2A快充,新机还拥有柔光护眼2.0技术。
  值得一提的是,不光是nova 2系列手机,今天的发布会上,华为还推出了全景相机、运动手环、蓝牙耳机等一系列新品。
  其中全景相机为前后双1300万摄像头,支持360&x360&视频、照片拍摄,支持即插即拍。
  价格方面,其中nova 2 4GB+64GB版本售价2499元,nova 2 Plus 2899元。新机将会5月26日开启预售、6月16日开售。
  好了以上就是此次与大家分享的关于华为Nova2这款手机的首发报价介绍,想了解更多精彩内容请继续关注,猫木将为大家带来最新最酷的手机及应用资讯。

我要回帖

更多关于 华为nova2s手机价格 的文章

 

随机推荐