如下图所示的网络,交换机使用 VLANIF 接口和路由器的子接口对接,则以下哪个配置可以实现这种需求?( )
A.interface Vlanif10正确答案B
Ip address 10.0.12.1 255.255.255.0
#
Interface GigabitEthernet 0/0/2 port link-type trunk
Port trunk pvid 10
Port trunk allow-pass vlan 10
# B.interface Vlanif10
Ip address 10.0.12.1 255.255.255.0
#
Interface GigabitEthernet 0/0/2 port link-type trunk
Port trunk allow-pass vlan 10
# C.interface Vlanif10
Ip address 10.0.12.1 255.255.255.0
#
Interface GigabitEthernet 0/0/2
Port link-type hybrid port hybrid untag vlan 10
# D.interface Vlanif10
Ip address 10.0.12.1 255.255.255.0
#
Interface GigabitEthernet 0/0/2 port link-type access
Port default vlan 10
#