Primary Secondary Type Ports ------- --------- ----------------- ------------------------------------------
1 2 3 4 5 6 7 8 9 10 11 12 13
Switch#show interface trunk
Port Mode Encapsulation Status Native vlan Fa0/24 on 802.1q trunking 1
Port Vlans allowed on trunk Fa0/241-4094
Port Vlans allowed and active in management domain Fa0/241,10,20,99
Port Vlans in spanning tree forwarding state and not pruned Fa0/241,10,20,99
Router端结果
1 2 3 4 5 6 7 8 9 10 11 12 13
Router#show ip interface brief Interface IP-Address OK? Method Status Prot ocol FastEthernet0 unassigned YES NVRAM up up FastEthernet0.1172.16.1.254 YES manual up up FastEthernet0.10172.16.10.254 YES manual up up FastEthernet0.20172.16.20.254 YES manual up up FastEthernet0.99 unassigned YES unset up up FastEthernet1 unassigned YES NVRAM up down BRI0 unassigned YES NVRAM administratively down down BRI0:1 unassigned YES unset administratively down down BRI0:2 unassigned YES unset administratively down down FastEthernet2 unassigned YES unset up down FastEthernet3 unassigned YES unset up down
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Router#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 3 subnets C 172.16.20.0 is directly connected, FastEthernet0.20 C 172.16.10.0 is directly connected, FastEthernet0.10 C 172.16.1.0 is directly connected, FastEthernet0.1