Configuring the link mode of an Ethernet interface
CAUTION: After you change the link mode of an Ethernet interface, all commands (except the shutdown and combo enable commands) on the Ethernet interface are restored to their defaults in the new link mode. | ||
Ethernet interfaces can operate either as Layer 2 or Layer 3 Ethernet interfaces. You can set the link mode to bridge or route for these Ethernet interfaces as follows:
Ethernet interfaces can operate as Layer 2 Ethernet interfaces (in bridge mode).
Ethernet interfaces can operate as Layer 3 Ethernet interfaces (in route mode).
To configure the link mode of an Ethernet interface:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter Ethernet interface view. | interface interface-type interface-number | N/A |
3. Configure the link mode of the Ethernet interface. | port link-mode { bridge | route } | By default, Ethernet interfaces operate as Layer 3 Ethernet interfaces (in route mode). |