相关配置如下: ! interface FastEthernet3/0 switchport access vlan 10
interface FastEthernet3/1 switchport access vlan 20
interface FastEthernet3/2 switchport access vlan 30
interface Vlan10 ip address 192. 168. 10. 1 255. 255. 255. 0
interface Vlan20 ip address 192. 168. 20. 1 255. 255. 255. 0
interface Vlan30 ip address 192. 168. 30. 1 255. 255. 255. 0