S2(config-if)# interface vlan 99 S2(config-if)# ip addr
S2(config-if)# ip address 172.17.99.32 255.255.255.0 S2(config-if)# no shu
S2(config-if)# no shutdown
S2(config)# ip default-gateway 172.17.99.1 S2(config)# vtp mode client
Setting device to VTP CLIENT mode. S2(config)# vtp d
íP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/4 (1), with S1 FastEthernet0/4 (99). omain CCNA
Domain name already set to CCNA. S2(config)# vtp passw
S2(config)# vtp password CISCO
Setting device VLAN database password to CISCO S2(config)# vtp password cisco
S2(config-if)# switchport trunk native vlan 99 S2(config-if)# no shutdown S2(config-if)# interface fa0/11
S2(config-if)# switchport mode trunk
S2(config-if)# switchport trunk native vlan 99 S2(config-if)# no shutdown S2(config-if)# interface fa0/18
S2(config-if)# switchport mode trunk
S2(config-if)# switchport trunk native vlan 99 S2(config-if)# no shutdown S2(config-if)# exit
S2(config)# interface fa0/11 S2(config-if)# swit
S2(config-if)# switchport mode
S2(config-if)# switchport mode access S2(config-if)# switch
S2(config-if)# switchport access vlan 10 S2(config-if)# no shu
S2(config-if)# no shutdown S2(config-if)# swi
S2(config-if)# switchport mode access S2(config-if)# switch
S2(config-if)# switchport access
S2(config-if)# switchport access vlan 20
S2(config-if)# no shu
S2(config-if)# no shutdown S2(config-if)#
Switch> Switch> en Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# host
Switch(config)# hostname S3 S3(config)# vlan 99
S3(config-if-range)# switchport mode
S3(config-if-range)# switchport mode trunk S3(config-if-range)# sw
S3(config-if-range)# switchport tru
S3(config-if-range)# switchport trunk nati
S3(config-if-range)# switchport trunk native vlan 99
S3(config-if)# switchport trunk native vlan 99 S3(config-if)# no shutdown S3(config-if)# exit
S3(config)# vtp mode client
Setting device to VTP CLIENT mode. S3(config)# vtp domain CCNA Domain name already set to CCNA. S3(config)# vtp passw S3(config)# vtp password % Incomplete command.
S3(config)# vtp password cisco
Setting device VLAN database password to cisco S3(config)# interface fa0/7 S3(config-if)# switch
S3(config-if)# switchport mode access S3(config-if)# swi
S3(config-if)# switchport access
S3(config-if)# switchport access vlan 88 S3(config-if)# no shu
S3(config-if)# no shutdown S3(config-if)#
R1> en Password: Password:
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z. R1(config)# interfa
R1(config)# interface fa0/0 R1(config-if)# ip addr
R1(config-if)# interface fa0/0
R1(config-if)# 172.17.50.1 255.255.255.0 ^
% Invalid input detected at '^' marker.
R1(config-if)# ip addr 172.17.50.1 255.255.255.0 R1(config-if)# ip address 172.17.50.1 255.255.255.0 R1(config-if)# no shu
R1(config-if)# no shutdown R1(config-if)# enc R1(config-if)# en R1(config-if)# e R1(config-if)# exit R1(config-if)# ex R1(config)# encapsul R1(config)# encapsul R1(config)# enc R1(config)# enc R1(config)# enc R1(config)# R1(config)# interf
R1(config)# interface fa0/1 R1(config-if)# no shu
R1(config-if)# no shutdown R1(config-if)# encap R1(config-if)# interface
R1(config-if)# interface fa0/1.10 R1(config-subif)# enca
R1(config-subif)# encapsulation dot1q 10 R1(config-subif)#ip addr
R1(config-subif)# encapsulation dot1q 10 R1(config-subif)# ip addr
R1(config-subif)# ip address 172.17.10.1 255.255.255.0 R1(config-subif)# interface fa0/1.20 R1(config-subif)# ip addr
R1(config-subif)# ip address 172.17.20.1 255.255.255.0
% Configuring IP routing on a LAN subinterface is only allowed if that subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q, or ISL vLAN.
R1(config-subif)# interface fa0/1.88 R1(config-subif)# encaps
R1(config-subif)# encapsulation dot1q 88 R1(config-subif)# ip addr
R1(config-subif)# ip address 172.17.88.1 255.255.255.0 R1(config-subif)# interface fa0/1.99
R1(config-subif)# encapsulation dot1q 99
R1(config-subif)# ip address 172.17.99.1 255.255.255.0 R1(config-subif)# interface fa0/1.20
R1(config-subif)# encapsulation dot1q 20
R1(config-subif)# ip address 172.17.20.1 255.255.255.0 R1(config-subif)#exit
? 实验拓扑
? 心得体会
我学会了,帧中继传输数据,Cisco路由器需要知道哪个本地DLCL映射到远程目的地的第3层地址,这种地址到DLCL的映射可通过静态映射或动态映射指定。
实验三 交换机配置实训
? 实验目标
? ? ? ? ? ? ? ? ?
配置并检验基本设备配置。 配置 VTP 配置中继 配置 VLAN
为端口分配 VLAN 配置 STP
配置 VLAN 间单臂路由 配置无线连接 检验端到端连通性
? 实验拓扑