Configuring the link mode of an Ethernet interface
CAUTION: After you change the link mode of an Ethernet interface, all commands (except the shutdown command) on the Ethernet interface are restored to their defaults in the new link mode. | ||
Interfaces operate differently depending on the hardware structure of interface cards. For a device:
Some interfaces can operate only as Layer 2 Ethernet interfaces (in bridge mode).
Some interfaces can operate only as Layer 3 Ethernet interfaces (in route mode).
Some interfaces can operate either as Layer 2 or Layer 3 Ethernet interfaces.
You can set the link mode to bridge or route.
To change 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. Change the link mode of the Ethernet interface. | port link-mode { bridge | route } | The default setting is bridge. |