local-ce

Function

The local-ce ip command specifies on an AC interface the IP address of the Ethernet interface used by a local CE to connect to the AC interface.

The undo local-ce ip command deletes the configuration.

The local-ce mac broadcast command configures a broadcast address as the destination MAC address for a PE to send data frames to the local CE.

The undo local-ce mac broadcast command deletes the configuration.

The local-ce mac command on an AC interface the MAC address of the Ethernet interface used by a local CE to connect to the AC interface.

The undo local-ce mac command deletes the configuration.

By default, the IP address of the Ethernet interface used by a local CE to connect to an AC interface is not specified on the AC interface.

By default, a PE does not use the broadcast address as the destination MAC address to send data frames to a local CE.

By default, the MAC address of the Ethernet interface used by a local CE to connect to an AC interface is not specified on the AC interface.

Format

local-ce { ip ip-address | mac { mac-address | broadcast } }

undo local-ce ip

undo local-ce mac

undo local-ce mac broadcast

Parameters

Parameter Description Value
ip ip-address

Specifies the IP address of the Ethernet main interface or sub-interface on the local CE.

The value is in dotted decimal notation.

mac-address

Specifies the MAC address of the Ethernet main interface or sub-interface on the local CE.

The value is in the format of H-H-H.

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE Layer 2 sub-interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE Layer 2 sub-interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk Layer 2 sub-interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE Layer 2 sub-interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VE sub-interface view, XGE sub-interface view, XGE interface view, Layer 2 sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

If IP interworking is configured on the Ethernet AC interface on a PE, you need to run the local-ce mac or local-ce ip command on this AC interface to specify the MAC or IP address of the Ethernet interface connecting the local CE to the AC interface, so as to ensure communication between CEs.

If neither of the preceding commands is executed, you can run the local-ce mac broadcast command to configure a broadcast address as the destination MAC address for the PE to send data frames to the local CE.

Prerequisites

  • IP interworking has been configured for VPWS connections on the PE.
  • The AC interface on the PE is an Ethernet interface.

Configuration Impact

After receiving frames from a remote PE, a PE sends them to the local CE. If the MAC address of the local CE is neither statically configured using the local-ce mac command nor dynamically learned, the PE will send ARP requests to the IP address configured using the local-ce ip command.

After a MAC address is configured using the local-ce mac command, a PE encapsulates the MAC address into the data frame received from the remote PE before sending the data frame to the local CE.

Precautions

By default, a PE detects whether the CE with the MAC address that is dynamically learned by the PE is still being connected at intervals of 20 minutes. If the PE detects that the CE is disconnected, it deletes the ARP entry with this MAC address.

If the AC interface on a PE is an Ethernet sub-interface, the PE attaches the VLAN tag of the sub-interface to the data frame received from the remote PE before sending the data frame to the local CE.

Example

# Specify IP address 192.168.1.1 for the Ethernet sub-interface of the CE on AC interface GE 0/1/1.1.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1.1
[*HUAWEI-GigabitEthernet0/1/1.1] local-ce ip 192.168.1.1
# Configure a broadcast address as the destination MAC address on the Ethernet sub-interface GE 0/1/0.1 for the PE to send data frames to the local CE.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0.1
[*HUAWEI-GigabitEthernet0/1/0.1] local-ce mac broadcast
# Specify MAC address 00e0-fc20-b3a8 for the Ethernet interface of the CE on AC interface GE 0/1/1.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[*HUAWEI-GigabitEthernet0/1/1] local-ce mac 00e0-fc20-b3a8
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >