Wednesday, July 1, 2020

How to Configure Static MAC Address Entries on Huawei BRAS ME60?

After a static MAC address entry is configured on Huawei Router BRAS ME60, packets with the destination MAC address matching the entry are forwarded from the specified outbound interface. This configuration protects a device from attack packets with forged MAC addresses.

Usage Scenario

If a network has fixed users or a server connects to a switch on the network, static MAC address entries need to be configured on the switch to prevent hackers from attacking the switch or the server. On the network shown in Figure 1, you can configure a static MAC address entry on the switch containing the MAC address of the server so that the switch forwards packets destined for the server through only a specified interface. This configuration prevents hackers from attacking the server using forged MAC addresses and from stealing information from the server, as well as ensures the communication between users and the server.

Figure 1 Networking for static MAC address entry configuration

Pre-configuration Tasks

Before configuring a static MAC address entry, connect interfaces and set their physical parameters to ensure that the physical interface status is Up.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Use either or both of the following methods to add static MAC address entries.

    • Run the mac-address static mac-address interface-type interface-number vlan vlan-id command to add VLAN-based static MAC address entries.
    • Run the mac-address static mac-address interface-type interface-number vsi vsi-name [ pe-vid pe-vid [ ce-vid ce-vid ] ] command to add VSI-based static MAC address entries.

    • Run the mac-address static mac-address interface-type interface-number vlanif vlan-id vsi vsi-name command to configure static MAC address entries for VSIs bound to the VLANIF interface.
     NOTE:

    Static MAC address entries take precedence over dynamic MAC address entries.

  3. Run commit

    The configuration is committed.

Checking the Configurations

Run the following commands to check the previous configurations.

  • Run the display mac-address [ mac-address ] [ vlan vlan-id | vsi vsi-name ] [ verbose ] command to check detailed information about MAC address entries.

  • Run the display mac-address static [ vsi vsi-name | { vlan vlan-id | interface-type interface-number } * ] command to check static MAC address entries.

Run the display mac-address command to view all MAC address entries. The command output shows the static MAC address entry with static in the Type field.

<HUAWEI> display mac-address
MAC address table of slot 1:                                                                                                        
-------------------------------------------------------------------------------
MAC Address    VLAN/BD/       PEVLAN CEVLAN Port            Type      LSP/LSR-ID
               VSI/SI/EVPN                                            MAC-Tunnel
-------------------------------------------------------------------------------
0001-0001-0009 6              -      -      -               blackhole -                                                                
0001-0001-0010 7              -      -      -               blackhole -                                                                
0001-0001-0010 8              -      -      -               blackhole -                                                                
0001-0001-0010 9              -      -      -               blackhole -                                                                
0001-0001-0010 10             -      -      -               blackhole -                                                                
0001-0001-0010 11             -      -      -               blackhole -                                                                
0001-0001-0010 12             -      -      -               blackhole -                                                                
0001-0001-0010 54             -      -      GE1/0/1.1       static    -                                                                
0001-0001-0001 200            -      -      GE1/0/1.1       static    -                                                                
0001-0001-0020 v1             54     -      GE1/0/2.1       static    -                                                                
0001-0001-0003 vsa            3      4      GE1/0/2.1       static    -                                                                
0001-0001-0005 vsa            4094   4094   GE1/0/2.2       static    -                                                                
-------------------------------------------------------------------------------  
Total matching items on slot 1 displayed = 12

Run the display mac-address static command to view static MAC address entries. The command output shows that the static MAC address entry is correctly configured.

<HUAWEI> display mac-address static
MAC address table of slot 1:
-------------------------------------------------------------------------------
MAC Address    VLAN/BD/       PEVLAN CEVLAN Port            Type      LSP/LSR-ID
               VSI/SI/EVPN                                            MAC-Tunnel
-------------------------------------------------------------------------------
0024-7f94-349e 1              -      -      GE3/0/1         static    -
-------------------------------------------------------------------------------
Total matching items on slot 1 displayed = 1

No comments:

Post a Comment