By default, Ethernet interfaces on switches work as Layer 2 interfaces.Run the undo portswitch command to configure the Ethernet interfaces as Layer 3 interfaces.
For switches in V200R003C00 and earlier versions:
Only Layer 2 Ethernet interfaces on the S5300HI and S5310EI can be configured as Layer 3 interfaces.
After an Ethernet interface is configured as a Layer 3 interface, the interface cannot be configured with an IP address.
For switches in V200R005C00 and later versions:
Only Layer 2 Ethernet interfaces on the S5300HI, S5310EI, S5300EI, S5320EI, S6300EI and S6320EI can be configured as Layer 3 interfaces.
After an Ethernet interface is configured as a Layer 3 interface, the interface can be configured with an IP address.