免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2273 | 回复: 0
打印 上一主题 下一主题

关于Catalyst交换机接口MAC地址 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-26 01:35 |只看该作者 |倒序浏览

                对于Catalyst65/76系列来讲:1.所有的的SVI接口及L3接口都系使用同一个MAC地址:
SW-6509#show interfaces | include line | addressVlan1 is administratively down, line protocol is down   Hardware is EtherSVI, address is [color="#FF0102"]0016.9c6d.b500 (bia 0016.9c6d.b500)Vlan30 is up, line protocol is up   Hardware is EtherSVI, address is [color="#FF0102"]0016.9c6d.b500 (bia 0016.9c6d.b500)  Internet address is 210.53.31.30/27Vlan40 is up, line protocol is up   Hardware is EtherSVI, address is [color="#FF0102"]0016.9c6d.b500 (bia 0016.9c6d.b500)  Internet address is 210.53.31.129/27GigabitEthernet7/5 is up, line protocol is up (connected)  Hardware is C6k 1000Mb 802.3, address is [color="#FF0102"]0016.9c6d.b500 (bia 0016.9c6d.b500)  Internet address is 210.52.143.213/30GigabitEthernet7/6 is up, line protocol is up (connected)  Hardware is C6k 1000Mb 802.3, address is [color="#FF0102"]0016.9c6d.b500 (bia 0016.9c6d.b500)
呢个地址来自chassic-mac-address:
SW-6509#show catalyst6000 chassis-mac-address  chassis MAC addresses: 64 addresses from [color="#FF0102"]0016.9c6d.b500 to 0016.9c6d.b53fSW-6509#
2.每个的L2接口都有唯一的MAC地址,呢个地址来自module的MAC地址范围:SW-6509#show interfaces | include line | address.....GigabitEthernet7/46 is up, line protocol is up (connected)  Hardware is C6k 1000Mb 802.3, address is [color="#FF0102"]0017.9400.3fbd (bia 0017.9400.3fbd)GigabitEthernet7/47 is up, line protocol is up (connected)  Hardware is C6k 1000Mb 802.3, address is [color="#FF0102"]0017.9400.3fbe (bia 0017.9400.3fbe)
SW-6509#sh module 7Mod Ports Card Type                              Model              Serial No.--- ----- -------------------------------------- ------------------ -----------  7   48  48-port 10/100/1000 RJ45 EtherModule   WS-X6148A-GE-45AF  SAL1015JY6N
Mod MAC addresses                       Hw    Fw           Sw           Status--- ---------------------------------- ------ ------------ ------------ -------  7  [color="#FF0102"]0017.9400.3f90 to 0017.9400.3fbf   2.0   8.4(1)       8.5(0.46)RFW Ok
3.下面的例子说明一个端口从L3变L2时,端口的MAC地址也会变化
show检查module 3的MAC地址池范围:
cat6kIOS#show module 3
Mod Ports Card Type                              Model              Serial No.
--- ----- -------------------------------------- ------------------ -----------
  3   16  SFM-capable 16 port 1000mb GBIC        WS-X6516-GBIC      SAD0438056W
Mod MAC addresses                       Hw    Fw           Sw           Status
--- ---------------------------------- ------ ------------ ------------ -------
  3  0030.f270.ce3b to 0030.f270.ce4a   1.0   6.1(3)       7.5(0.6)HUB1 Ok
所有的SVI及L3端口的MAC地址来自缺省的chassic-mac-address:
cat6kIOS#show interfaces | include line | address
Vlan1 is up, line protocol is up
  Hardware is EtherSVI, address is 00d0.003f.880a (bia 00d0.003f.880a)
  Internet address is 10.48.72.111/23
Vlan3 is administratively down, line protocol is down
  Hardware is EtherSVI, address is 00d0.003f.880a (bia 00d0.003f.880a)

[color="#0000ff"]!--- Output suppressed.

GigabitEthernet3/1 is up, line protocol is down (notconnect)
  Hardware is C6k 1000Mb 802.3, address is 0030.f270.ce3f (bia 0030.f270.ce3f)

!--- Gigabit Ethernet 3/5 is an L2 interface. The MAC address
!--- is from the module MAC address pool.


[color="#0000ff"]!--- Output suppressed.

配置接口3/10成为L2端口,检查MAC地址的改变:
Enter configuration commands, one per line.  End with CNTL/Z.
cat6kIOS(config)#interface gigabitethernet
cat6kIOS(config)#interface gigabitethernet 3/10
cat6kIOS(config-if)#switchport
cat6kIOS(config-if)#
如下所示,G3/10端口使用module MAC地址池的MAC地址:
cat6kIOS#show interface gigabitethernet 3/10
GigabitEthernet3/10 is up, line protocol is down (notconnect)
  Hardware is C6k 1000Mb 802.3, address is 0030.f270.ce44 (bia 0030.f270.ce44)
  MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Full-duplex mode, link type is autonegotiation, GBIC not connected
  output flow-control is unsupported, input flow-control is unsupported, 1000Mb/s
如果改变G3/10端口回复到L3端口,缺省的MAC地址会被分配到该端口上:
cat6kIOS(config)#interface gigabitethernet 3/10
cat6kIOS(config-if)#no switchport
cat6kIOS(config-if)#end
cat6kIOS#show interface gigabitethernet 3/10
GigabitEthernet3/10 is up, line protocol is down (notconnect)
  Hardware is C6k 1000Mb 802.3, address is 00d0.003f.880a (bia 00d0.003f.880a)
  MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)65/76平台的SUP如果带有MSFC,则可以改变SVI及L3端口的缺省MAC地址,而且不同的SVI及L3端口可以具有不同的MAC地址。但SUPII只能更改全局缺省的MAC地址。其它交换机平台在这方面特性的支持各有不同,见:
Catalyst Switch with Support for CLI Configuration of a Unique MAC Address per Interface

      
Catalyst 6500/6000 Supervisor Engine 720 and Supervisor Engine I with MSFC1, MSFC2, or MSFC3 That Runs CatOS System Software

      
Catalyst 4000 L3 Module


Catalyst Switch That Does Not Support CLI Configuration of a Unique MAC Address per Interface

      
Catalyst 6500/6000 Supervisor Engine II

      
Catalyst 4500/4000 Supervisor Engine III/IV

      
Catalyst L2 and L3 Fixed Configuration Switches

      
Catalyst 2900XL/3500XL

               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/5101/showart_2104053.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP