DXS-3600-32S CLI Reference Guide


Add to my manuals
596 Pages

advertisement

DXS-3600-32S CLI Reference Guide | Manualzz

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Filter Database (FDB) Commands

19-1 mac-address-table aging-time

This command is used to set the length of time that a dynamic entry remains in the MAC address table. Use the no form of the command to set the time to default.

mac-address-table aging-time SECONDS

no mac-address-table aging-time

Parameters

SECONDS

Specifies the aging time in seconds. The valid range is 0 or 10 to 1000000 seconds.

0 means that the aging function is disabled.

Default

The default is 300 seconds.

Command Mode

Global Configuration Mode.

Command Default Level

Level: 12

Usage Guideline

Set the aging-time to 0 to disable the MAC address table aging out function.

Example

This example shows how to set the aging time to 200 seconds.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#mac-address-table aging-time 200

DXS-3600-32S(config)#

19-2 clear mac-address-table

This command is used to delete a specific dynamic, filtering or static MAC address, all dynamic or static MAC addresses on a particular interface, all dynamic, filtering or static MAC addresses on a particular VLAN or all dynamic, filtering or static MAC addresses from the MAC address table.

clear mac-address-table dynamic [address MAC-ADDR | interface INTERFACE-ID | vlan VLAN-ID]

clear mac-address-table filtering [address MAC-ADDR | vlan VLAN-ID]

clear mac-address-table static [address MAC-ADDR | interface INTERFACE-ID | vlan VLAN-ID]

Parameters dynamic filtering static

address MAC-ADDR

Deletes the specified dynamic MAC address.

Deletes the specified filtering MAC address.

Deletes the specified static MAC address.

Specifies the MAC address.

interface INTERFACE-ID Specifies the interface that the MAC address will be deleted from. The specified interface can be a physical port or a port-channel

vlan VLAN-ID Specifies the VLAN ID. The valid values are from 1 to 4094.

Default

None.

Command Mode

Privileged EXEC Mode.

Command Default Level

Level: 12

Usage Guideline

The clear mac address-table command only clears dynamic, filtering or static MAC address entries.

209

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Example

This example shows how to remove all dynamic MAC address from the MAC address table.

DXS-3600-32S#clear mac address-table dynamic

DXS-3600-32S#

Example

This example shows how to remove the MAC address “00:08:00:70:00:07” from the dynamic MAC address table.

DXS-3600-32S#clear mac address-table dynamic address 00:08:00:70:00:07

DXS-3600-32S#

Example

This example shows how to remove the MAC address learned on Port 2 from the dynamic MAC address table.

DXS-3600-32S#clear mac address-table dynamic interface tenGigabitEthernet 2

DXS-3600-32S#

Example

This example shows how to remove the MAC address learned in VLAN 10 from the dynamic MAC address table.

DXS-3600-32S#clear mac address-table dynamic vlan 10

DXS-3600-32S#

Example

This example shows how to remove the MAC address learned on Port 2 and in

VLAN 10 from the dynamic MAC address table.

DXS-3600-32S#clear mac address-table dynamic interface tenGigabitEthernet 2 vlan 10

DXS-3600-32S#

Example

This example shows how to remove the MAC address “00:09:00:70:00:07” from the static MAC address table.

DXS-3600-32S#clear mac address-table static address 00:09:00:70:00:07

DXS-3600-32S#

Example

This example shows how to remove the MAC address “00:10:00:70:00:07” from the filtering MAC address table.

DXS-3600-32S#clear mac address-table filtering address 00:10:00:70:00:07

DXS-3600-32S#

19-3 mac-address-table static

This command is used to add a static address to the MAC address table. Use the no form of the command to remove a static MAC address entry from the table.

mac-address-table static MAC-ADD vlan VLAN-ID interface INTERFACE-ID

no mac-address-table static MAC-ADD vlan VLAN-ID [interface INTERFACE-ID]

Parameters

MAC-ADDR

Specifies the destination MAC address (unicast or multicast) to add to the address table. Packets with this destination address that are received by the specified VLAN are forwarded to the specified interface. The acceptable formats are 00-01-80-40-

30-20, 00:01:80:40:30:20, 000180403020, and 0001.8040.3020.

vlan VLAN-ID Specifies the VLAN that the packet with the specified MAC address will be received by. The range is 1 to 4094.

interface INTERFACE-ID Specifies the interface that the received packet will be forwarded to.

210

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Default

Command Mode

None.

Global Configuration Mode.

Command Default Level

Level: 12

Usage Guideline

An error message “The specified interface does not exist.” will appear if the specified interface does not exist.

An error message “The specified VLAN does not exist.” will be displayed if the specified VLAN does not exist.

For a unicast MAC address entry, only one interface can be specified. For a multicast MAC address entry, multiple interfaces can be specified.

To delete a unicast MAC address entry, there is no need to specify the interface ID.

To delete a multicast MAC address entry, if an interface-ID is specified, only this interface will be removed. Otherwise, the entire multicast MAC entry will be removed.

An error message “The specified entry does not exist.” will be displayed if the user tries to remove an entry that does not exist.

Example

This example shows how to add the static address 00:00:22:0A:12:F4 to the MAC address table. The user also specifies that when any packet received on VLAN 4 that has a destination MAC address of “00:00:22:0A:12:F4” will be forwarded to tenGigabitEthernet 1.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#mac-address-table static 00:00:22:0A:12:F4 vlan 4 interface tenGigabitEthernet 1

DXS-3600-32S(config)#

Example

This example shows how to add the static address 01:00:22:0A:12:F4 to the MAC address table. The user also specifies that when any packet received on VLAN 2 that has a destination MAC address of “01:00:22:0A:12:F4” will be forwarded to

Ethernet interface 2 and 3.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#mac-address-table static 01:00:22:0A:12:F4 vlan 4 interface tenGigabitEthernet 2

DXS-3600-32S(config)#mac-address-table static 01:00:22:0A:12:F4 vlan 4 interface tenGigabitEthernet 3

DXS-3600-32S(config)#

19-4 mac-address-table filtering

This command is used to add a filtering address to the MAC address table. Use the no form of the command to remove a filtering MAC address entry from the table.

mac-address-table filtering MAC-ADD vlan VLAN-ID

no mac-address-table filtering MAC-ADD vlan VLAN-ID

Parameters

MAC-ADDR

vlan VLAN-ID

Specifies the unicast source or destination MAC address to add to the address table.

Packets which source or destination address is the address received by the specified VLAN will be dropped. The acceptable formats are 00-01-80-40-30-20,

00:01:80:40:30:20, 000180403020, and 0001.8040.3020.

Specifies the VLAN that the packet with the specified MAC address will be received by. The range is 1 to 4094.

211

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Default

Command Mode

None.

Global Configuration Mode.

Command Default Level

Level: 12

Usage Guideline

Only a unicast MAC address can be specified for the entry.

An error message “The specified VLAN does not exist.” will be displayed if the specified VLAN does not exist.

An error message “The specified entry does not exist.” will be displayed if the user tries to remove an entry that does not exist.

Example

This example shows how to add the filtering address 00:00:00:0A:12:EE to the MAC address table. The user also specifies that when any packet received on VLAN 4 that has a destination MAC address of “00:00:00:0A:12:EE” will be dropped.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#mac-address-table filtering 00:00:00:0A:12:EE vlan 4

DXS-3600-32S(config)#

19-5 mac-address-table notification

This command is used to enable and configure the MAC address notification function. Use the no form of the command to disable the function or set the optional configuration to default.

mac-address-table notification [interval SECONDS | history-size VALUE]

no mac-address-table notification [interval | history-size]

Parameters

interval SECONDS

history-size VALUE

Specifies the interval of sending the MAC address trap message, the default is 1 second.

Specifies the maximum number of the entries in the MAC address notification table,

The range is 0 to 500; the default is 50 entries.

Default

Command Mode

MAC address notification is disabled, the interval is 1 second, and history-size is 50 entries.

Global Configuration Mode.

Command Default Level

Level: 12

Usage Guideline

Whenever the switch learns or removes a MAC address, an SNMP notification can be generated and sent to the SNMP server. The MAC notification history table stores the MAC address learned or delete for each hardware port for which the trap is enabled.

Example

This example shows how to enable MAC address notification, and set interval to 10 seconds, history-size to 500 entries.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#mac-address-table notification

DXS-3600-32S(config)#mac-address-table notification interval 10

DXS-3600-32S(config)#mac-address-table notification history-size 500

DXS-3600-32S(config)#

212

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

19-6 snmp trap mac-notification

This command is used to enable the MAC address notification function on interface. Use the no form of the command to disable the function.

snmp trap mac-notification {added | removed} no snmp trap mac-notification {added | removed}

Parameters added removed

