s5000p以太网端口有两种链路类型:access和trunk。access类型的端口只能属于一个vlan,一般用于连接计算机的端口;trunk类型的端口可以属于多个vlan,可以接收和发送多个vlan的报文,一般用于交换机之间连接的端口。
表5-6 配置以太网端口的链路类型为access

表5-7 配置以太网端口的链路类型为trunk

例:将以太网端口gigabitethernet0/1配置为trunk端口。
[h3c] system-view
enter system view, return to user view with ctrl+z.
[h3c] interface gigabitethernet0/1
[h3c-gigabitethernet0/1]port link-type trunk