[H3C]sysname 3SWS1
[3SWS1]sysname 3SW1
[3SW1]vlan 10
[3SW1-vlan10]vlan 20
[3SW1-vlan20]vlan 30
[3SW1-vlan30]quit
[3SW1]interface g 1/0/1
[3SW1-GigabitEthernet1/0/1]port access vlan 10
[3SW1-GigabitEthernet1/0/1]quit
[3SW1]interface g 1/0/2
[3SW1-GigabitEthernet1/0/2]port access vlan 20
[3SW1-GigabitEthernet1/0/2]quit
[3SW1]interface g 1/0/3
[3SW1-GigabitEthernet1/0/3]port access vlan 30
[3SW1-GigabitEthernet1/0/3]quit
[3SW1]interface vlan-interface 10
[3SW1-Vlan-interface10]%May 9 15:59:06:122 2025 3SW1 IFNET/3/PHY_UPDOWN: Physical state on the interface Vlan-interface10 changed to up.
%May 9 15:59:06:123 2025 3SW1 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Vlan-interface10 changed to up.
[3SW1-Vlan-interface10]ip address 192.168.10.254 24
[3SW1-Vlan-interface10]quit
[3SW1]interface vlan-interface 20
[3SW1-Vlan-interface20]%May 9 15:59:44:329 2025 3SW1 IFNET/3/PHY_UPDOWN: Physical state on the interface Vlan-interface20 changed to up.
%May 9 15:59:44:330 2025 3SW1 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Vlan-interface20 changed to up.
[3SW1-Vlan-interface20]ip address 192.168.20.254 24
[3SW1-Vlan-interface20]quit
[3SW1]interface vlan-interface 30
[3SW1-Vlan-interface30]%May 9 16:00:10:856 2025 3SW1 IFNET/3/PHY_UPDOWN: Physical state on the interface Vlan-interface30 changed to up.
%May 9 16:00:10:856 2025 3SW1 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Vlan-interface30 changed to up.
[3SW1-Vlan-interface30]ip address 192.168.30.254 24
[3SW1-Vlan-interface30]quit
[3SW1]display ip interface brief
*down: administratively down
(s): spoofing (l): loopback
Interface Physical Protocol IP Address Description
MGE0/0/0 down down -- --
Vlan10 up up 192.168.10.254 --
Vlan20 up up 192.168.20.254 --
Vlan30 up up 192.168.30.254 --
[3SW1]