Limetime's TimeLine
article thumbnail
반응형

MAC Address를 저장하는 2가지 방식

DYNAMIC 방식

  • 자동으로 배우는 방식
  • 300초(Default)가 지나도록 사용하지 않는 주소는 지운다. (용량 한계)

PERMANENT 방식

  • 수동으로 넣어줘야 한다. (Static)
  • 절대 지워지지 않도록 설정. (Learning 과정을 거칠 필요가 없다.)
  • 명령어 : mac-address-table static aaaa.aaaa.aaaa(맥주소) vlan 1(vlan-id) interface fastethernet 0/24(interface-id)

 

Switch# show mac-address-table
                 MAC Address Table
------------------------------------------------------------------
Vlan             Mac Address            Type                 Ports
------------------------------------------------------------------
1               0000.f064.4691          DYNAMIC              Fa0/1
1               0000.f071.6eea          DYNAMIC              Fa0/1
...
1               0000.bf71.a1b0          DYNAMIC              Fa0/1
Total Mac Addresses for this criterion: 11

Switch# configure terminal
Switch(config)# mac-address-table static aaaa.aaaaa.aaaa vlan 1 interface fastethernet 0/24
Switch(config)# exit
Switch# show mac-address-table
                 MAC Address Table
------------------------------------------------------------------
Vlan             Mac Address            Type                 Ports
------------------------------------------------------------------
1               0000.f064.4691          DYNAMIC              Fa0/1
1               0000.f071.6eea          DYNAMIC              Fa0/1
...
1               0000.bf71.a1b0          DYNAMIC              Fa0/1
1               aaaa.aaaa.aaaa          STATIC               Fa0/24
Total Mac Addresses for this criterion: 12

 

※ MAC Address Table 지우는 방법

Switch# clear mac-address-table

반응형
profile

Limetime's TimeLine

@Limetime

포스팅이 좋았다면 "공감❤️" 또는 "구독👍🏻" 해주세요!