Specifies to enable the MAC notification trap when a MAC address is added on the interface.

Specifies to enable the MAC notification trap when a MAC address is removed from the interface.

Default

Command Mode

By default, this option is disabled.

Interface Configuration Mode.

Command Default Level

Level: 12

Usage Guideline

Used to configure the switch’s MAC address table notification on interface.

Example

This example shows how to enable MAC address notification on Ethernet interface

2.

DXS-3600-32S#configure terminal

DXS-3600-32S(config)#interface tenGigabitEthernet 2

DXS-3600-32S(config-if)#snmp trap mac-notification added removed

DXS-3600-32S(config-if)#

19-7 show mac-address-table aging-time

This command is used to display the aging time.

show mac-address-table aging-time

Parameters

Default

None.

None.

Command Mode

EXEC Mode.

Command Default Level

Level: 1

Usage Guideline

None.

Example

This example shows how to display the aging time.

DXS-3600-32S#show mac-address-table aging-time

Aging Time : 200 seconds.

DXS-3600-32S#

19-8 show mac-address-table notification

This command is used to display the MAC address notification configuration.

show mac-address-table notification [interface INTERFACE-ID | history]

213

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Parameters

interface INTERFACE-ID (Optional) Specifies to show MAC address notification configuration on the interface.

history

(Optional) Specifies to show the MAC address notification history.

Default

Command Mode

None.

EXEC Mode.

Command Default Level

Level: 1

Usage Guideline

None.

Example

This example shows how to display the MAC address notification configuration and status.

DXS-3600-32S#show mac-address-table notification interface

Interface Added Trap Removed Trap

----------------------- -------------- --------------

TenGigabitEthernet 1 Disabled Disabled

TenGigabitEthernet 2 Disabled Disabled

TenGigabitEthernet 3 Disabled Disabled

TenGigabitEthernet 4 Disabled Disabled

TenGigabitEthernet 5 Disabled Disabled

TenGigabitEthernet 6 Disabled Disabled

TenGigabitEthernet 7 Disabled Disabled

TenGigabitEthernet 8 Disabled Disabled

TenGigabitEthernet 9 Disabled Disabled

TenGigabitEthernet 10 Disabled Disabled

TenGigabitEthernet 11 Disabled Disabled

TenGigabitEthernet 12 Disabled Disabled

TenGigabitEthernet 13 Disabled Disabled

TenGigabitEthernet 14 Disabled Disabled

TenGigabitEthernet 15 Disabled Disabled

TenGigabitEthernet 16 Disabled Disabled

TenGigabitEthernet 17 Disabled Disabled

TenGigabitEthernet 18 Disabled Disabled

TenGigabitEthernet 19 Disabled Disabled

TenGigabitEthernet 20 Disabled Disabled

TenGigabitEthernet 21 Disabled Disabled

TenGigabitEthernet 22 Disabled Disabled

TenGigabitEthernet 23 Disabled Disabled

TenGigabitEthernet 24 Disabled Disabled

DXS-3600-32S#show mac-address-table notification history

History Index: 0

MAC Changed Message:

Operation:ADD Vlan: 1 MAC Addr: 00f8.d012.3456 tenGigabitEthernet 3

DXS-3600-32S#

19-9 show mac-address-table

This command is used to display a specific MAC address entry or the MAC address entries for a specific interface or

VLAN.

show mac-address-table count

show mac-address-table [dynamic | static] [address MAC-ADDR | interface INTERFACE-ID | vlan VLAN-ID]

show mac-address-table filtering [address MAC-ADDR | vlan VLAN-ID]

214

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Parameters dynamic static

(Optional) Displays dynamic MAC address entries only.

(Optional) Displays user creates static MAC address entries and L3 interface MAC address entries only.

filtering

address MAC-ADDR

(Optional) Displays user creates filtering MAC address entries only.

(Optional) Specifies the 48-bit MAC address.

interface INTERFACE-ID (Optional) Displays information for a specific interface.

vlan VLAN-ID (Optional) Specifies the VLAN ID. The valid values are from 1 to 4094.

count

Displays statistic information of MAC address table.

Default

Command Mode

None.

EXEC Mode.

Command Default Level

Level: 1

Usage Guideline

None.

Example

This example shows how to display all the MAC address table entries.

DXS-3600-32S#show mac-address-table

VLAN MAC Address Type Interface Protocol

---- ----------------- ---------- ------------------------- --------

