主机PCA的IP地址为40.1.1.1,MAC地址为0011.1111.1111,连接在交换机SWA的GigabitEthernet1/0/1端口上,在交换机SWA上配置了如下命令:
[SWA]vlan 10 [SWA-vlan10]quit [SWA]vlan 20
[SWA-vlan20]protocol-vlan ipv4 [SWA-vlan20]quit
[SWA]vlan 30 [SWA-vlan30]quit
[SWA]mac-vlan mac-address 0011-1111-1111 vlan 30
[SWA]vlan 40
[SWA-vlan40]ip-subnet-vlan ip 50.1.1.0 255.255.255.0 [SWA-vlan40]quit
[SWA]interface GigabitEthernet 1/0/1
[SWA-GigabitEthernet1/0/1]port link-type hybrid [SWA-GigabitEthernet1/0/1]port hybrid pvid vlan 10
[SWA-GigabitEthernet1/0/1]port hybrid vlan 10 20 30 40 untagged
[SWA-GigabitEthernet1/0/1]port hybrid protocol-vlan vlan 20 0 [SWA-GigabitEthernet1/0/1]port hybrid ip-subnet-vlan vlan 40 [SWA-GigabitEthernet1/0/1]mac-vlan enable
[SWA-GigabitEthernet1/0/1]vlan precedence ip-subnet-vlan
配置完成后,可以判断PCA会加入
[SWA]vlan 10 [SWA-vlan10]quit [SWA]vlan 20
[SWA-vlan20]protocol-vlan ipv4 [SWA-vlan20]quit
[SWA]vlan 30 [SWA-vlan30]quit
[SWA]mac-vlan mac-address 0011-1111-1111 vlan 30
[SWA]vlan 40
[SWA-vlan40]ip-subnet-vlan ip 50.1.1.0 255.255.255.0 [SWA-vlan40]quit
[SWA]interface GigabitEthernet 1/0/1
[SWA-GigabitEthernet1/0/1]port link-type hybrid [SWA-GigabitEthernet1/0/1]port hybrid pvid vlan 10
[SWA-GigabitEthernet1/0/1]port hybrid vlan 10 20 30 40 untagged
[SWA-GigabitEthernet1/0/1]port hybrid protocol-vlan vlan 20 0 [SWA-GigabitEthernet1/0/1]port hybrid ip-subnet-vlan vlan 40 [SWA-GigabitEthernet1/0/1]mac-vlan enable
[SWA-GigabitEthernet1/0/1]vlan precedence ip-subnet-vlan
配置完成后,可以判断PCA会加入
A VLAN 10
B VLAN20
C VLAN30
D VLAN40
相关试题
-
主机PCA的IP地址为40.1.1.1,MAC地址为0011.1111.1111,连接在交换机SWA的GigabitEthernet1/0/1端口上,在交换机SWA上配置了如下命令:[SWA]vlan
-
主机PCA的IP地址为40.1.1.1,MAC地址为0011.1111.1111PCA连接在交换机SWA的GigabitEthernet1/0/1端口上在交换机SWA上配置了如下命令:[SWA]vla
-
主机PCA的IP地址为40.1.1.1, MAC地址为0011.1111.1111PCA连接在交换机SWA的GigabitEthernet1/0/1端口上在交换机SWA上配置了如下命令:[SWA]v
-
mp;SWA上配[SWA]vlan 10[SWA-vlan10]port ethernet 1/0/1 [SWA-vlan10]quit[SWA]vlan 20[SWA-vlan20]port et
-
主机PCA的IP地址为40.1.1.1,MAC地址为0011.1111.11, 接在交换机的GigabitEthernet1/0/1口,在交换机上配置了如下命令:[H3C]vlan 10 [H3C-