雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 9872|回复: 13

[讨论/求助] 网桥ID中的MAC地址取自哪里?

[复制链接]
发表于 2009-8-24 23:34:03 | 显示全部楼层 |阅读模式
请问交换机中网桥ID中的MAC地址是取自哪个接口的??

谢谢~
发表于 2009-8-25 00:32:04 | 显示全部楼层
交换机的接口是没有MAC的,一个交换机只有一个MAC地址,网桥ID=优先级+MAC
发表于 2009-8-25 09:07:01 | 显示全部楼层
交换机的MAC地址池吧
 楼主| 发表于 2009-8-25 10:10:32 | 显示全部楼层
一个交换机只有一个MAC地址??不会吧··我知道是有个MAC地址池的啊~所以肯定不止一个吧
发表于 2009-8-25 10:29:31 | 显示全部楼层
本帖最后由 zhang5968 于 2009-8-25 10:42 编辑

一下为同一台交换机的信息,很清楚了。。。
VLAN0003
  Spanning tree enabled protocol ieee
  Root ID    Priority    4099
             Address     000C.CF27.E0A1
             This bridge is the root
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec
  Bridge ID  Priority    4099  (priority 4096 sys-id-ext 3)
             Address     000C.CF27.E0A1
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  20



Switch#show interfaces vlan 1
Vlan1 is administratively down, line protocol is down
  Hardware is CPU Interface, address is 000c.cf27.e0a1 (bia 000c.cf27.e0a1)
  MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input 21:40:21, output never, output hang never
  Last clearing of "show interface" **ers never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
发表于 2009-8-25 14:12:32 | 显示全部楼层

额。。。

在运行生成树的时候采用的网桥的MAC地址是交换机的Base MAC地址:在特权配置模式下:show version可以看见。
sw1#sh version
Cisco IOS Software, C3550 Software (C3550-IPSERVICESK9-M), Version 12.2(25)SEE2, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Fri 28-Jul-06 12:20 by yenanh
Image text-base: 0x00003000, data-base: 0x00DC0AC4

ROM: Bootstrap program is C3550 boot loader

sw1 uptime is 5 days, 19 minutes
System returned to ROM by power-on
System image file is "flash:/c3550-ipservicesk9-mz.122-25.SEE2.bin"


This product contains cryptographic features and is subject to United
Sta
5d00h: %SYS-5-CONFIG_I: Configured ** console by consoletes and local **ry laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local **ry laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

Cisco WS-C3550-24 (PowerPC) processor (revision D0) with 65526K/8192K bytes of memory.
Processor board ID CAT0628Y12V
Last reset ** warm-reset
Running Layer2/3 Switching Image

Ethernet-controller 1 has 12 Fast Ethernet/IEEE 802.3 interfaces

Ethernet-controller 2 has 12 Fast Ethernet/IEEE 802.3 interfaces

Ethernet-controller 3 has 1 Gigabit Ethernet/IEEE 802.3 interface

Ethernet-controller 4 has 1 Gigabit Ethernet/IEEE 802.3 interface

24 FastEthernet interfaces
2 Gigabit Ethernet interfaces

The password-recovery mechanism is disabled.
384K bytes of flash-simulated NVRAM.
Base ethernet MAC Address: 00:0A:8A:07:82:80
Motherboard assembly number: 73-5700-08
Power supply part number: 34-0966-02
Motherboard serial number: CAT06270F5F
Power supply serial number: DAB06230DTN
Model revision number: D0
Motherboard revision number: C0
Model number: WS-C3550-24-EMI
System serial number: CAT0628Y12V
Configuration register is 0x10F
采用红色标识的就是了!!
发表于 2009-8-25 14:32:40 | 显示全部楼层
被JEFF抢去说了。
发表于 2009-8-25 14:37:10 | 显示全部楼层
本帖最后由 zhang5968 于 2009-8-25 14:46 编辑

想请教下JEFF大哥,

64K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address       : 0090.2BA5.DA91
Motherboard assembly number     : 73-9832-06
Power supply part number        : 341-0097-02
Motherboard serial number       : FOC103248MJ
Power supply serial number      : DCA102133JA
Model revision number           : B0
Motherboard revision number     : C0

Switch#show interfaces vlan 1
Vlan1 is administratively down, line protocol is down
  Hardware is CPU Interface, address is 0090.2ba5.da91 (bia 0090.2ba5.da91)
  MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
 楼主| 发表于 2009-8-25 15:55:50 | 显示全部楼层
再请教下各大哥~既然交换机端口不需要MAC地址···而交换机也只用那么一个MAC地址

即使运行PVST,使用扩展ID,也只是用到一个MAC地址就行

那么交换机MAC地址池里的那么多个MAC地址还有什么用??
发表于 2009-8-25 15:59:21 | 显示全部楼层
想下交换机的功能? 二层的。是做什么用的?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-12-23 22:26 , Processed in 0.092199 second(s), 18 queries , Gzip On.

快速回复 返回顶部 返回列表