1 00-00-00-EE-00-01 Dynamic tenGigabitEthernet 8 -

1 00-00-CD-FE-00-05 Static tenGigabitEthernet 1 -

1 00-03-40-11-22-33 Dynamic tenGigabitEthernet 2 -

1 00-03-40-11-22-EA Static tenGigabitEthernet 2 WAC

1 00-0D-A2-02-FE-07 Static tenGigabitEthernet 6 802.1X

1 00-0D-A2-02-FE-7A Static tenGigabitEthernet 6 802.1X

1 5C-02-4B-28-C4-82 Self CPU -

1 5C-D9-98-C9-C0-0F Static tenGigabitEthernet 1 JWAC

1 5C-D9-98-C9-C0-93 Static tenGigabitEthernet 1 -

3 00-02-4B-28-C4-82 Static tenGigabitEthernet 6 -

3 00-02-4B-28-C4-CD Static tenGigabitEthernet 6 Port Security

6 00-01-00-02-00-10 Drop - -

6 00-01-00-02-00-2E Drop tenGigabitEthernet 13 MAC-based Access Control

100 00-00-CD-EF-00-04 Static tenGigabitEthernet 4 -

100 00-00-CD-EF-00-BD Static tenGigabitEthernet 4 MAC-based Access Control

1024 00-21-91-53-D6-5C Static tenGigabitEthernet 10 -

1024 00-21-91-53-D6-8E Static tenGigabitEthernet 10 Compound Authentication

1 01-00-00-00-DD-DD Static tenGigabitEthernet 1-7,19

Total Entries: 18

DXS-3600-32S#

Example

This example shows how to display all the MAC address table entries for the MAC address “00-02-4b-28-c4-82”.

DXS-3600-32S#show mac-address-table address 00:02:4B:28:C4:82

VLAN MAC Address Type Interface Protocol

---- ----------------- ---------- ------------------------- --------

3 00-02-4B-28-C4-82 Static tenGigabitEthernet 6 -

Total Entries: 1

DXS-3600-32S#

215

DXS-3600-32S 10GbE Layer 2/3 Switch CLI Reference Guide

Example

This example shows how to display all the static MAC address table entries.

DXS-3600-32S#show mac-address-table static

VLAN MAC Address Type Interface Protocol

---- ----------------- ---------- ------------------------- --------

1 00-00-CD-FE-00-05 Static tenGigabitEthernet 1 -

1 5C-02-4B-28-C4-82 Self CPU -

1 5C-D9-98-C9-C0-93 Static tenGigabitEthernet 1 -

3 00-02-4B-28-C4-82 Static tenGigabitEthernet 6 -

100 00-00-CD-EF-00-04 Static tenGigabitEthernet 4 -

1024 0-21-91-53-D6-5C Static tenGigabitEthernet 10 -

1 01-00-00-00-DD-DD Static tenGigabitEthernet 1-7,19

Total Entries: 7

DXS-3600-32S#

Example

This example shows how to display all the filter MAC address table entries.

DXS-3600-32S#show mac-address-table filtering

VLAN MAC Address Type Interface Protocol

---- ----------------- ---------- ------------------------- --------

1 00-00-00-0A-12-EE Drop - -

Total Entries: 1

DXS-3600-32S#

Example

This example shows how to display all the MAC address table entries for VLAN 1.

DXS-3600-32S#show mac-address-table vlan 1

VLAN MAC Address Type Interface Protocol

---- ----------------- ---------- ------------------------- --------

1 00-00-00-EE-00-01 Dynamic tenGigabitEthernet 8 -

1 00-00-CD-FE-00-05 Static tenGigabitEthernet 1 -

1 00-03-40-11-22-33 Dynamic tenGigabitEthernet 2 -

1 00-0D-A2-02-FE-07 Static tenGigabitEthernet 6 802.1X

1 5C-02-4B-28-C4-82 Self CPU -

1 5C-D9-98-C9-C0-93 Static tenGigabitEthernet 1 -

1 01-00-00-00-DD-DD Static tenGigabitEthernet 1-7,19

Total Entries: 7

DXS-3600-32S#

Example

This example shows the statistic information of MAC address table.

DXS-3600-32S#show mac-address-table count

Dynamic Address Count : 2

Static Address Count : 7

Filter Address Count : 1

Total MAC Addresses : 18

Total MAC Addresses Space Available: 131070

DXS-3600-32S#

216

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

Download PDF

advertisement

Table of contents