交換機1 把端口3設置成串口 端口1放在VALN 10裏面。
Switch(config)#hostname
% Incomplete command.
Switch(config)#hostname switch1
switch1(config)#vlan 10
switch1(config-vlan)#exit
switch1(config)#int fa0/1
switch1(config-if)#sw acc vlan 10
switch1(config-if)#
switch1#
%SYS-5-CONFIG_I: Configured from console by console
交換機2 端口1放在VALN 10裏面。
Switch(config)#hostname
% Incomplete command.
Switch(config)#hostname switch1
switch1(config)#vlan 10
switch1(config-vlan)#exit
switch1(config)#int fa0/1
switch1(config-if)#sw acc vlan 10
switch1(config-if)#
switch1#
%SYS-5-CONFIG_I: Configured from console by console
在把端口設置成串口之前兩臺電腦是不能通的
交換機1 把端口3設置成串口 端口1放在VALN 10裏面。
witch2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
switch2(config)#intf0/3
^
% Invalid input detected at '^' marker.
switch2(config)#int f0/3
switch2(config-if)#sw mode trunk
switch2(config-if)#exit
switch2(config)#
switch2#wKioL1ficTWC0WgaABjYi90K6D4878.jpg-wh_50
%SYS-5-CONFIG_I: Configured from console by console
做完以上步驟我們能發現這兩臺電腦可以相互ping通