Tp-Link T1700G-28TQ V2 — настройка статических MAC-адресов в VLAN: пошаговое руководство [187/772]

Превью страниц Страница 187 / 772
Tp-Link T1700G-28TQ V2 [187/772] Switch configure
Configuration Guide 162
Managing MAC Address Table Address Configurations
Step 2 mac address-table static
mac-addr
vid
vid
interface { gigabitEthernet
port
| ten-
gigabitEthernet
port
}
Bind the MAC address, VLAN and port together to add a static address to the VLAN.
mac-addr
: Enter the MAC address and packets with this destination address received in the
specified VLAN are forwarded to the specified port. The format is xx:xx:xx:xx:xx:xx, for example,
00:00:00:00:00:01.
vid
: Specify an existing VLAN in which packets with the specific MAC address are received.
port:
Specify a port to which packets with the specific MAC address are forwarded. The port
must belong to the specified VLAN.
Step 3 end
Return to privileged EXEC mode.
Step 4 copy running-config startup-config
Save the settings in the configuration file.
Note:
In the same VLAN, once an address is configured as a static address, it cannot be set as a filter-
ing address, and vice versa.
Multicast or broadcast addresses cannot be set as static addresses.
Ports in LAGs (Link Aggregation Group) are not supported for static address configuration.
The following example shows how to add a static MAC address entry with MAC address
00:02:58:4f:6c:23, VLAN 10 and port 1. When a packet is received in VLAN 10 with this
address as its destination, the packet will be forwarded only to port 1.
Switch#configure
Switch(config)# mac address-table static 00:02:58:4f:6c:23 vid 10 interface
gigabitEthernet
1/0/1
Switch(config)#show mac address-table static
MAC Address Table
----------------------------------------------------------------------------
MAC VLAN Port Type Aging
----------------- --- ---- ---- -----
00:02:58:4f:6c:23 10 Gi1/0/1 config static no-aging
Total MAC Addresses for this criterion: 1
Switch(config)#end

Содержание

3073

Узнайте, как правильно настроить статические MAC-адреса в VLAN. Пошаговая инструкция по добавлению и сохранению конфигурации для эффективного управления сетью.