evb mac-learning forbidden

Use evb mac-learning forbidden to disable the MAC address learning function for an S-channel.

Use undo evb mac-learning forbidden to enable the MAC address learning function for an S-channel.

Syntax

evb mac-learning forbidden

undo evb mac-learning forbidden

Default

The MAC address learning function for an S-channel is enabled.

Views

S-channel interface view, S-channel aggregate interface view, S-channel bundle interface view

Predefined user roles

network-admin

Usage guidelines

For an S-channel with the RR mode disabled, do not disable its MAC address learning function. Otherwise, the EVB bridge might fail to forward traffic from VMs on the EVB station.

After you disable the MAC address learning function for an S-channel, packets with an unknown source MAC address are discarded.

For information about S-channel bundle interfaces, see Layer 2LAN Switching Configuration Guide.

Examples

# Disable the MAC address learning function on S-Channel 1/0/1:10.

<Sysname> system-view
[Sysname] interface s-channel 1/0/1:10
[Sysname-S-Channel1/0/1:10] evb mac-learning forbidden

# Disable the MAC address learning function on Schannel-Aggregation 1:10.

<Sysname> system-view
[Sysname] interface schannel-aggregation 1:10
[Sysname–Schannel-Aggregation1:10] evb mac-learning forbidden

# Disable MAC address learning on Schannel-Bundle 1.

<Sysname> system-view
[Sysname] interface schannel-bundle 1
[Sysname–Schannel-Bundle1] evb mac-learning forbidden

Related commands

evb reflective-relay