单臂路由和三层交换机.pdf
单臂路由和三层交换机一单臂路由1、分别设置 2 台 PC的 IP 地址为:PC0:192.168.0.11 255.255.255.0 192.168.0.1 PC1:192.168.1.11 255.255.255.0 192.168.1.1 2、交换机 1 上设置 Vlan22,并且设置连接端口1 的 PC1属于 Vlan22,再设置连接交换机0 的端口 24 为 Trunk 口Switchen Switch#conf t Enter configuration commands,one per line.End with CNTL/Z.Switch(config)#vlan 22 Switch(config-vlan)#exit Switch(config)#int fa 0/1 Switch(config-if)#switchport access vlan 22 Switch(config-if)#exit Switch(config)#int fa 0/24 Switch(config-if)#switchport mode trunk 交换机 0 上设置 Vlan11,并且设置连接端口1 的 PC0属于 Vlan11,再设置连接交换机1 的端口 24 为 Trunk 口,连接路由器的端口2 为 Trunk 口Switchen Switch#conf t Enter configuration commands,one per line.End with CNTL/Z.Switch(config)#vlan 11 Switch(config-vlan)#exit Switch(config)#int fa 0/1 Switch(config-if)#switchport access vlan 11 Switch(config-if)#exit Switch(config)#int fa 0/24 Switch(config-if)#switchport mode trunk Switch(config-if)#exit Switch(config)#int fa 0/2 Switch(config-if)#switchport mode trunk Switch(config-if)#exit?3、在路由器全局配置模式下创建fa 0/0.1 虚拟子接口,封装其 Vlan11的数据格式,并设置子接口的IP 地址为 PC0 的网关地址,最后将子接口激活;在路由器全局配置模式下创建fa 0/0.2虚拟子接口,封装其Vlan22 的数据格式,并设置子接口的 IP 地址为 PC1 的网关地址,文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5最后将子接口激活最后将 fa0/0 激活Routeren Router#conf t Router(config)#int fa 0/0.1 /创建虚拟子接口1 Router(config-subif)#encapsulation dot1Q 11 /封装 Vlan11 的数据格式,使得其可以转发Vlan11 的数据Router(config-subif)#ip address 192.168.0.1 255.255.255.0 /虚拟子接口分配一个IP 地址Router(config-subif)#no shut /激活子接口Router(config-subif)#exit Router(config)#int fa 0/0.2 /创建虚拟子接口2 Router(config-subif)#encapsulation dot1Q 22 /封装 Vlan22 的数据格式,使得其可以转发Vlan22 的数据Router(config-subif)#ip add 192.168.1.1 255.255.255.0 /虚拟子接口分配一个IP 地址Router(config-subif)#no shut /激活子接口Router(config-subif)#exit Router(config)#int fa 0/0 Router(config-if)#no shut 文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5在三个二层交换机上分别划出两VLAN,并将二层交换机上与三层交换或路由器上的接线设置为trunk 接口二:三层交换机的配置:1:首先在三层交换上划出两个VLAN,并进入 VLAN 为其配置 IP,此IP 将作为与他相连 PC的网关。2:将与二层交换机相连的线同样设置为trunk 接线,并将三层交换与路由器连接的线设置为路由接口(no switchsport)3:将路由器和下面的交换机进行单臂路由的配置交换机的配置命令:SW 0:SwitchSwitchenSwitch#confConfiguring from terminal,memory,or network terminal?Enter configuration commands,one per line.End with CNTL/Z.Switch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#int f0/2Switch(config-if)#switchport access vlan 2Switch(config-if)#no shutSwitch(config-if)#int f0/3Switch(config-if)#switchport mode trunk%LINEPROTO-5-UPDOWN:Line protocol on Interface FastEthernet0/3,changed state to down%LINEPROTO-5-UPDOWN:Line protocol on Interface FastEthernet0/3,changed state to upSwitch(config-if)#exitSwitch(config)#文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5SW 1:Switchen Switch#confConfiguring from terminal,memory,or network terminal?Enter configuration commands,one per line.End with CNTL/Z.Switch(config)#int f0/2Switch(config-if)#switchport access vlan 2%Access VLAN does not exist.Creating vlan 2Switch(config-if)#no shutSwitch(config-if)#exitSwitch(config)#int f0/3Switch(config-if)#switchport mode trunk%LINEPROTO-5-UPDOWN:Line protocol on Interface FastEthernet0/3,changed state to down%LINEPROTO-5-UPDOWN:Line protocol on Interface FastEthernet0/3,changed state to upSwitch(config-if)#SW 2:SwitchenSwitch#confConfiguring from terminal,memory,or network terminal?Enter configuration commands,one per line.End with CNTL/Z.Switch(config)#int f0/2Switch(config-if)#switchport access vlan 2%Access VLAN does not exist.Creating vlan 2Switch(config-if)#exit Switch(config)#int f0/3Switch(config-if)#switchport mode trunk Switch(config-if)#三层交换的配置命令:SwitchenSwitch#confConfiguring from terminal,memory,or 文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5network terminal?Enter configuration commands,one per line.End with CNTL/Z.Switch(config)#int f0/1Switch(config-if)#switchport mode trunk%LINEPROTO-5-UPDOWN:Line protocol on Interface FastEthernet0/2,changed state to downSwitch(config-if)#exitSwitch(config)#int f0/2Switch(config-if)#switchport mode trunk Switch(config-if)#exitSwitch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#int vlan 1Switch(config-if)#no shut%LINK-5-CHANGED:Interface Vlan1,changed state to up%LINEPROTO-5-UPDOWN:Line protocol on Interface Vlan1,changed state to upSwitch(config-if)#ip address 192.168.1.168 255.255.255.0Switch(config-if)#exitSwitch(config)#int vlan 2%LINK-5-CHANGED:Interface Vlan2,changed state to up%LINEPROTO-5-UPDOWN:Line protocol on Interface Vlan2,changed state to upSwitch(config-if)#ip addSwitch(config-if)#ip address 192.168.2.168 255.255.255.0Switch(config-if)#%LINK-5-CHANGED:Interface FastEthernet0/3,changed state to up%LINEPROTO-5-UPDOWN:Line protocol on Interface FastEthernet0/3,changed state to upSwitch(config-if)#exitSwitch(config)#int 文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5文档编码:CC6T9P4B8Y3 HT7V2F8M2F4 ZQ4S7H7C5N5f0/3Switch(config-if)#no switchport%LINEPROTO-5-UPDOWN:Line protocol on Interface FastEthernet0/3,changed state to down%LINEPROTO-5-UPDOWN:Line protocol on Interface FastEthernet0/3,changed state to upSwitch(config-if)#Switch(config-if)#ip address 192.168.10.1 255.255.255.0Switch(config-if)#no shutSwitch(config-if)#exitSwitch(config)#ip routingSwitch(config-if)#exitSwitch(config)#ip route 0.0.0.0 0.0.0.0 192.168.10.2Switch(config)#路由器的配置:RouterenRouter#confConfiguring from terminal,memory,or network terminal?Enter configuration commands,one per line.End with CNTL/Z.Router(config)#int f0/0Router(config-if)#no shut%LINK-5-CHANGED:Interface FastEthernet0/0,changed state to upRouter(config-if)#exitRouter(config)#int f0/1Router(config-if)#no shut%LINK-5-CHANGED:Interface FastEthernet0/1,changed state to up%LINEPROTO-5-UPDOWN:Line protocol on Interface FastEthernet0/1,changed state to upRouter(config-if)#exitRouter(config)#in