组网综合实验


access-list 100 deny ip 192.168.10.0 0.0.0.255 61.24.1.2 0.0.0.0 eq ftp

access-list 100 deny ip 192.168.10.0 0.0.0.255 61.24.1.2 0.0.0.0
access-list 100 permit ip any any

inter f0/1
ip access-group 100 out

S2_000

24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)

63488K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address : 0060.472A.D924
Motherboard assembly number : 73-9832-06
Power supply part number : 341-0097-02
Motherboard serial number : FOC103248MJ
Power supply serial number : DCA102133JA
Model revision number : B0
Motherboard revision number : C0
Model number : WS-C2960-24TT
System serial number : FOC1033Z1EY
Top Assembly Part Number : 800-26671-02
Top Assembly Revision Number : B0
Version ID : V02
CLEI Code Number : COM3K00BRA
Hardware Board Revision Number : 0x01


Switch Ports Model SW Version SW Image
------ ----- ----- ---------- ----------
* 1 26 WS-C2960-24TT 12.2 C2960-LANBASE-M

Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(25)FX, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Wed 12-Oct-05 22:05 by pt_team

Press RETURN to get started!


%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up


Switch>en
Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.

Switch(vlan)#vlan 10
VLAN 10 added:
Name: VLAN0010
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#inter vlan 1
Switch(config-if)#ip address 192.168.1.10 255.255.255.0
Switch(config-if)#no shutdown

Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

Switch(config-if)#exit
Switch(config)#ip default-gateway 192.168.1.1
Switch(config)#inter








Switch con0 is now available




S3_111

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#vlan 10
^
% Invalid input detected at '^' marker.

Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult

user
documentation for configuring VTP/VLAN in config mode.

Switch(vlan)#vlan 10
VLAN 10 added:
Name: VLAN0010
Switch(vlan)#vlan 11
VLAN 11 added:
Name: VLAN0011
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#inter f0/1
Switch(config-if)#exit
Switch(config)#inter vlan 1
Switch(config-if)#ip address 192.168.1.2 255.255.255.0
Switch(config-if)#ip helper-address 192.168.16.10
Switch(config-if)#no shutdown

%LINK-5-CHANGED: Interface Vlan1, changed state to up

Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
exit
Switch(config)#inter f0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 1
Switch(config-if)#no shutd
Switch(config-if)#exit
Switch(config)#inte vlan 10
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up

Switch(config-if)#ip address 192.168.10.1 255.255.255.0
Switch(config-if)#ip helper-address 192.168.16.10
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#inter vlan 11
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan11, changed state to up

Switch(config-if)#ip address 192.168.11.1 255.255.255.0
Switch(config-if)#ip helper-address 192.168.16.10
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#inter f0/2
Switch(config-if)#switchport mode trunk
Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up

Switch(config-if)#exit
Switch(config)#inter f0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#inter f0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 11

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan11, changed state to up
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#ip routing
Switch(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1
Switch(config)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console


S3_00

witch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#exit

%SYS-5-CONFIG_I: Configured from console by console
Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.

Switch(vlan)#vlan 16
VLAN 16 added:
Name: VLAN0016
Switch(vlan)#vlan 20
VLAN 20 added:
Name: VLAN0020
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switc

h(config)#inter f0/5
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 16
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#inter f0/1
Switch(config-if)#switchport mode trunk
Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.
Switch(config-if)#exit
Switch(config)#inter f02
^
% Invalid input detected at '^' marker.

Switch(config)#inter f0/2
Switch(config-if)#exit
Switch(config)#inter f0/7
Switch(config-if)#switchport mode trunk
Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.
Switch(config-if)#exit
Switch(config)#inter f0/1
Switch(config-if)#ip address 192.168.20.1
^
% Invalid input detected at '^' marker.

Switch(config-if)#ip address 192.168.20.1 255.255.255.0
^
% Invalid input detected at '^' marker.

Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#no shutd
Switch(config-if)#exit
Switch(config)#inter vlan 1
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shutd

%LINK-5-CHANGED: Interface Vlan1, changed state to up

Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

Switch(config-if)#exit
Switch(config)#inter f0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport acces vlan 1
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#inter vlan 16
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan16, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan16, changed state to up

Switch(config-if)#ip address 192.168.16.1 255.255.255.0
Switch(config-if)#ip helper-address 192.168.16.10
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#ip route 0.0.0.0 0.0.0.0 192.168.20.2
Switch(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.2
Switch(config)#ip route 192.168.12.0 255.255.255.0 192.168.1.3
Switch(config)#ip route 192.168.13.0 255.255.255.0 192.168.1.3
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#ip routing
^
% Invalid input detected at '^' marker.

Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#ip routing
Switch(config)#edn
^
% Invalid input detected at '^' marker.

Switch(config)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate defau

lt, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is 192.168.1.2 to network 0.0.0.0

C 192.168.1.0/24 is directly connected, Vlan1
S 192.168.12.0/24 [1/0] via 192.168.1.3
S 192.168.13.0/24 [1/0] via 192.168.1.3
C 192.168.16.0/24 is directly connected, Vlan16
S* 0.0.0.0/0 [1/0] via 192.168.1.2
Switch#

相关文档
最新文档