Interconnecting Cisco
Networking Devices
Part 1
1.0
: 97-2507-01
: . CISCO
,
,
CISCO. CISCO
, ,
, , ,
. , Cisco
, .
................................................................ 1
.................................................................................................................................................... 1
............................................................................................................................. 1
1-1:
Windows .......................................... 3
........................................................................................................................ 3
.................................................................................................................... 3
................................................................................................................... 3
................................................................................................................................ 4
....................................................................................................................................... 4
1: IP- ................................................................... 5
2: Ethernet- ......... 6
3: ,
...................................................................................................................................... 8
4: IP- MAC- ARP ............................. 9
1-2: TCP.............................................. 10
...................................................................................................................... 10
.................................................................................................................. 10
................................................................................................................. 10
.............................................................................................................................. 11
..................................................................................................................................... 11
1: TCP ......................................... 11
2: TCP ................................................................. 13
3: TCP.................................................. 16
1-3: ................................................... 19
...................................................................................................................... 19
.................................................................................................................. 19
................................................................................................................. 19
.............................................................................................................................. 20
..................................................................................................................................... 20
1: IP-............................................... 20
2: DNS- ...................................................................... 21
3: DNS- ................................................................. 22
2-1: ................. 24
...................................................................................................................... 24
.................................................................................................................. 24
................................................................................................................. 25
.............................................................................................................................. 25
..................................................................................................................................... 26
1: ............................................................ 27
2: VPN- .................................................... 31
2-2: .................................... 35
...................................................................................................................... 35
.................................................................................................................. 35
................................................................................................................. 35
.............................................................................................................................. 36
..................................................................................................................................... 37
1: ....................................... 37
2: .................. 38
3:
............................................................................................................................... 42
4: ................................ 46
2-3: ....... 48
...................................................................................................................... 48
.................................................................................................................. 48
................................................................................................................. 49
.............................................................................................................................. 49
..................................................................................................................................... 51
1: VTY ............ 51
2: .................................................................. 53
3: ........................................................................................ 54
4: SSH ........................................... 56
5: ........................................................ 58
6: O ....... 63
2-4: Cisco IOS .................................. 65
...................................................................................................................... 65
................................................................................................................. 65
................................................................................................................ 66
............................................................................................................................. 66
..................................................................................................................................... 67
1: .......................................................................... 67
2: ............................................................ 68
3: CLI................................................................................ 69
4-1:
......................................................................................................................................... 72
...................................................................................................................... 72
................................................................................................................. 72
................................................................................................................ 72
............................................................................................................................. 72
..................................................................................................................................... 73
....................................................................................... 73
1: .......................................... 73
2: .......................................... 73
4-2: ....................................... 74
...................................................................................................................... 74
................................................................................................................. 74
................................................................................................................ 74
............................................................................................................................. 74
..................................................................................................................................... 75
....................................................................................... 75
1: IP- ................. 75
2: IP- ................. 76
3: IP- ............................................................................ 77
4: IP- .............................. 78
4-3: ..................................................... 79
...................................................................................................................... 79
................................................................................................................. 79
................................................................................................................ 79
............................................................................................................................. 79
..................................................................................................................................... 80
....................................................................................... 80
1: O ,
C ............................................................................................................................... 80
2: O ,
B ............................................................................................................................... 80
3: O ,
A ............................................................................................................................... 81
4-4: .................................................................... 82
...................................................................................................................... 82
................................................................................................................. 82
................................................................................................................ 82
............................................................................................................................. 82
..................................................................................................................................... 83
....................................................................................... 83
1: O ............................................. 83
2: O ............................................................. 83
3: O ..................................... 84
4:
ii
........................................................................................................................ 85
5: O
..................................................................................................................... 86
6: O . 88
4-5: ....................................................... 90
...................................................................................................................... 90
.................................................................................................................. 90
................................................................................................................. 91
.............................................................................................................................. 91
..................................................................................................................................... 91
1: ........................................ 91
2: , ......... 92
4-6: .................................................. 96
...................................................................................................................... 96
.................................................................................................................. 96
................................................................................................................. 96
.............................................................................................................................. 97
..................................................................................................................................... 97
1: setup........................................ 97
2: ................................................................ 101
4-7:
............................................................................................................................... 102
.................................................................................................................... 102
................................................................................................................ 102
............................................................................................................... 103
............................................................................................................................ 103
................................................................................................................................... 104
1: ................................ 104
2: A ................................................................. 106
3: .......................................................................................... 107
4: B SSH ......................................... 108
4-8: Cisco SDM DHCP- .... 112
.................................................................................................................... 112
................................................................................................................ 112
............................................................................................................... 113
............................................................................................................................ 113
................................................................................................................................... 113
1: -,
15, Telnet SSH....................................................... 114
2: Cisco SDM DHCP............................................. 115
3: ..... 119
4-9: .......................................... 121
.................................................................................................................... 121
................................................................................................................ 121
............................................................................................................... 121
............................................................................................................................ 122
................................................................................................................................... 122
1: O CLI .................................................. 122
2: VPN .............................. 124
3: CLI Cisco IOS Telnet SSH ...... 125
5-1: .............................................................. 131
.................................................................................................................... 131
................................................................................................................ 131
............................................................................................................... 132
............................................................................................................................ 132
................................................................................................................................... 132
1: Cisco SDM
Ethernet............................................................................................................................. 132
2: PAT
.............................................................................................. 138
2007 Cisco Systems, Inc.
iii
5-2: ............................................................141
.....................................................................................................................141
................................................................................................................141
...............................................................................................................141
............................................................................................................................142
....................................................................................................................................142
1: H 0/0/0
...........................................................................................................................143
2: ...........................................144
3: ............................146
5-3: ................................148
.....................................................................................................................148
................................................................................................................148
...............................................................................................................148
............................................................................................................................149
....................................................................................................................................149
1: H RIP .....149
2: ...............151
6-1: Cisco .....................................154
.....................................................................................................................154
................................................................................................................154
...............................................................................................................155
............................................................................................................................155
....................................................................................................................................155
1: Cisco
............................................................................................................................155
2: Cisco
............................................................................................................................158
6-2: ............................161
.....................................................................................................................161
................................................................................................................161
...............................................................................................................162
............................................................................................................................162
....................................................................................................................................162
1: ..................................................................163
2: O - .165
6-3: Cisco ...........................................................169
.....................................................................................................................169
................................................................................................................169
...............................................................................................................170
............................................................................................................................170
....................................................................................................................................171
1: .........................................................................171
2: ................................................................................174
6-4: ..................................177
.....................................................................................................................177
................................................................................................................177
...............................................................................................................178
............................................................................................................................178
....................................................................................................................................178
1: ...................................................................183
2: .......................................................................183
3: .............................................................................................184
iv
.................................................................................................... 186
2-2: ............ 186
2-3:
............................................................................................................................... 188
2-4: Cisco IOS........... 192
4-1:
............................................................................................................. 196
4-2: ................ 197
4-3: ............................. 201
4-4 ........................................................................................... 202
4-5: ............................... 208
4-6: .......................... 211
4-7:
......................................................................................................................... 213
4-8: Cisco SDM DHCP ....................................................................................................................................... 215
4-9. .................... 218
5-1: ........................................ 221
5-2: ...................................... 224
5-3:
.......................................................................................................................................... 227
6-1: Cisco............... 230
6-2: ...... 237
6-3: Cisco ..................................... 240
6-4: ............ 241
ICND1
,
.
.
:
1-1: Windows
.
1-2: TCP.
1-3: .
2-1:
2-2: .
2-3:
.
4-1:
.
4-2: .
4-3: .
4-4:
4-5: .
4-6: .
4-7:
4-9: .
5-1: .
5-2: .
5-3:
.
6-1: Cisco.
6-2: .
6-3: Cisco.
6-4:
1-1:
Windows
.
,
, .
Windows
IP- .
:
ipconfig
Windows;
,
, ping Windows;
ARP IP-
MAC- .
, .
1-1
Windows
ICND1 v1.0 3
, .
, .
, .
Windows
arp -a
a
ARP. , ARP
5 .
ipconfig
IP-,
IP- .
ping
ping (-t)
.
1: IP-
IP-, ipconfig Windows.
Windows, .
:
1
Windows .
cmd .
OK.
ipconfig.
.
1.
, Ethernet.
C:\Documents and Settings>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Media State . . . . . . . . . . . : Media disconnected
2. ,
IP-. ,
, ipconfig ,
.
4
DNS
. .
. .
. .
Suffix
. . . .
. . . .
. . . .
.
.
.
.
:
: 0.0.0.0
: 0.0.0.0
:
3. ,
IP- ,
. ,
IP- .
. IP-
169.254.x.x, .
C:\Documents and Settings>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix
Autoconfiguration IP Address. .
Subnet Mask . . . . . . . . . .
Default Gateway . . . . . . . .
.
.
.
.
:
: 169.254.249.221
: 255.255.0.0
:
1. ,
IP-. IP-,
.
C:\Documents and Settings>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific
IP Address. . . . .
Subnet Mask . . . .
Default Gateway . .
DNS
. .
. .
. .
Suffix
. . . .
. . . .
. . . .
.
.
.
.
:
:
:
:
cisco.com
192.168.1.105
255.255.255.0
192.168.1.1
.
IP-.
ipconfig
, .
IP-
IP-
, :
ipconfig IP-.
2: Ethernet-
Windows.
, ,
IP- .
Windows
.
(TCP/IP), .
.
(TCP/IP)
IP- , .
,
IP-, IP-,
ipconfig, .
. . .
Windows.
, :
TCP/IP Windows
;
TCP/IP ipconfig.
3: ,
ping Windows.
, - ,
.
:
1
ping ,
1.
ping.
.
. , IP-
.
C:\Documents and Settings>ping 192.168.1.1
Pinging 192.168.1.1 with 32 bytes of data:
Request
Request
Request
Request
timed
timed
timed
timed
out.
out.
out.
out.
.
IP-.
C:\Documents and Settings>ping 192.168.1.1
Pinging 192.168.1.1 with 32 bytes of data:
Reply
Reply
Reply
Reply
from
from
from
from
192.168.1.1:
192.168.1.1:
192.168.1.1:
192.168.1.1:
bytes=32
bytes=32
bytes=32
bytes=32
time<1ms
time<1ms
time<1ms
time<1ms
TTL=255
TTL=255
TTL=255
TTL=255
, Windows
- (- ICMP).
, :
ping Windows
, ;
4: IP- MAC-
ARP
arp a Windows IP-
MAC-.
:
1
arp a. ARP
a.
Type
dynamic
, 1.
, ,
ARP 1 .
exit,
.
, :
IP- MAC-.
1-2:
TCP
,
, .
TCP.
:
Ethernet-.
TCP- ;
, .
1-2
TCP
ICND1 v1.0 4
, .
10
Wireshark Windows.
1 1.
, .
Windows
Internet Explorer
, .
Wireshark
.
,
. ,
.
.
1:
TCP
Wireshark
Ethernet.
:
1
Wireshark, .
11
Ethernet. - ,
. Start ()
. IP- Ethernet-. IP-
, .
IP- : _______________________________
12
TCP .
.
, .
, :
Ethernet-,
.
2: TCP
- (Internet Explorer).
, - . HTTP, -,
TCP.
UDP.
, TCP .
:
1
Internet Explorer
.
.
, www.cisco.com.
. __________________________________________
13
14
TCP-,
TCP-, Wireshark.
,
Analyze (). Display Filters ( ).
Wireshark
TCP-
. .
Info
, .
.
,
.
. 1, 12
.
.
TCP :
________________________________________________________________________
10
4 .
15
, :
, , 8;
,
.
3: TCP
TCP,
,
Packet Details ( ) Wireshark.
16
Wireshark ( )
, .
,
.
Wireshark
.
.
+ ,
TCP. .
,
() 0, Flags () SYN
1 ().
( ).
.
,
() 0 ,
1. , Flags
(acknowledgment) SYN 1 ().
( ).
.
17
,
() 1,
1, Flags
1 (). TCP
,
, ,
.
Wireshark .
, :
18
,
, .
1-3:
,
, .
.
:
IP- DNS-, ,
ipconfig /all Windows;
IP- DNS-,
2, tracert /d Windows.
, .
1-3
ICND1 v1.0 5
, .
, .
19
, .
Windows
ipconfig /all
IP-.
ping
ping (-t)
tracert /d <ip->
IP- ,
IP- .
.
1:
IP-
IP- ,
ipconfig /all Windows. Windows,
.
20
Windows .
cmd .
OK .
ipconfig /all.
/all, .
IP- DNS- ,
, .
____________________________________________________________
, :
ipconfig /all, , IP
DNS-.
2: DNS-
DNS-,
, ping.
:
1
- ,
, .
- .
- ,
.
, :
IP- DNS-,
1, ping Windows.
21
3: DNS-
DNS-,
, tracert /d. /d
dns- IP-
. DNS ,
. tracert
/d, , , DNS
IP-.
22
DNS. ,
30 . ,
(30) ^C <ctrl-C>.
DNS-
/d, , c
.
( IP-).
, X .
, :
DNS-
tracert /d, ;
c tracert /d, ,
, IP-
.
23
2-1:
,
(pod)
VPN-.
,
. ,
.
:
,
;
,
VPN-, ;
Cisco Router
Security Device Manager (SDM).
, .
2-1
24
ICND1 v1.0 6
.
.
SSH-.
( ).
Cisco, .
. .
VPN-.
VPN- , .
.
, .
, .
, Cisco
Catalyst 2960 Cisco 2811 (
Cisco).
:
, .
Windows
, SSH
VPN-
Windows
ipconfig /all
IP-.
25
.
(
).
1.
()
IP-
SSH
IP- VPN-RTR ( )
VPN-
VPN ( SSH)
SSH
2. IP- TFTP-
26
IP-
TFTP-
IP-
TFTP-
10.2.2.1
10.6.6.1
10.3.3.1
10.7.7.1
10.4.4.1
10.8.8.1
10.5.5.1
10.9.9.1
1:
SSH.
Cisco
.
:
1
.
PuTTY.
, SSH. IP-
Host Name ( )
Open ().
27
28
SSH
, 1.
PuTTY.
Yes ().
,
.
,
. :
Ctrl-Shift-6. x ( ).
, .
29
1
, 2
exit . exit
. exit, Enter.
, .
.
,
.
, :
30
,
1;
, .
2: VPN-
Cisco VPN Client
. ,
IP- .
:
1
Connect ()
.
Connect , .
31
VPN, 1,
Enter. VPN .
. ,
.
IP- ,
IPCONFIG.
IP- Ethernet.
,
, .
VPN ,
,
VPN-.
,
, Ethernet-.
-, 10.x.x.1, x = 2
A, x =3 B . . (x = 9 H),
. - ,
. .
from
from
from
from
10.10.10.1:
10.10.10.1:
10.10.10.1:
10.10.10.1:
bytes=32
bytes=32
bytes=32
bytes=32
time=9ms
time=8ms
time=9ms
time=8ms
TTL=127
TTL=127
TTL=127
TTL=127
32
VPN.
10
VPN-,
, VPN. ,
Disconnect
().
11
Disconnect VPN.
IP-
.
12
VPN.
13
IPCONFIG , ,
IP-.
14
Windows.
33
, :
34
VPN-
1;
ping
.
2-2:
,
, .
.
:
Cisco Catalyst.
, .
2-2
IP-
SwitchA
10.2.2.11
255.255.255.0
SwitchB
10.3.3.11
255.255.255.0
SwitchC
10.4.4.11
255.255.255.0
SwitchD
10.5.5.11
255.255.255.0
SwitchE
10.6.6.11
255.255.255.0
SwitchF
10.7.7.11
255.255.255.0
SwitchG
10.8.8.11
255.255.255.0
SwitchH
10.9.9.11
255.255.255.0
ICND1 v1.0 7
, .
, .
SSH.
,
2-1.
35
, .
Cisco IOS
36
configure terminal
copy running-config
.
.
enable
EXEC.
EXEC
.
(enable password), .
enable password
Enable password
(enable).
.
enable secret
_
(enable).
enable secret ,
enable password,
.
end
erase startup-config
,
.
hostname _
, .
interface vlan 1
VLAN 1,
IP- .
ip address ip-
IP- .
ip default-gateway ip-
.
,
IP-,
.
line vty 0 15
. (VTY)
.
VTY Cisco IOS.
0-4 0-15 ().
login
,
.
password
VTY .
reload
Cisco IOS .
IP-
(Cisco Catalyst 2950).
[no] shutdown
shutdown
. no
.
. ,
.
1.
Enable password
cisco
sanfran
Hostname
. 2
. 2
IP default gateway
10.x.x.3 ( x.x )
VTY
sanjose
2. IP-
IP-
SwitchA
10.2.2.11
255.255.255.0
SwitchB
10.3.3.11
255.255.255.0
SwitchC
10.4.4.11
255.255.255.0
SwitchD
10.5.5.11
255.255.255.0
SwitchE
10.6.6.11
255.255.255.0
SwitchF
10.7.7.11
255.255.255.0
SwitchG
10.8.8.11
255.255.255.0
SwitchH
10.9.9.11
255.255.255.0
1:
,
2-1.
:
1
SSH,
2-1.
,
. 1 8.
cls2.
Enter. , .
.
.
37
************************
ICND WG_Z
**************************
************************
MENU
**************************
To exit ssh session and return to the menu press
<CTRL>+<SHFT>+<6> then <X>. To clear a connection to begin
a new console session type cls# (where # = the menu item number)
Type "exit" to return to main menu.
*****************************************************************
ITEM#
DEVICE NAME
----------------------------------------------------------------1
WorkGroup Z Router
WorkGroup Z Switch
exit
, 2 ,
Enter.
.
************************
ICND WG_Z
**************************
************************
MENU
**************************
To exit ssh session and return to the menu press
<CTRL>+<SHFT>+<6> then <X>. To clear a connection to begin
a new console session type cls# (where # = the menu item number)
Type "exit" to return to main menu.
*****************************************************************
ITEM#
DEVICE NAME
----------------------------------------------------------------1
WorkGroup Z Router
WorkGroup Z Switch
exit
, :
SSH- 2 2-1.
2:
erase startup-config,
startup-config
NVRAM ( ).
, .
38
:
1
Enter .
Switch>, 3.
2.
, Yes
. Enter.
.
, erase startup-config.
.
Switch>erase startup-config
^
% Invalid input detected at '^' marker.
4
EXEC
. enable.
.
Switch>enable
Switch#
5
, Switch>
Switch#. ,
(enable EXEC). erase startup-config,
. Enter
Enter, .
.
Switch#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue?
[confirm]<ENTER>
[OK]
Erase of nvram: complete
00:18:46: %SYS-7-NV_BLOCK_INIT: Initalized the geometry of nvram <ENTER>
Switch#
6
reload. .
.
.
.
.
Switch#reload
Proceed with reload? [confirm]<ENTER>
00:21:00: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.
2007 Cisco Systems, Inc.
39
Ports
----26
Model
----WS-C2960-24TT-L
SW Version
---------12.2(25)SEE2
SW Image
---------C2960-LANBASEK9-M
41
,
Enter,
yes ( ).
.
. ,
1 .
--- System Configuration Dialog --Would you like to enter the initial configuration dialog? [yes/no]:
, :
, 6 8.
3:
, ,
, System Configuration ( ).
.
setup ,
.
:
1
. (
, . ), yes Enter,
. ,
, .
--- System Configuration Dialog --Would you like to enter the initial configuration dialog? [yes/no]:yes
2
, no.
At any point you may enter a question mark '?' for help.
42
, no .
First, would you like to see the current interface summary? [yes]: no
4
(, SwitchJ).
, 1 2-2.
enable secret EXEC .
.
enable password
,
enable secret.
no
.
43
no Enable as a Cluster
Command Switch.
Cisco IOS,
.
( --More--).
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
interface
!
end
FastEthernet0/4
FastEthernet0/5
FastEthernet0/6
FastEthernet0/7
FastEthernet0/8
FastEthernet0/9
FastEthernet0/10
FastEthernet0/11
FastEthernet0/12
FastEthernet0/13
FastEthernet0/14
FastEthernet0/15
FastEthernet0/16
FastEthernet0/17
FastEthernet0/18
FastEthernet0/19
FastEthernet0/20
FastEthernet0/21
FastEthernet0/22
FastEthernet0/23
FastEthernet0/24
GigabitEthernet0/1
GigabitEthernet0/2
13
, 2
NVRAM .
, :
,
;
45
2, NVRAM
.
4:
setup IP-
.
Vlan 1 .
.
:
1
EXEC
enable. ,
.
. , enable password
sanfran.
2
configure terminal.
conf t.
.
SwitchX#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SwitchX(config)#
3
end.
.
SwitchX(config)#end
SwitchX#
1d00h: %SYS-5-CONFIG_I: Configured from console by console
5
, :
46
IP- ;
startup-config.
47
2-3:
,
, .
.
:
VTY ;
Cisco IOS;
,
SSH VTY.
MAC-;
, .
2-3
IP-
SwitchA
10.2.2.11
255.255.255.0
SwitchB
10.3.3.11
255.255.255.0
SwitchC
10.4.4.11
255.255.255.0
SwitchD
10.5.5.11
255.255.255.0
SwitchE
10.6.6.11
255.255.255.0
SwitchF
10.7.7.11
255.255.255.0
SwitchG
10.8.8.11
255.255.255.0
SwitchH
10.9.9.11
255.255.255.0
48
ICND1 v1.0 8
, .
, .
SSH.
,
2-1.
2-2.
, .
Cisco IOS
? help
banner login
,
.
clear mac-address-table
dynamic interface int-id
MAC-,
.
MAC-,
. access
.
configure terminal
copy running-config
. .
copy running-config
startup-config
, NVRAM.
RSA.
enable
EXEC.
EXEC .
(enable password),
.
end
interface int-id
.
.
ip domain-name
IP,
.
ip ssh version [1 | 2]
SSH, .
SSH
, no .
line console 0
0.
49
50
line vty 0 15
.
(VTY)
.
VTY Cisco IOS.
0 4 0 15 ().
login
VTY.
login local
VTY,
.
logout
EXEC,
( ).
password
VTY .
ping ip-
.
- - ICMP, ,
. ping
, -.
reload
Cisco IOS.
service password-encryption
,
.
show ip arp
IP-,
IP- MAC-.
show ip ssh
SSH.
show mac-address-table
dynamic
MAC- .
show mac-address-table
interface int-id
MAC- ,
.
show port-security
int-id
.
MAC-.
show running-config
, .
shutdown
no shutdown
. no
, .
switchport port-security
. .
switchport port-security
mac-address sticky
MAC-, ,
.
switchport port-security
maximum []
MAC- .
no , .
switchport port-security
violation
,
. : protect (), restrict
() shutdown ().
,
.
username _
password
,
.
.
. 2-1.
1.
enable password
cisco
enable secret
sanfran
VTY
sanjose
1:
VTY
, VTY,
. -,
, VTY
. -,
, .
:
1
,
.
EXEC
enable , enable password.
EXEC (
enable)
config t.
line console 0.
sanjose . password sanjose.
login,
.
login, 16
( 0 15).
end,
EXEC.
51
10
show running-config ,
(0) vty ( 0
15). ,
. ,
.
SwitchX#show running-config
..
..Text omitted
..
!
line con 0
password sanjose
login
line vty 0 4
password sanjose
login
line vty 5 15
password sanjose
login
!
end
11
.
.
logout.
12
13
Enter,
.
14
,
(user EXEC).
15
(enable EXEC).
16
,
12 15.
SwitchX#logout
..
..empty lines omitted
..
SwitchX con0 is now available
Press RETURN to get started.
..
..empty lines omitted
..
User Access Verification
Password:
SwitchX>enable
Password:
SwitchX#
52
, :
VTY;
,
;
, 14.
2:
,
.
.
.
:
1
(enable EXEC),
.
service password-encryption.
.
, service
password-encryption .
.
, .
SwitchX#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SwitchX(config)#service password-encryption
SwitchX(config)#end
SwitchX#
00:38:45: %SYS-5-CONFIG_I: Configured from console by console
SwitchX#show running-config
Building configuration...
Current configuration : 1453 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
..
..Text omitted
..
!
!
2007 Cisco Systems, Inc.
53
line con 0
password 7 14041305060B392E
login
line vty 0 4
password 7 14041305060B392E
login
line vty 5 15
password 7 120A041918041F01
login
!
end
5
startupconfig.
, :
3:
,
.
welcome ( )
.
(,
. .), ,
. banner Cisco IOS.
:
1
%.
. ,
- .
SwitchX#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SwitchX(config)#banner login %
Enter TEXT message. End with the character '%'.
********** Warning *************
Access to this device is restricted to authorized persons only!
Un-authorized access is prohibited. Violators will be prosecuted.
**************************************************************%
SwitchX(config)#
54
EXEC.
.
, .
, -
^C.
!
banner login ^C
********** Warning *************
Access to this device is restricted to authorized persons only!
Un-authorized access is prohibited. Violators will be prosecuted.
**************************************************************^C
!
7
logout .
,
. ,
. ,
. .
SwitchX#logout
SwitchX con0 is now available
Press RETURN to get started.
********* *************
!
.
.
**************************************************************
User Access Verification
Password:
SwitchX>en
Password:
SwitchX#
8
startup-config.
, :
, , ,
;
,
;
55
4: SSH
.
Telnet,
, , ,
.
SSH,
Telnet. , Telnet SSH. SSH
:
IP;
RSA.
:
1
(enable EXEC)
.
SSH .
, . username
_ password .
netadmin. ,
.
SSH ,
, .
, .
,
cisco.com.
ip domain-name .
login local.
.
SwitchX(config)#line vty 0 15
SwitchX(config-line)#login local
SwitchX(config-line)#transport input telnet ssh
10
11
show ip ssh.
SwitchX#sh ip ssh
SSH Enabled - version 2.0
Authentication timeout: 120 secs; Authentication retries: 3
12
VPN , 2
2-1. SSH.
IP-
, 2 .
13
SSH
PuTTY.
14
logout, PuTTY.
15
Windows telnet
10.x.x.11 (IP- ).
.
57
16
Telnet,
. Telnet SSH
, logout
(user EXEC) , exit .
.
17
startup-config.
, :
VTY SSH 2;
SSH Telnet, ;
5:
MAC , ,
.
, ,
, ,
MAC-.
( , )
show.
SwitchX, x
.
:
.
. , ,
startup-config .
58
18
(enable EXEC).
ping IP-,
. 4 5.
MAC-
IP-
MAC-
10.x.x.100
4
SwitchX#show ip arp
Protocol Address
Internet 10.x.x.11
Internet 10.x.x.100
5
Type
ARPA
ARPA
Interface
Vlan1
Vlan1
Mac Address
Type
Ports
------------------ ----0017.5a78.be01 DYNAMIC
Fa0/1
0017.5a78.be01 DYNAMIC
Fa0/1
Mac Addresses for this criterion: 2
MAC-. clear macaddress-table dynamic int fa0/1.
10 show mac-address-table
int fa0/1, . ,
MAC-
MAC-. ,
2- . Ethernet
keep-alive.
MAC-, .
.
59
configure t.
interface fa0/1.
10
shutdown.
11
.
switchport mode access.
12
MAC-, 1 (
).
MAC-, 5 ,
MAC-,
.
13
,
,
MAC-, .
, .
shutdown (
). ,
.
14
15
switchport port-security.
. ,
.
16
no shutdown, .
17
end
(enable EXEC).
18
Aging Type
: Absolute
SecureStatic Address Aging : Disabled
Maximum MAC Addresses
: 1
Total MAC Addresses
: 1
Configured MAC Addresses
: 0
Sticky MAC Addresses
: 1
Last Source Address:Vlan
: 0017.5a78.be01:1
Security Violation Count
: 0
20
ping, ,
ping 10.x.x.100. .
MAC 2. ,
, restrict (),
error disable error disable.
24
MAC-.
25
26
configure t.
27
int fa0/1.
61
28
29
30
31
end
(enable EXEC).
32
20
ping 10.x.x.100.
33
62
35
22,
,
Shutdown Restrict.
36
startup-config.
, :
MAC (fa0/1);
,
error disabled;
,
shutdown restrict
;
startup-config.
6: O
. ,
.
. ,
: Fa0/3 Fa0/10, Fa0/13 fa0/24 Gi0/1 Gi0/2.
:
1
(enable EXEC)
.
shutdown.
shutdown.
shutdown.
(enable EXEC).
, ,
.
10
63
11
12
13
(enable EXEC).
14
, ,
.
15
, ,
, fa0/1, fa0/2, fa0/11 fa0/12 ,
startup-config.
, :
64
startup-config.
2-4:
Cisco IOS
,
, .
.
:
show.
, .
2-4
Cisco IOS
IP-
SwitchA
10.2.2.11
255.255.255.0
SwitchB
10.3.3.11
255.255.255.0
SwitchC
10.4.4.11
255.255.255.0
SwitchD
10.5.5.11
255.255.255.0
SwitchE
10.6.6.11
255.255.255.0
SwitchF
10.7.7.11
255.255.255.0
S witchG
10.8.8.11
255.255.255.0
SwitchH
10.9.9.11
255.255.255.0
ICND1 v1.0 9
65
, .
, .
SSH.
,
2-1.
, .
Cisco IOS
? help
Cisco IOS.
enable enable password
.
clock set
configure terminal
enable
.
.
(enable password),
. enable secret ,
enable password.
66
exec time-out
history size
,
.
EXEC .
[no] ip domainlookup
, ,
IP-. no
.
line console 0
0.
line vty 0 15
.
(VTY)
.
VTY Cisco IOS.
0-4 0-15 ().
logging synchronous
EXEC
VTY.
show clock
show history
show interfaces
show running-config
show terminal
show version
terminal history
size
sanjose
enable password
cisco
enable secret
sanfran
VTY
netadmin
VTY
netadmin
1:
EXEC
.
:
1
,
2-1.
Exec commands:
access-enable
clear
connect
..
..Text omitted
..
set
show
ssh
systat
telnet
--More- 3
2007 Cisco Systems, Inc.
67
EXEC.
,
>
#.
help (?)
EXEC. ,
, .
--More--. ,
. q, .
clock ?. .
.
SwitchX#clock ?
set Set the time and date
9
.
.
10
switch# sh?.
. .
SwitchX#sh?
show
11
Tab.
.
,
Tab ,
.
12
show clock.
, clock set 9.
.
SwitchX#show clock
10:45:25.073 UTC Tue Jul 10 2007
, :
2:
Cisco IOS .
68
:
1
: This command
changes the clock speed for the router.
(").
(!):
!ths comand changuw the clck sped for the swch,. (!)
.
Ctrl-P
.
,
!This command changes the clock speed for the switch.
, :
3: CLI
(CLI). ,
.
:
1
show terminal.
. .
SwitchX#sh terminal
Line 0, Location: "", Type: ""
Length: 24 lines, Width: 80 columns
Baud rate (TX/RX) is 9600/9600, no parity, 2 stopbits, 8 databits
..
..Text omitted
..
Editing is enabled.
History is enabled, history size is 10.
DNS resolution in show commands is enabled
Full user help is disabled
2007 Cisco Systems, Inc.
69
10.
terminal history size 100.
.
VTY.
config t,
.
line console 0.
EXEC 15 60 . exec-timeout 60.
logging synchronous
EXEC CLI.
100
.
10
exit .
11
no ip domain-lookup,
.
12
(enable EXEC).
13
show terminal.
.
.
SwitchX#sh term
Line 0, Location: "", Type: ""
Length: 24 lines, Width: 80 columns
Baud rate (TX/RX) is 9600/9600, no parity, 2 stopbits, 8 databits
..
..Text omitted
..
Editing is enabled.
History is enabled, history size is 100.
DNS resolution in show commands is enabled
Full user help is disabled
Allowed input transports are none.
Allowed output transports are telnet ssh.
Preferred transport is telnet.
No output characters are padded
No special data dispatching characters
70
14
show running-config,
.
15
, ,
startup-config.
16
, :
60 ;
, 100
VTY ;
, VTY logging
synchronous;
startup-config;
71
4-1:
.
,
, .
.
:
, .
4-1
ICND1 v1 .0 10
72
1:
,
.
7
32
16
48 = 32 + 16 = 00110000
128
64
48
146
222
119
135
60
2:
,
.
2
32
16
128 + 64 + 8 + 4 = 204
128
64
11001100
10101010
11100011
10110011
00110101
10010111
, :
73
4-2:
,
, .
IPv4.
:
IP- ;
IP-;
IP-;
IP- .
, .
4-2
IP-
145.32 .5 9.24 = 10 01000 1.0010 0000 .__ ___ ____ _._ ____ ___ __
IP-
1001 000 1.0 0011 011 .00 1111 01.100 0100 1 = 216 .__ __.___ _.____
IP -
0.124.0.0?
23.75.345.200?
255.255.255.255?
ICND1 v1 .0 11
74
1: IP-
.
, 145.32.59.24
.
32
16
10010001
00100000
128
64
145
32
59
24
IP-
, 200.42.129.16
.
128
64
32
16
200
42
129
16
IP-
75
, 14.82.19.54
.
128
64
32
16
14
82
19
54
IP-
2: IP-
:
, IP-
11011000.00011011.00111101.10001001 .
128
64
11011000
32
16
216
00011011
00111101
10001001
IP-
76
, IP-
11000110.00110101.10010011.00101101 .
128
64
32
16
11000110
00110101
10010011
00101101
IP-
, IP-
01111011.00101101.01000011.01011001 .
128
64
32
16
01111011
00101101
01000011
01011001
IP-
3: IP-
, ,
.
IP-
IP-
10010001.00100000.00111011.00011000
145.32.59.24
16
11001000.00101010.10000001.00010000
200.42.129.16
00001110.01010010.00010011.00110110
14.82.19.54
11011000.00011011.00111101.10001001
216.27.61.137
10110011.00101101.01000011.01011001
179.45.67.89
11000110.00110101.10010011.00101101
198.53.147.45
h
(2 2)
77
4:
IP-
, IP- ,
.
IP-
23.75.345.200
216.27.61.134
102.54.94
255.255.255.255
142.179.148.200
200.42.129.16
0.124.0.0
, :
78
IP- ;
IP- ;
IP-;
IP-.
4-3:
,
, .
,
IP-.
:
, ;
, .
, .
4-3
:
C 192.168.89.0
B 172.25.0.0
A 10.0.0.0
?
?
ICND1 v1 .0 12
79
1: O ,
C
C 192.168.89.0, ,
,
, .
h
(2 2)
2
5
12
24
40
2: O ,
B
B 172.25.0.0, ,
,
, .
h
(2 2)
5
8
14
20
35
80
3: O ,
A
A 10.0.0.0, ,
,
, .
h
(2 2)
10
14
20
40
80
, :
A, B C ,
.
A, B C ,
.
81
4-4:
,
, .
.
:
,
, ;
IP- , ;
, ,
.
, .
4-4
,
,
.
IP- , _
.
, ,
.
ICND1 v1 .0 13
82
1: O
A ,
.
h
(2 2)
/20
/21
/22
/23
/24
/25
/26
/27
/28
/29
/30
2: O
, 172.25.0.0 /16.
. .
1. 12 ?
________________________________________________________________________
2. ,
12 .
________________________________________________________________________
3. , , 12 .
83
1.
2.
3.
IP-.
,
IP-.
4.
5.
,
0 .
6.
, 1 .
7.
8.
,
.
4 8 .
4. , .
0
1
2
3
4
5
6
7
...
3: O
, 192.168.1.0 /24.
1. 6 ?
_________________________________________________________________________
2. ,
6 .
_________________________________________________________________________
84
3. , , 6 .
1.
2.
3.
IP-.
,
IP-.
4.
5.
,
0 .
6.
, 1 .
7.
8.
,
.
4 8 .
4. , .
0
1
2
3
4
5
6
7
4:
, 192.168.111.129 /28.
1. .
_________________________________________________________________________
2. ?
_________________________________________________________________________
2007 Cisco Systems, Inc.
85
3. ?
_______________________________________________________________________
4. , , .
1.
2.
3.
IP-.
,
IP-.
4.
5.
,
0 .
6.
, 1 .
7.
8.
,
.
4 8 .
5. , .
0
1
2
3
4
5
6
7
5: O
, 172.25.112.0 /23.
1. .
_________________________________________________________________________
86
2. ?
_________________________________________________________________________
3. ?
_________________________________________________________________________
4. , , .
1.
2.
3.
IP-.
,
IP-.
4.
5.
,
0 .
6.
, 1 .
7.
8.
,
.
4 8 .
5. , .
0
1
2
3
4
5
6
7
87
6: O
, 172.20.0.129 /25.
1. .
_________________________________________________________________________
2. ?
_________________________________________________________________________
3. ?
_________________________________________________________________________
4. , , .
1.
2.
3.
IP-.
,
IP-.
4.
5.
,
0 .
6.
, 1
.
7.
8.
,
.
4 8 .
88
5. , .
0
1
2
3
4
5
6
7
, :
, ;
IP-
.
,
, .
89
4-5:
,
, .
, .
:
, .
4-5
IP-
RouterA
10.2.2.3
255.255.255.0
RouterB
10.3.3.3
255.255.255.0
RouterC
10.4.4.3
255.255.255.0
RouterD
10.5.5.3
255.255.255.0
RouterE
10.6.6.3
255.255.255.0
RouterF
10.7.7.3
255.255.255.0
RouterG
10.8.8.3
255.255.255.0
RouterH
10.9.9.3
255.255.255.0
90
ICND1 v1 .0 14
, .
, .
SSH.
,
2-1.
, .
Cisco IOS
enable
EXEC.
erase startup-config
Reload
enable password
enable secret
VTY
VTY
sanjose
enable password
cisco
enable secret
sanfran
VTY
netadmin
VTY
netadmin
1:
,
.
, Cisco SDM
(Router and Security Device Manager) cisco
cisco (enable).
2007 Cisco Systems, Inc.
91
:
1
,
2-1. . IP-
.
cisco .
, .
,
.
erase startup-config .
.
Username: cisco
Password:
yourname#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
yourname#
*Apr 24 00:16:130.683: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
yourname#
, :
2: ,
.
, .
:
1
reload. ,
ENTER. .
yourname#reload
Proceed with reload? [confirm]
.
2
, .
,
. .
.
TOTAL:
is enabled
is sizing iomem
MEMORY_REQ
TYPE
0X003DA000 C2811 Mainboard
0X00263F50 Onboard VPN
0X000021B8 Onboard USB
0X002C29F0 public buffer pools
0X00211000 public particle pools
0X00B13AF8
93
export@cisco.com.
Cisco 2811 (revision 49.46) with 249856K/12288K bytes of memory.
Processor board ID FTX1108A3G8
2 FastEthernet interfaces
2 Low-speed serial(sync/async) interfaces
1 Virtual Private Network (VPN) Module
DRAM configuration is 64 bits wide with parity enabled.
239K bytes of non-volatile configuration memory.
62720K bytes of ATA CompactFlash (Read/Write)
--- System Configuration Dialog ---
, :
95
4-6:
,
, .
.
:
setup,
;
show .
, .
4-6
IP-
RouterA
10.2.2.3
255.255.255.0
RouterB
10.3.3.3
255.255.255.0
RouterC
10.4.4.3
255.255.255.0
RouterD
10.5.5.3
255.255.255.0
RouterE
10.6.6.3
255.255.255.0
RouterF
10.7.7.3
255.255.255.0
RouterG
10.8.8.3
255.255.255.0
RouterH
10.9.9.3
255.255.255.0
ICND1 v1 .0 15
, .
96
, .
SSH.
,
2-1.
2-4.
, .
Cisco IOS
configure terminal
setup
show running-config
show startup-config
, NVRAM.
enable password
enable secret
VTY
VTY
sanjose
enable password
cisco
enable secret
sanfran
VTY
netadmin
VTY
netadmin
1:
setup
.
:
1
4-5,
,
2-1 IP-
.
enable EXEC.
setup.
.
97
First, would you like to see the current interface summary? [yes]: yes
Interface
FastEthernet0/0
FastEthernet0/1
FastEthernet0/0
FastEthernet0/0
IP-Address
unassigned
unassigned
unassigned
unassigned
OK?
YES
YES
YES
YES
Method
unset
unset
unset
unset
Status
administratively
administratively
administratively
administratively
down
down
down
down
Protocol
down
down
down
down
Enter host name, x
(A, B, C, D, E, F, G H).
98
11
no Configure CLNS?.
no Configure bridging?.
IP- , .
(. .)
, .
, Cisco IOS IP-.
99
25
,
.
,
( 0 4) VTY. 16 ( 0 15).
( --More--).
2, NVRAM
.
28
. Cisco IOS ,
(CLI), .
Building configuration...
[OK]
*Apr 24 00:37:02.203: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state
to up
Use the enabled mode 'configure' command to modify this configuration.
100
RouterX#
*Apr 24 00:37:04.867: %LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/0, changed state to up
, :
setup
;
2:
show,
,
startup-config.
:
1
show running-config. ,
, 1.
, FastEthernet 0/0 IP-,
,
shutdown.
, .
..Text omitted!
..
!
interface FastEthernet0/0
ip address 10.x.x.3 255.255.255.0
duplex half
speed auto
no mop enabled
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
..Text omitted!
2
show startup-config.
, 1.
, setup
.
, :
show running-config , 1.
101
4-7:
,
, .
.
:
Cisco IOS;
,
SSH VTY.
, .
4-7
RouterA
10.2.2.3
255.255.255.0
RouterB
10.3.3.3
255.255.255.0
RouterC
10.4.4.3
255.255.255.0
RouterD
10.5.5.3
255.255.255.0
RouterE
10.6.6.3
255.255.255.0
RouterF
10.7.7.3
255.255.255.0
RouterG
10.8.8.3
255.255.255.0
RouterH
10.9.9.3
255.255.255.0
102
IP-
ICND1 v1 .0 16
, .
, .
SSH.
,
4.1.
4-6.
, .
banner login
,
.
configure terminal
EXEC.
copy running-config
startup-config
, NVRAM.
RSA.
enable
EXEC.
EXEC
.
(enable password), .
end
exit
ip domain-name
IP,
.
ip ssh version [1 | 2]
SSH, .
SSH
, no .
line console 0
line vty 0 4
.
(VTY)
.
VTY Cisco IOS.
0 4 0 15 ().
login
VTY.
login local
VTY,
.
logout
EXEC,
( ).
password
VTY .
service password-
103
encryption
show ip ssh
SSH.
show running-config
,
.
username _
password
,
.
enable password
cisco
enable secret
sanfran
VTY
VTY
sanjose
sanjose
enable password
cisco
enable secret
sanfran
VTY
netadmin
VTY
netadmin
1:
,
VTY, ,
. sanjose ,
, .
104
. EXEC
VTY.
enable
EXEC.
config t.
line console 0.
password .
, VTY.
login,
.
end .
show running-config ,
(0) VTY
( 0 4). ,
. ,
VTY
.
RouterX#show running-config
..
..Text omitted
..
!
line con 0
password sanjose
login
line aux 0
line vty 0 4
password sanjose
login
!
end
9
,
.
10
logout.
11
Enter, .
12
,
EXEC.
13
(enable EXEC).
14
,
10 13.
RouterX#logout
..
..empty lines omitted
..
RouterX con0 is now available
Press RETURN to get started.
..
..empty lines omitted
..
User Access Verification
Password:
RouterX>enable
2007 Cisco Systems, Inc.
105
Password:
RouterX#
, :
,
;
, 14.
2: A
,
.
.
.
:
1
EXEC,
.
service password-encryption.
.
,
. .
, .
RouterX#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
RouterX(config)#service password-encryption
RouterX(config)#end
RouterX#
*Mar 16 20:19:40.509: %SYS-5-CONFIG_I: Configured from console by console
RouterX#show running-config
Building configuration...
Current configuration : 940 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
..
..Text omitted
..
!
!
line con 0
106
password 7 051807012B435D0C
login
line aux 0
line vty 0 4
password 7 051807012B435D0C
login
!
scheduler allocate 20000 1000
!
end
5
startup-config.
, :
3:
,
.
welcome ( )
.
(,
. .), ,
. banner Cisco
IOS.
:
1
banner login %.
.
%.
,
.
.
RouterX#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
RouterX(config)#banner login %
Enter TEXT message. End with the character '%'.
********** Warning *************
Access to this device is restricted to authorized persons only!
Un-authorized access is prohibited. Violators will be prosecuted.
**************************************************************%
RouterX(config)#end
4
.
, .
107
,
^C.
!
banner login ^C
********** Warning *************
Access to this device is restricted to authorized persons only!
Un-authorized access is prohibited. Violators will be prosecuted.
**************************************************************^C
!
5
logout .
,
. ,
. ,
.
.
RouterX#logout
RouterX con0 is now available
Press RETURN to get started.
NVRAM.
, :
, ,
;
,
;
4: B SSH
.
Telnet,
, , ,
.
SSH,
Telnet. , Telnet SSH.
108
:
1
(enable EXEC)
.
SSH .
, .
username netadmin password netadmin.
,
.
ip domain-name -.
SSH ,
, . ,
. ,
cisco.com.
line vty 0 4.
login local.
.
RouterX(config)#line vty 0 4
RouterX(config-line)#login local
SwitchX(config-line)#transport input telnet ssh
9
10
show ip ssh.
RouterX#show ip ssh
SSH Enabled - version 2.0
Authentication timeout: 120 secs; Authentication retries: 3
109
110
11
VPN , ,
2-1. ,
. Yes ,
.
12
SSH.
IP- (10.x.x.3)
, 2 .
13
SSH
PuTTY.
14
15
Telnet,
. Telnet SSH
, logout
(user EXEC) , exit
. .
16
startup-config.
, :
VTY SSH 2;
SSH Telnet, ;
111
4-8:
Cisco SDM
DHCP-
,
, .
Cisco SDM
DHCP- .
:
Cisco SDM,
DHCP;
Cisco IOS ,
DHCP- .
, .
4-8
Cisco SDM
DHCP-
IP-
IP-
10.2. 2. 11 /24
10.3. 3. 11 /24
10.4. 4. 11 /24
10.5. 5. 11 /24
10.6. 6. 11 /24
10.7. 7. 11 /24
10.8. 8. 11 /24
10.9. 9. 11 /24
112
ICND1 v1 .0 17
, .
, .
SSH.
,
4.1.
4-7.
, .
Cisco IOS
ping
MAC-,
EXEC.
show ip arp
ARP.
.
1. DHCP-
DHCP
/
DHCP
IP-
IP-
(::
)
wgA_clients
10.2.2.0/24
10.2.2.150
10.2.2.199
10.2.2.3
0:0:5
wgB_clients
10.3.3.0/24
10.3.3.150
10.3.3.199
10.3.3.3
0:0:5
wgC_clients
10.4.4.0/24
10.4.4.150
10.4.4.199
10.4.4.3
0:0:5
wgD_clients
10.5.5.0/24
10.5.5.150
10.5.5.199
10.5.5.3
0:0:5
wgE_clients
10.6.6.0/24
10.6.6.150
10.6.6.199
10.6.6.3
0:0:5
wgF_clients
10.7.7.0/24
10.7.7.150
10.7.7.199
10.7.7.3
0:0:5
wgG_clients
10.8.8.0/24
10.8.8.150
10.8.8.199
10.8.8.3
0:0:5
wgH_clients
10.9.9.0/24
10.9.9.150
10.9.9.199
10.9.9.3
0:0:5
113
sanjose
enable password
cisco
enable secret
sanfran
VTY
netadmin
VTY
netadmin
sanjose
enable password
cisco
enable secret
sanfran
VTY
netadmin
VTY
netadmin
1:
-, 15,
Telnet SSH
Cisco SDM ,
Cisco IOS .
Cisco IOS, Cisco SDM.
-,
15, Telnet SSH.
Telnet .
:
1
,
EXEC.
HTTP .
HTTP (HTTPS).
HTTP/HTTPS ,
ip http secure-server.
,
HTTPS. HTTP/HTTPS
, ip http authentication
local .
netadmin
15 ( ),
username netadmin privilege 15 .
2: Cisco SDM
DHCP
Cisco SDM DHCP
.
:
1
VPN- .
(netadmin).
. Yes
.
115
116
Configure ().
. Additional Tasks
( ) ( ).
117
118
10
11
Commands Delivery
.
Configuration delivered to router, OK.
12
, .
DHCP Pool Status ( DHCP).
13
14
IP- DHCP- .
15
OK, DHCP.
, :
Cisco SDM;
DHCP;
Cisco SDM ;
DHCP.
3:
. ,
.
. ,
.
:
1
SSH- .
ping IP__dhcp-.
.
119
RouterX#ping 10.10.10.150
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.150, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
3
Interface
FastEthernet0/0
(MAC-) DHCP-
.
show mac-address-table dynamic,
.
.
Type
Ports
-------- ----DYNAMIC
Fa0/11
DYNAMIC
Fa0/2
DYNAMIC
Fa0/11
DYNAMIC
Fa0/12
this criterion: 4
MAC- , ,
DHCP- , .
, DHCP-
.
IP- MAC-
( ).
VPN.
, :
120
ping, MAC-
DHCP-;
4-9:
.
,
, .
Telnet SSH
Cisco.
:
, , Telnet
Cisco;
, , SSH
Cisco.
, .
4-9
IP-
IP-
10.2.2.3 /24
10.2.2.11 /24
10.3.3.3 /24
10.3.3.11 /24
10.4.4.3 /24
10.4.4.11 /24
10.5.5.3 /24
10.5.5.11 /24
10.6.6.3 /24
10.6.6.11 /24
10.7.7.3 /24
10.7.7.11 /24
10.8.8.3 /24
10.8.8.11 /24
10.9.9.3 /24
10.9.9.11 /24
ICND1 v1 .0 18
, .
, .
SSH.
121
,
2-1.
4-8.
, .
Cisco IOS
Ctrl-Shift-6 x
Telnet SSH.
disconnect
[]
.
.
exec-timeout
[]
,
.
exit
exit EXEC
( ).
history size
,
.
EXEC .
ip domain-lookup
DNS .
line console 0
0.
logging
synchronous
EXEC
VTY.
logout
EXEC,
.
resume
Telnet SSH.
show sessions
Telnet SSH.
show users
ssh ip_
,
. IP-
.
telnet ip_
Telnet. IP-
.
1: O CLI
(CLI), .
,
.
122
:
1
,
.
20.
terminal history size 100.
.
VTY.
config t,
.
line console 0.
exec-timeout 60
.
logging synchronous
EXEC CLI.
100
.
10
exit .
11
no ip domain-lookup,
.
12
end
EXEC.
13
show terminal.
. .
RouterX#show terminal
Line 0, Location: "", Type: ""
Length: 24 lines, Width: 80 columns
Baud rate (TX/RX) is 9600/9600, no parity, 2 stopbits, 8 databits
..
..Text omitted
..
Editing is enabled.
History is enabled, history size is 100.
DNS resolution in show commands is enabled
Full user help is disabled
Allowed input transports are none.
Allowed output transports are pad telnet rlogin lapb-ta mop v120 ssh.
Preferred transport is telnet.
No output characters are padded
No special data dispatching characters
123
14
show running-config
, .
15
, ,
startup-config.
, :
60 ;
, 100
VTY ;
, VTY logging
synchronous.
IP;
startup-config.
2:
VPN
VPN- ,
,
. netadmin.
30
.
:
1
VPN- .
PuTTY IP-
.
netadmin.
show
sessions. :
124
show users,
, .
:
RouterX#sh users
Line
User
*322 vty 0
netadmin
Interface
User
Host(s)
idle
Mode
Idle
Location
00:00:00 10.10.10.134
Idle
Peer Address
netadmin ,
VPN- 2 .
conf t,
.
exec-timeout 30,
30 .
end EXEC.
:
RouterX#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RouterX(config)#line vty 0 4
RouterX(config-line)#exec-timeout 30
RouterX(config-line)#end
RouterX#
, :
PuTTY VPN;
VTY 30 ;
c show sessions
;
c show users ,
, .
125
:
1
Telnet
telnet ip_.
EXEC. :
RouterX#telnet 10.10.10.11
Trying 10.10.10.11 ... Open
********** *************
Access to this device is restricted to authorized persons only!
Un-authorized access is prohibited. Violators will be prosecuted.
**************************************************************
User Access Verification
Username: netadmin
Password:
SwitchX>enable
Password:
SwitchX#
3
conf t,
.
exec-timeout 30,
30 .
end EXEC.
:
SwitchX#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SwitchX(config)#line vty 0 15
SwitchX(config-line)#exec-timeout 30
SwitchX(config-line)#end
SwitchX#
7
Ctrl-Shift-6, x
RouterX#.
show sessions .
,
.
SwitchX#<cntrl+shift+6,x>
RouterX#show sessions
Conn Host
Address
* 1 10.10.10.11
10.10.10.11
Byte
0
RouterX#
9
ssh ip_,
SSH.
. ,
netadmin.
:
126
RouterX#ssh 10.10.10.11
********** Warning *************
Access to this device is restricted to authorized persons only!
Un-authorized access is prohibited. Violators will be prosecuted.
**************************************************************
Password:
SwitchX>
10
Ctrl-Shift-6, x
RouterX#.
11
show sessions .
,
.
SwitchX><ctrl+shift+6,x>
RouterX#show sessions
Conn Host
Address
Byte Idle Conn Name
1 10.10.10.11
10.10.10.11
0
4 10.10.10.11
* 2 10.10.10.11
10.10.10.11
0
0
RouterX#
12
resume 1
. ,
.
<ENTER>
RouterX#resume 1
[Resuming connection 1 to 10.10.10.11 ... ]
<ENTER>
SwitchX#show users
Line
User
Host(s)
Idle
Location
* 1 vty 0
netadmin idle
00:00:00 10.10.10.3
2 vty 1
netadmin idle
00:00:22 10.10.10.3
Interface
User
Mode
Idle
Peer Address
SwitchX#
13
Telnet, Telnet .
,
.
:
SwitchX#10.10.10.3
Trying 10.10.10.3 ... Open
********** *************
Access to this device is restricted to authorized persons only!
Un-authorized access is prohibited. Violators will be prosecuted.
**************************************************************^C
User Access Verification
Username: netadmin
Password:
RouterX#
14
show sessions, ,
. :
RouterX#show sessions
% No connections open
RouterX#
127
. Telnet-
. , SSH-
.
15
EXEC ,
Telnet- .
,
Router# ( 1).
, x, .
16
Ctrl-Shift-6, Ctrl-Shift-6, x.
, x .
.
:
SwitchX#
17
Ctrl-Shift-6, x
, ,
RouterX#.
:
SwitchX#<ctrl-shift-6, x>
RouterX#sh sessions
Conn Host
Address
Byte Idle Conn Name
* 1 10.10.10.11
10.10.10.11
0
0 10.10.10.11
2 10.10.10.11
10.10.10.11
0
7
18
. (*) 1.
, . Enter
, .
19
Enter .
,
.
, Enter
. :
RouterX#<ENTER>
[Resuming connection 1 to 10.10.10.11 ... ]
<ENTER>
[Resuming connection 1 to 10.10.10.3 ... ]
<ENTER>
RouterX#
20
Ctrl-Shift-6, Ctrl-Shift-6, x
. :
128
21
disconnect.
.
.
:
SwitchX#disconnect
Closing connection to 10.10.10.3 [confirm]
SwitchX#
22
EXEC,
10 .
:
SwitchX#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SwitchX(config)#line vty 0 15
SwitchX(config-line)#exec-timeout 10
SwitchX(config-line)#end
SwitchX#
23
Ctrl-Shift-6, x
, show sessions.
:
SwitchX#<ctrl-shift-6, x>
RouterX#show sessions
Conn Host
Address
Byte Idle Conn Name
* 1 10.10.10.11
10.10.10.11
0
1 10.10.10.11
2 10.10.10.11
10.10.10.11
0 39
24
disconnect,
. :
RouterX#disconnect
Closing connection
RouterX#disconnect
Closing connection
RouterX#
25
1
to 10.10.10.11 [confirm]
2
to 10.10.10.11 [confirm]
EXEC,
10 .
:
RouterX#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RouterX(config)#line vty 0 4
RouterX(config-line)#exec-timeout 10
RouterX(config-line)#end
RouterX#
26
SSH-
logout. VPN-.
129
, :
130
Telnet-
;
SSH-
;
c show sessions
, ;
c show users ,
;
c ()
().
resume ()
;
c exec-timeout
(10 );
c disconnect logout;
VPN .
5-1:
,
, .
IP-,
DHCP-, Ethernet- PAT (
). :
c Cisco SDM
PAT Ethernet- Ethernet- ;
Cisco SDM
;
c
PAT Ethernet- .
, .
5-1
ICND1 v1 .0 19
131
, .
, .
SSH.
,
2-1.
4-9.
, .
Cisco IOS
NAT
.
ping ip_
. - -
ICMP, ,
. ping
, -.
DHCP, .
NAT.
1: Cisco SDM
Ethernet
Cisco SDM, Ethernet DHCP- IP-.
NAT.
132
:
1
VPN- .
netadmin
netadmin.
. Yes
.
133
134
Configure ().
Create Connection ( )
Ethernet PPPoE or Unencapsulated Routing
(Ethernet PPPoE ).
10
Encapsulation () .
Next () .
135
136
11
IP address (IP-) .
Dynamic (DHCP Client)
( (DHCP-)).
Next ().
12
Advanced Options ( )
Port Address Translation ( ).
LAN Interface to Be Translated (
) FastEthernet0/0.
Next () .
13
Summary ().
Finish ().
14
. OK,
Commands Delivery Status ( ).
137
15
16
, IP- (DHCP).
, NAT
Outside ().
. Refresh.
17
, :
, FastEthernet0/1 ,
DHCP;
15 , FastEthernet0/0
PAT;
15 , FastEthernet0/1
PAT.
2:
PAT
SSH- .
- IP- ,
DHCP-, .
clear show ip nat translations
PAT, .
138
:
1
SSH
.
show
dhcp lease. .
.
ping IP-
, .
EXEC
ping IP- ,
5.
:
SwitchX>ping 172.20.21.254
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.20.21.254, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/8 ms
SwitchX>
2007 Cisco Systems, Inc.
139
show ip
nat translations.
Outside local
Outside global
172.20.21.254:33 172.20.21.254:33
, IP-
,
IP- FastEthernet0/1.
10
startup-config.
, :
140
IP- DHCP-;
PAT -,
; show ip nat
translation ,
- ( IP- );
ping,
show ip nat translation,
;
startup-config.
5-2:
,
, .
. :
PPP;
IP-,
.
, .
5-2
ICND1 v1 .0 20
, .
, .
SSH.
,
2-1.
5-1.
141
, .
Cisco IOS
description
encapsulation ppp
PPP
.
ip address ip_
IP- .
ip route _
_
ip___
shutdown
no shutdown
ping ip_
- - ICMP,
, .
show ip route
traceroute ip_
IP-,
.
.
1.
142
IP-
s0/0/0,
255.255.255.0
IP-
(
)
s0/0/0
,
s0/0/0
10.140.1.2
10.140.1.1
192.168.21.0
192.168.21.200
10.140.2.2
10.140.2.1
192.168.22.0
192.168.22.200
10.140.3.2
10.140.3.1
192.168.23.0
192.168.23.200
10.140.4.2
10.140.4.1
192.168.24.0
192.168.24.200
10.140.5.2
10.140.5.1
192.168.25.0
192.168.25.200
10.140.6.2
10.140.6.1
192.168.26.0
192.168.26.200
10.140.7.2
10.140.7.1
192.168.27.0
192.168.27.200
10.140.8.2
10.140.8.1
192.168.28.0
192.168.28.200
sanjose
enable password
cisco
enable secret
sanfran
VTY
netadmin
VTY
netadmin
sanjose
enable password
cisco
enable secret
sanfran
VTY
netadmin
VTY
netadmin
1: H 0/0/0
IP-.
, PPP.
:
1
EXEC.
config terminal,
.
interface s0/0/0
.
no shutdown, .
.
end, EXEC.
143
3 8
:
RouterX(config)#int s0/0/0
RouterX(config-if)#encapsulation ppp
RouterX(config-if)#ip address 10.140.10.2 255.255.255.0
RouterX(config-if)#description Link to Main Office
RouterX(config-if)#no shutdown
*Mar 26 21:10:35.451: %SYS-5-CONFIG_I: Configured from console by console
RouterX#
*Mar 26 21:10:35.983: %LINK-3-UPDOWN: Interface Serial0/0/0, changed state to up
RouterX#
*Mar 26 21:10:37.015: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0,
changed state to up
RouterX(config-if)#end
10
11
. .
,
.
, :
PPP ;
IP- 1 ;
c show interface ,
.
2:
ping,
, .
Cisco IOS
.
144
:
1
ping _, IP-
1 .
:
RouterX#ping 192.168.21.200
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.21.200, timeout is 2 seconds:
U.U.U
Success rate is 0 percent (0/5)
2
traceroute _, IP-
.
:
RouterX#traceroute 192.168.21.200
Type escape sequence to abort.
Tracing the route to 192.168.21.200
1 172.20.21.254 0 msec 4 msec 0 msec
2 172.20.21.254 !H * !H
3
, IP- Internet
FastEthernet 0/1.
show ip route ,
.
:
RouterX#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 172.20.21.254 to network 0.0.0.0
172.20.0.0/24 is subnetted, 1 subnets
172.20.21.0 is directly connected, FastEthernet0/1
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C
10.10.10.0/24 is directly connected, FastEthernet0/0
C
10.140.10.1/32 is directly connected, Serial0/0/0
C
10.140.10.0/24 is directly connected, Serial0/0/0
S* 0.0.0.0/0 [254/0] via 172.20.21.254
C
, .
, ,
,
, .
0.0.0.0.
145
, :
traceroute , ;
3:
,
.
,
. ,
. ,
, .
, .
:
1
conf t
.
ip route _ __
IP____.
1.
:
end
EXEC.
show ip route ,
.
:
RouterX#show ip route
..
..
..
Gateway of last resort is 172.20.21.254 to network 0.0.0.0
172.20.0.0/24 is subnetted, 1 subnets
172.20.21.0 is directly connected, FastEthernet0/1
192.168.21.0/24 [1/0] via 10.140.10.1
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C
10.10.10.0/24 is directly connected, FastEthernet0/0
C
10.140.10.1/32 is directly connected, Serial0/0/0
C
10.140.10.0/24 is directly connected, Serial0/0/0
S* 0.0.0.0/0 [254/0] via 172.20.21.254
RouterX#
C
S
146
ping __
. :
RouterX#ping 192.168.21.200
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.21.200, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/28/32 ms
RouterX#
6
traceroute __
.
:
RouterX#traceroute 192.168.21.200
Type escape sequence to abort.
Tracing the route to 192.168.21.200
1 10.140.10.1 12 msec * 12 msec
7
,
,
.
startup-config.
, :
, IP-
0/0/0
;
c show ip route ;
c ping ;
c traceroute , IP-,
0/0/0;
startup-config.
147
5-3:
,
, .
RIP. :
RIP ;
RIP;
, .
5-3
ICND1 v1 .0 21
, .
148
, .
SSH.
,
2-1.
5-2.
, .
configure terminal
end
[no] ip route
, .
network _
RIP.
RIP
, IP- .
router rip
RIP.
show ip protocol
show ip route
traceroute ip_
IP-,
.
version {1 | 2}
RIP, .
1.
IP- , s0/0/0
192.168.21.200
192.168.121.200
192.168.221.200
192.168.22.200
192.168.122.200
192.168.222.200
192.168.23.200
192.168.123.200
192.168.223.200
192.168.24.200
192.168.124.200
192.168.224.200
192.168.25.200
192.168.125.200
192.168.225.200
192.168.26.200
192.168.126.200
192.168.226.200
192.168.27.200
192.168.127.200
192.168.227.200
192.168.28.200
192.168.128.200
192.168.228.200
ping traceroute.
.
1: H RIP
RIP
. Cisco IOS
.
2007 Cisco Systems, Inc.
149
:
1
RouterX#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 172.20.21.254 to network 0.0.0.0
172.20.0.0/24 is subnetted, 1 subnets
172.20.21.0 is directly connected, FastEthernet0/1
192.168.21.0/24 [1/0] via 10.140.10.1
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C
10.10.10.0/24 is directly connected, FastEthernet0/0
C
10.140.10.1/32 is directly connected, Serial0/0/0
C
10.140.10.0/24 is directly connected, Serial0/0/0
S* 0.0.0.0/0 [254/0] via 172.20.21.254
C
S
configure terminal,
.
end .
:
RouterX#config terminal
Enter configuration commands, one per line. End with CNTL/Z.
RouterX(config)#router rip
RouterX(config-router)#network 10.0.0.0
RouterX(config-router)#end
6
show ip protocol
IP, .
:
RouterX#show ip protocol
Routing Protocol is "rip"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Sending updates every 30 seconds, next due in 0 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Redistributing: rip
Default version control: send version 1, receive any version
Interface
Send Recv Triggered RIP Key-chain
FastEthernet0/0
1
1 2
Serial0/0/0
1
1 2
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
10.0.0.0
Routing Information Sources:
Gateway
Distance
Last Update
Distance: (default is 120)
150
,
1,
1 2.
, RIP
2. :
RouterX#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RouterX(config)#router rip
RouterX(config-router)#version 2
RouterX(config-router)#end
9
show ip protocol
IP, .
:
RouterX#show ip protocol
Routing Protocol is "rip"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Sending updates every 30 seconds, next due in 28 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Redistributing: rip
Default version control: send version 2, receive version 2
Interface
Send Recv Triggered RIP Key-chain
FastEthernet0/0
2
2
Serial0/0/0
2
2
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
10.0.0.0
Routing Information Sources:
Gateway
Distance
Last Update
10.140.10.1
120
00:00:01
Distance: (default is 120)
10
, RIP
2.
, :
RIP;
show ip protocol
;
RIP 2;
show ip protocol.
2:
,
. ,
, RIP.
151
:
1
show ip route
. :
RouterX#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
..
..Text omitted
..
Gateway of last resort is 172.20.21.254 to network 0.0.0.0
R
,
RIP. R.
-
192.168.2x.0 ( x ).
S.
RIP. , ,
, .
RIP 120, 1.
conf terminal,
.
end .
152
traceroute 192.168.22x.200,
ICMP .
:
RouterX#traceroute 192.168.221.200
Type escape sequence to abort.
Tracing the route to 192.168.221.200
1 10.140.10.1 16 msec 12 msec 12 msec
2 192.168.131.253 16 msec * 12 msec
8
startup-config.
, :
, ;
c show ip route;
traceroute ;
startup-config.
153
6-1:
Cisco
,
, .
Cisco
(Cisco Discovery Protocol, CDP)
Cisco. , CDP
.
:
CDP
;
Cisco;
CDP;
, .
6-1
Cisco
154
ICND1 v1 .0 22
, .
, .
SSH.
,
2-1.
5-3.
, .
Cisco IOS
CDP . no
CDP .
CDP
. no
CDP.
.
.
show cdp
CDP,
.
,
CDP, *
.
,
CDP.
,
CDP.
,
CDP.
1: Cisco
CDP
Cisco. ,
, CDP,
, ,
, .
155
:
1
,
EXEC.
RouterX#show cdp
Global CDP information:
Sending CDP packets every 60 seconds
Sending a holdtime value of 180 seconds
Sending CDPv2 advertisements is enabled
3
, ,
show cdp entry
CDP Cisco,
. :
IP- ,
.
IP- , 5,
MainRouter,
, MainRouter
(ACL) .
cdp ,
.
, , CDP
,
. fa0/1
Serial 0/0/1 CDP .
157
10
interface fa0/1,
no cdp enable CDP
.
11
CDP
Serial 0/0/1,
.
12
startup-config.
, :
CDP ,
Cisco;
CDP ,
;
startup-config.
2: Cisco
CDP
Cisco.
,
CDP.
.
158
,
EXEC.
Holdtme
Capability
Platform
Port ID
150
R S I
2811
Fas 0/0
,
. ,
CDP Fa0/2.
, CDP
fa0/2.
:
SwitchX#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SwitchX(config)#interface range fa0/1 - 24, gi0/1 - 2
SwitchX(config-if-range)#no cdp enable
SwitchX(config-if-range)#interface fa0/2
% Command exited out of interface range and its sub-modes.
Not executing the command for second and later interfaces
SwitchX(config-if)#cdp enable
SwitchX(config-if)#end
6
159
startup-config.
, :
160
Cisco cdp ;
CDP ,
;
CDP c
show cdp traffic;
startup-config.
6-2:
,
, .
.
:
,
;
,
, startup-config;
Cisco IOS ,
boot system;
,
Cisco IOS.
, .
6-2
ICND1 v1 .0 23
161
, .
, .
SSH.
,
2-1.
6-1.
, .
Cisco IOS
,
- .
IP- ( ip-_)
, TFTP-
.
config-register
,
.
show flash
-.
show running-config
show startup-config
, NVRAM
.
show version
,
.
.
1. IP- TFTP-
162
IP-
TFTP-
IP-
TFTP-
10.2.2.1
10.6.6.1
10.3.3.1
10.7.7.1
10.4.4.1
10.8.8.1
10.5.5.1
10.9.9.1
1:
.
, .
:
1
,
EXEC.
show version
.
:
RouterX#show version
Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M),
Version 12.4(12), RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Fri 17-Nov-06 12:02 by prod_rel_team
ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
RouterX uptime is 2 minutes
System returned to ROM by reload at 23:05:39 UTC Fri Mar 30 2007
System image file is "flash:c2800nm-advipservicesk9-mz.124-12.bin"
This product contains cryptographic features and is subject to United
..
..Text omitted
..
Cisco 2811 (revision 53,50) with 249856K/12288K bytes of memory.
Processor board ID FTX1050A3Q6
2 FastEthernet interfaces
2 Serial(sync/async) interfaces
1 Virtual Private Network (VPN) Module
DRAM configuration is 64 bits wide with parity enabled.
239K bytes of non-volatile configuration memory.
62720K bytes of ATA CompactFlash (Read/Write)
Configuration register is 0x2102
3
( ,
) .
config-register 0x2104
.
RouterX#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RouterX(config)#config-register 0x2104
163
show
version .
:
RouterX(config)#^Z
RouterX#
RouterX#show version
Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version
12.4(12), RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Fri 17-Nov-06 12:02 by prod_rel_team
ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
RouterX uptime is 8 minutes
System returned to ROM by reload at 23:05:39 UTC Fri Mar 30 2007
..
..Text omitted
..
239K bytes of non-volatile configuration memory.
62720K bytes of ATA CompactFlash (Read/Write)
Configuration register is 0x2102 (will be 0x2104 at next reload)
RouterX#
6
,
.
show running-config
config-register, ,
.
,
,
3. show version ,
.
,
.
10
show running-config q,
.
:
RouterX#show running-config
Building configuration...
Current configuration : 2170 bytes
!
version 12.4
..
..Text omitted
..
--More--q
11
164
, Building
configuration. ,
. ,
Cisco IOS.
12
show startup-config q,
.
:
RouterX#sh startup-config
Using 2170 out of 245752 bytes
!
version 12.4
..
..Text omitted
..
--More--q
13
,
Using 2170 out of 245752 bytes. ,
NVRAM.
, :
, show
version , ,
;
show.
2: O -
, Cisco IOS .
boot system,
.
,
. .
:
1
show flash: ,
-. :
RouterX#show flash:
-#- --length-- -----date/time------ path
1
36232088 Mar 28 2007 17:27:46 +00:00
2
1823 Dec 14 2006 08:25:40 +00:00
3
4734464 Dec 14 2006 08:26:10 +00:00
4
833024 Dec 14 2006 08:26:26 +00:00
5
1052160 Dec 14 2006 08:26:46 +00:00
6
1038 Dec 14 2006 08:27:02 +00:00
7
102400 Dec 14 2006 08:27:24 +00:00
8
491213 Dec 14 2006 08:27:48 +00:00
c2800nm-advipservicesk9-mz.124-12.bin
sdmconfig-2811.cfg
sdm.tar
es.tar
common.tar
home.shtml
home.tar
128MB.sdf
165
-
Cisco IOS, .
boot system flash filename.bin .
. boot system ,
,
. Cisco IOS
- , ,
.
boot system
tftp _ _tftp, _ ,
2, _tftp IP- TFTP- ,
1. ,
Cisco IOS
TFTP-. :
show run ,
.
,
:
..
..Text omitted
..
hostname RouterX
!
boot-start-marker
boot system tftp c2800nm-advipservicesk9-mz.124-12.bin 10.x.x.1
boot system flash c2800nm-advipservicesk9-mz.124-12.bin
boot system flash
boot-end-marker
!
166
10
. ( 5 10 )
TFTP-. - 2 3
.
11
reload. ,
. , , Cisco IOS .
12
RouterX#reload
Proceed with reload? [confirm]<ENTER>
*Apr 6 18:17:24.619: %SYS-5-RELOAD: Reload requested by console. Reload
Reason: Reload Command.
System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
..
..Text omitted
..
<ENTER><ENTER>
*Apr 6 18:22:16.311: %LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/0, changed state to up
********** Warning *************
Access to this device is restricted to authorized persons only!
Un-authorized access is prohibited. Violators will be prosecuted.
**************************************************************^
User Access Verification
Password:
13
Enter, .
EXEC.
14
show version ,
Cisco IOS.
:
RouterX#sh version
Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version
12.4(12), RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Fri 17-Nov-06 12:02 by prod_rel_team
ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
RouterX uptime is 1 minute
2007 Cisco Systems, Inc.
167
TFTP- ,
show version :
, :
168
Cisco IOS,
-;
boot system
:
Cisco IOS
-;
Cisco IOS,
-.
,
boot system ;
show version , .
6-3:
Cisco
,
, .
copy debug Cisco IOS.
:
TFTP-;
-;
,
;
, .
6-3
Cisco
ICND1 v1 .0 24
169
, .
, .
SSH.
,
2-1.
6-2.
, .
Cisco IOS
170
,
TFTP-.
,
TFTP- -.
,
TFTP- .
,
TFTP- startup-config,
NVRAM.
debug ip icmp
ICMP.
debug ip rip
RIP.
no debug all
delete flash:_
-.
more flash:_
- .
ping ip_
. - - ICMP,
, . ping
,
-.
show debugging
,
.
show flash
-.
show processes
,
.
show startup-config
NVRAM.
.
1. IP- TFTP-
IP-
TFTP-
IP-
TFTP-
10.2.2.1
10.6.6.1
10.3.3.1
10.7.7.1
10.4.4.1
10.8.8.1
10.5.5.1
10.9.9.1
1:
TFTP TFTP- Cisco IOS.
:
1
,
EXEC.
EXEC.
TFTP-
.
- TFTP- ,
1. :
RouterX#ping 10.10.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms
4
IP- TFTP-
1.
,
, Enter.
171
10
IP- TFTP- .
11
descript-confg.
12
13
172
15
,
description.
16
17
IP- TFTP- .
18
descript-confg.
19
20
show flash ,
-.
22
23
more flash:descript-confg
.
24
RouterX#more flash:descript-confg
! This file demonstrates the way the IOS removes remarks
! from configuration files
! and allows parts of a configuration to be updated
!*********************[
interface serial 0/0/0
description Connection to Main Office
interface serial 0/0/1
description Unused Interface
end
25
,
,
. ,
.
.
26
delete flash:descript-confg ,
-.
:
RouterX#delete flash:descript-confg
Delete filename [descript-confg]?
Delete flash:descript-confg? [confirm]
27
descript-confg startup-config.
:
173
28
RouterX#show startup
Using 289 out of 245752 bytes! This file demonstrates the way the IOS removes
remarks
! from configuration files
! and allows parts of a configuration to be updated
!*********************[
interface serial 0/0/0
description Connection to Main Office
interface serial 0/0/1
description Unused Interface
end
29
,
. ,
( ) .
, !
30
startup-config.
31
show startup ,
startup-config .
, :
TFTP-;
-, more
;
-;
startup-config, ,
;
startup-config,
.
2:
show and debug
,
.
174
:
1
debug
,
. debug
.
. -
, .
show processes .
.
:
RouterX#show processes
CPU utilization for five seconds: 0%/0%; one minute: 0%; five minutes: 0%
PID QTy
PC Runtime (ms) Invoked uSecs Stacks TTY Process
1 Cwe 400A7A2C
0
4
0 5456/6000 0 Chunk Manager
2 Csp 4008C430
4
1614
2 2528/3000 0 Load Meter
3 M*
0
7832
379196
20 7200/12000 0 Exec
..
..
..
3
,
.
.
.
show debugging,
debug.
.
RouterX#debug ip icmp
ICMP packet debugging is on
6
4, :
RouterX#sh debugging
Generic IP:
ICMP packet debugging is on
7
RouterX#ping 10.10.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
RouterX#
*Apr 3 19:44:43.699: ICMP: echo reply rcvd, src 10.10.10.1, dst 10.10.10.3
*Apr 3 19:44:43.703: ICMP: echo reply rcvd, src 10.10.10.1, dst 10.10.10.3
*Apr 3 19:44:43.703: ICMP: echo reply rcvd, src 10.10.10.1, dst 10.10.10.3
*Apr 3 19:44:43.703: ICMP: echo reply rcvd, src 10.10.10.1, dst 10.10.10.3
*Apr 3 19:44:43.707: ICMP: echo reply rcvd, src 10.10.10.1, dst 10.10.10.3
8
debug ip rip,
RIP.
175
RIP.
:
RouterX#
*Apr 3 20:12:01.355:
*Apr 3 20:12:01.355:
*Apr 3 20:12:01.355:
*Apr 3 20:12:01.355:
*Apr 3 20:12:01.355:
*Apr 3 20:12:01.355:
*Apr 3 20:12:01.355:
*Apr 3 20:12:01.355:
RouterX#
*Apr 3 20:12:06.083:
*Apr 3 20:12:06.083:
*Apr 3 20:12:06.083:
RouterX#
*Apr 3 20:12:27.295:
*Apr 3 20:12:27.295:
*Apr 3 20:12:27.295:
*Apr 3 20:12:27.295:
*Apr 3 20:12:27.295:
RouterX#
10
debug.
:
RouterX#show debugging
Generic IP:
ICMP packet debugging is on
IP routing:
RIP protocol debugging is on
11
debug ,
.
no debug all
.
, :
176
show processes ,
;
ICMP
RIP debug;
debug
show debug;
6-4:
,
, .
,
. ,
,
.
:
,
;
,
;
, ;
, .
6-4
ICND1 v1 .0 25
177
, .
, .
SSH.
, .
. , ,
.
.
1.
IP-
Fa0/0 /24
AA
SwitchAA
10.22.22.11
RouterAA
10.22.22.3
BB
SwitchBB
10.33.33.11
RouterBB
10.33.33.3
CC
SwitchCC
10.44.44.11
RouterCC
10.44.44.3
DD
SwitchDD
10.55.55.11
RouterDD
10.55.55.3
EE
SwitchEE
10.66.66.11
RouterEE
10.66.66.3
FF
SwitchFF
10.77.77.11
RouterFF
10.77.77.3
GG
SwitchGG
10.88.88.11
RouterGG
10.88.88.3
HH
SwitchHH
10.99.99.11
RouterHH
10.99.99.3
2. s0/0/0
178
IP- /24
s0/0/0
IP- /24
s0/0/0
AA
10.140.11.2
EE
10.140.55.2
BB
10.140.22.2
FF
10.140.66.2
CC
10.140.33.2
GG
10.140.77.2
DD
10.140.44.2
HH
10.140.88.2
( )
1) ( 2-2, 2-3)
( AA HH)
hostname SwitchXX
vlan 1
IP-
ip address ip_
IP-
ip default-gateway ip_
Enable password
cisco
Enable secret
sanfran
service password-encryption
VTY.
Netadmin 15-
VTY
line vty 0 15
login local
line console 0
login
sanjose
banner login % %
2) SSH ( 2-3, 4)
netadmin
netadmin
IP
cisco.com
SSH
VTY
line vty 0 15
show run
3) ( 2-3, 5)
fa0/1
restrict
switchport port-security
violation restrict
MAC- = sticky
179
( )
switchport port-security
4) ( 2-3, 6, 6-1, 2)
CDP ,
no cdp enable
( )
1) ( 4-6)
( AA HH)
hostname RouterXX
interface fa0/0
IP-
ip address ip_
Enable password
Enable secret
2) ( 4-7, 6-1, 1)
service password-encryption
VTY
15-
VTY
line vty 0 4
login local
line console 0
login
password sanjose
banner login % %
CDP ,
no cdp enable
3) SSH ( 4-7, 4)
180
IP
cisco.com
( )
SSH v2
ip ssh version 2
VTY
line vty 0 4
( )
ip http server
HTTPS
ip http secure-server
5) DHCP- ( 4-8, 2)
Fa0/0
Branchxx-clients
IP- .150
150
IP- .199
199
: 5
005
10.xx.xx.3
6) ( 5-1)
fa0/1
IP- DHCP
( DHCP)
PAT
fa0/1
PAT
fa0/0
7) ( 5-2)
s0/0/0
IP- 0/0/0 . 2
ip address ip-
encapsulation ppp
8) RIPv2 ( 5-3)
router rip
RIP 2
version 2
181
( )
network 10.0.0.0
9) ( 6-2)
TFTP- .1 .
10.nn.nn.1
:
Cisco IOS -; Cisco IOS TFTP; - Cisco IOS
182
1:
,
.
. ,
AA, A,
BB B, . .
VPN Cisco SDM
,
VPN-.
, .
, :
, ,
;
c VPN-
, Cisco SDM
.
2:
, , ,
,
. ,
, Cisco IOS. ,
, .
1
.
2
, 1.
,
. Cisco SDM
.
.
2007 Cisco Systems, Inc.
183
3 Cisco IOS,
. ping show, , ,
DHCP . , ,
. ,
,
, . ,
.
1 2 ,
IP- .
, :
,
.
3:
1 2 ,
IP- .
.
.
.
,
.
, .
,
:
184
,
;
SSH ,
;
,
;
,
;
,
;
,
.
SSH ,
;
DHCP- ,
;
,
;
,
;
, ;
,
;
DHCP-,
.
185
,
.
1-1, 1-2, 1-3 2-1 .
.
2-2:
( ):
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname SwitchX
!
enable secret 5 $1$A11O$0z83HwmswM/vk5.RSZpVr.
enable password cisco
!
no aaa new-model
ip subnet-zero
!
!
!
!
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
186
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address 10.10.10.11 255.255.255.0
no ip route-cache
!
ip default-gateway 10.10.10.3
ip http server
ip http secure-server
!
control-plane
!
!
line con 0
line vty 0 4
password sanjose
no login
line vty 5 15
password sanjose
no login
!
end
187
2-3:
( ):
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname SwitchX
!
enable secret 5 $1$A11O$0z83HwmswM/vk5.RSZpVr.
enable password 7 05080F1C2243
!
username netadmin password 7 030A5E1F070B2C4540
no aaa new-model
ip subnet-zero
!
ip domain-name cisco.com
ip ssh version 2
!
!
crypto pki trustpoint TP-self-signed-1833200768
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-1833200768
revocation-check none
rsakeypair TP-self-signed-1833200768
!
!
crypto ca certificate chain TP-self-signed-1833200768
certificate self-signed 01
3082028D 308201F6 A0030201 02020101 300D0609 2A864886 F70D0101
53312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D
69666963 6174652D 31383333 32303037 36383120 301E0609 2A864886
02161177 675F7377 5F612E63 6973636F 2E636F6D 301E170D 39333033
30313033 5A170D32 30303130 31303030 3030305A 3053312F 302D0603
26494F53 2D53656C 662D5369 676E6564 2D436572 74696669 63617465
33323030 37363831 20301E06 092A8648 86F70D01 09021611 77675F73
63697363 6F2E636F 6D30819F 300D0609 2A864886 F70D0101 01050003
81890281 8100B444 4F07E979 88953526 E0B8480C 52DBC1E7 E5FF660A
8FB4A8EE 142FAEC4 744CB8BE 021BDAE5 BF005CA6 99D0BDC7 68C4A873
E460FAE5 1435B900 43505E02 3F0F5E4B D61D6787 59B6AE32 13558C75
42C15C96 D078A449 669E4B58 CD5857D0 1B570F43 008B811F 45CD05B0
F83865F5 8BFD0203 010001A3 71306F30 0F060355 1D130101 FF040530
301C0603 551D1104 15301382 1177675F 73775F61 2E636973 636F2E63
0603551D 23041830 16801414 679B7C0E C82E65FB 8953EC84 1FC9DD49
1D060355 1D0E0416 04141467 9B7C0EC8 2E65FB89 53EC841F C9DD49E6
06092A86 4886F70D 01010405 00038181 006C7E92 A7F96199 D1D81ADA
0660013D 4A91A319 6D6DBD61 B5147AAA FF0FCF26 3DF20CA7 9694B3B8
F8942F5F E53466BB 04E12200 25432AFE A09DDFCF A07A5A4A 145BE58D
5B085A4E 895C45BC 4DF264BC BFE32124 F4AA3BDB B9CF2CC2 35F3B42A
44531337 B03B7055 48A0B320 0A6C3173 C0
quit
!
188
04050030
43657274
F70D0109
30313030
55040313
2D313833
775F612E
818D0030
41932329
25A2F06C
561A6BB0
50D144BA
030101FF
6F6D301F
E672A630
72A6300D
FA16C868
24ABBEAC
4040040A
B16BFD69
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
switchport mode access
switchport port-security maximum 2
switchport port-security
switchport port-security violation restrict
switchport port-security mac-address sticky
switchport port-security mac-address sticky 0017.5a78.be01
switchport port-security mac-address sticky 001a.2fe7.3089
!
interface FastEthernet0/2
switchport mode access
!
interface FastEthernet0/3
switchport mode access
shutdown
!
interface FastEthernet0/4
switchport mode access
shutdown
!
interface FastEthernet0/5
switchport mode access
shutdown
!
interface FastEthernet0/6
switchport mode access
shutdown
!
interface FastEthernet0/7
switchport mode access
shutdown
!
interface FastEthernet0/8
switchport mode access
shutdown
!
interface FastEthernet0/9
switchport mode access
shutdown
!
interface FastEthernet0/10
switchport mode access
shutdown
!
interface FastEthernet0/11
switchport mode access
!
interface FastEthernet0/12
switchport mode access
!
interface FastEthernet0/13
switchport mode access
shutdown
!
2007 Cisco Systems, Inc.
189
interface FastEthernet0/14
switchport mode access
shutdown
!
interface FastEthernet0/15
switchport mode access
shutdown
!
interface FastEthernet0/16
switchport mode access
shutdown
!
interface FastEthernet0/17
switchport mode access
shutdown
!
interface FastEthernet0/18
switchport mode access
shutdown
!
interface FastEthernet0/19
switchport mode access
shutdown
!
interface FastEthernet0/20
switchport mode access
shutdown
!
interface FastEthernet0/21
switchport mode access
shutdown
!
interface FastEthernet0/22
switchport mode access
shutdown
!
interface FastEthernet0/23
switchport mode access
shutdown
!
interface FastEthernet0/24
switchport mode access
shutdown
!
interface GigabitEthernet0/1
switchport mode access
shutdown
!
interface GigabitEthernet0/2
switchport mode access
shutdown
!
interface Vlan1
ip address 10.10.10.11 255.255.255.0
no ip route-cache
!
ip default-gateway 10.10.10.3
ip http server
ip http secure-server
!
control-plane
!
190
banner login ^C
********** Warning
*************
**************************************************************^C
!
line con 0
password 7 111A180B1D1D1809
login
line vty 0 4
password 7 111A180B1D1D1809
login local
line vty 5 15
password 7 111A180B1D1D1809
login local
!
end
191
2-4:
Cisco IOS
( ):
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname SwitchX
!
enable secret 5 $1$A11O$0z83HwmswM/vk5.RSZpVr.
enable password 7 05080F1C2243
!
username netadmin password 7 030A5E1F070B2C4540
no aaa new-model
ip subnet-zero
!
ip domain-name cisco.com
ip ssh version 2
!
!
crypto pki trustpoint TP-self-signed-1833200768
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-1833200768
revocation-check none
rsakeypair TP-self-signed-1833200768
!
!
crypto ca certificate chain TP-self-signed-1833200768
certificate self-signed 01
3082028D 308201F6 A0030201 02020101 300D0609 2A864886 F70D0101
53312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D
69666963 6174652D 31383333 32303037 36383120 301E0609 2A864886
02161177 675F7377 5F612E63 6973636F 2E636F6D 301E170D 39333033
30313033 5A170D32 30303130 31303030 3030305A 3053312F 302D0603
26494F53 2D53656C 662D5369 676E6564 2D436572 74696669 63617465
33323030 37363831 20301E06 092A8648 86F70D01 09021611 77675F73
63697363 6F2E636F 6D30819F 300D0609 2A864886 F70D0101 01050003
81890281 8100B444 4F07E979 88953526 E0B8480C 52DBC1E7 E5FF660A
8FB4A8EE 142FAEC4 744CB8BE 021BDAE5 BF005CA6 99D0BDC7 68C4A873
E460FAE5 1435B900 43505E02 3F0F5E4B D61D6787 59B6AE32 13558C75
42C15C96 D078A449 669E4B58 CD5857D0 1B570F43 008B811F 45CD05B0
F83865F5 8BFD0203 010001A3 71306F30 0F060355 1D130101 FF040530
301C0603 551D1104 15301382 1177675F 73775F61 2E636973 636F2E63
0603551D 23041830 16801414 679B7C0E C82E65FB 8953EC84 1FC9DD49
1D060355 1D0E0416 04141467 9B7C0EC8 2E65FB89 53EC841F C9DD49E6
06092A86 4886F70D 01010405 00038181 006C7E92 A7F96199 D1D81ADA
0660013D 4A91A319 6D6DBD61 B5147AAA FF0FCF26 3DF20CA7 9694B3B8
F8942F5F E53466BB 04E12200 25432AFE A09DDFCF A07A5A4A 145BE58D
5B085A4E 895C45BC 4DF264BC BFE32124 F4AA3BDB B9CF2CC2 35F3B42A
44531337 B03B7055 48A0B320 0A6C3173 C0
quit
!
!
192
04050030
43657274
F70D0109
30313030
55040313
2D313833
775F612E
818D0030
41932329
25A2F06C
561A6BB0
50D144BA
030101FF
6F6D301F
E672A630
72A6300D
FA16C868
24ABBEAC
4040040A
B16BFD69
193
banner login ^C
********** Warning *************
Access to this device is restricted to authorized persons only!
Un-authorized access is prohibited. Violators will be prosecuted.
**************************************************************^C
!
line con 0
password 7 111A180B1D1D1809
login
line vty 0 4
password 7 111A180B1D1D1809
login local
line vty 5 15
password 7 111A180B1D1D1809
login local
!
end
195
4-1:
.
1:
32
16
48 = 32 + 16 = 00110000
222
222 = 128 + 64 + 16 + 8 + 4 + 2
= 1101110
119
119 = 64 + 32 + 16 + 4 + 2 + 1
= 01110111
135
60
60 = 32 + 16 + 8 + 4 = 00111100
-2
128
64
48
146
2:
196
32
16
128 + 64 + 8 + 4 = 204
128 + 32 + 8 + 2 = 170
11100011
128 + 64 + 32 + 2 + 1 = 227
10110011
128+ 32 + 16 + 2 + 1 = 179
00110101
32 + 16 + 4 + 1 = 53
10010111
128 + 16 + 4 + 2 + 1 = 151
-2
128
64
11001100
10101010
4-2:
.
1: IP-
145.32.59.24 .
7
32
16
10010001
00100000
59
00111011
24
00011000
-2
128
64
145
32
10010001.00100000.00111011.00011000
IP-
200.42.129.16
.
32
16
11001000
00101010
129
10000001
16
00010000
-2
128
64
200
42
IP-
11001000.00101010.10000001.00010000
197
14.82.19.54
.
32
16
00001110
01010010
19
00010011
54
00110110
-2
128
64
14
82
00001110.01010010.00010011.00110110
IP-
2: IP-
IP-
11011000.00011011.00111101.10001001 .
32
16
216
27
00111101
61
10001001
137
-2
128
64
11011000
00011011
IP-
198
216.27.61.137
IP-
11000110.00110101.10010011.00101101 .
32
16
198
53
10010011
147
00101101
45
-2
128
64
11000110
00110101
198.53.147.45
IP-
IP-
01111011.00101101.01000011.01011001 .
32
16
123
45
01000011
67
01011001
89
-2
128
64
01111011
00101101
123.45.67.89
IP-
3: P IP-
IP-
IP-
h
(2 -2)
10010001.00100000.00111011.00011000
145.32.59.24
16
2 -2 = 65 534
11001000.00101010.10000001.00010000
200.42.129.16
24
2 -2 = 254
00001110.01010010.00010011.00110110
14.82.19.54
2 -2 = 16 777 214
11011000.00011011.00111101.10001001
216.27.61.137
24
2 -2 = 254
10110011.00101101.01000011.01011001
179.45.67.89
16
2 -2 = 65 534
11000110.00110101.10010011.00101101
198.53.147.45
24
2 -2 = 254
16
24
16
199
4: P
IP-
200
IP-
23.75.345.200
345 ( = 255)
216.27.61.134
102.54.94
255.255.255.255
,
() ,
142.179.148.200
200.42.129.16
0.124.0.0
4-3:
.
1: O ,
C
,
192.168.89.0 ( ).
h
(2 2)
2 2 = 126
2 2 = 30
12
2 2 = 14
24
2 2=6
40
2 2=2
5
4
3
2
2: O ,
B
,
172.25.0.0 ( B).
8
14
20
35
h
(2 2)
3
4
5
6
13
2 = 8 190
13
2 = 8 190
12
2 = 4 094
11
2 = 2 046
10
2 = 1 022
3: O ,
A
,
10.0.0.0 ( A).
10
14
20
40
80
4
5
6
7
h
(2 2)
2
20
2 = 1 048 574
20
2 = 1 048 574
19
2 = 524 286
18
2 = 262 142
17
2 = 131 070
201
4-4
.
1: O
h
(2 2)
/20
255.255.240.0
11111111.11111111.11110000.00000000
4 094
/21
255.255.248.0
11111111.11111111.11111000.00000000
2 046
/22
255.255.252.0
11111111.11111111.11111100.00000000
1 022
/23
255.255.254.0
11111111.11111111.11111110.00000000
510
/24
255.255.255.0
11111111.11111111.11111111.00000000
254
/25
255.255.255.128
11111111.11111111.11111111.10000000
126
/26
255.255.255.192
11111111.11111111.11111111.11000000
62
/27
255.255.255.224
11111111.11111111.11111111.11100000
30
/28
255.255.255.240
11111111.11111111.11111111.11110000
14
/29
255.255.255.248
11111111.11111111.11111111.11111000
/30
255.255.255.252
11111111.11111111.11111111.11111100
2: O
, 172.25.0.0 /16.
. .
1. 12 ? 4
2. ,
12 .
: /20
(): 11111111.11111111.11110000.00000000
(): 255.255.240.0
3. , , 12 .
1.
00000000
2.
11110000
3.
IP-.
0000 | 0000
1111 | 0000
,
IP-.
202
4.
0000 0000 ( )
5.
,
0 .
0000 0001 ( )
6.
, 1
.
7.
8.
,
.
0000 1110 ( )
0000 1111 ( )
0001 0000 ( )
4 8 .
4. , .
172.25.0.0
172.25.0.1 172.25.15.254
172.25.15.255
172.25.16.0
172.25.16.1 172.25.31.254
172.25.31.255
172.25.32.0
172.25.32.1 172.25.47.254
172.25.47.255
172.25.48.0
172.25.48.1 172.25.63.254
172.25.63.255
172.25.64.0
172.25.64.1 172.25.79.254
172.25.79.255
172.25.80.0
172.25.80.1 172.25.93.254
172.25.93.255
172.25.94.0
172.25.94.1 172.25.109.254
172.25.109.255
172.25.110.0
172.25.110.1 172.25.123.254
172.25.123.255
3: O
, 192.168.1.0 /24.
1. 6 ? 3
2. ,
6 .
: /27
(): 11111111.11111111.11111111.11100000
(): 255.255.255.224
3. , , 6 .
203
1.
00000000
2.
11100000
3.
IP-.
000 | 00000
111 | 00000
,
IP-.
4.
000 00000 ( )
5.
,
0 .
000 00001 ( )
6.
, 1
.
7.
8.
,
.
000 11110 ( )
000 11111
( )
001 0000 ( )
4 8 .
4. , .
192.168.1.0
192.168.1.1 192.168.1.30
192.168.1.31
192.168.1.32
192.168.1.33 192.168.1.62
192.168.1.63
192.168.1.64
192.168.1.65 192.168.1.94
192.168.1.95
192.168.1.96
192.168.1.97 192.168.1.126
192.168.1.127
192.168.1.128
192.168.1.129 192.168.1.158
192.168.1.159
192.168.1.160
192.168.1.161 192.168.1.190
192.168.1.191
4: O
, 192.168.111.0 /28.
1. .
(): 11111111.11111111.11111111.11110000
(): 255.255.255.240
2. ? 16
3. ? 14
4. , , .
204
1.
10000001
2.
11110000
3.
IP-.
1000 | 0001
1111 | 0000
,
IP-.
4.
1000 0000 ( )
5.
,
0 .
1000 0001 ( )
6.
, 1
.
7.
8.
,
.
1000 1110 ( )
1000 1111
( )
1001 0000 ( )
4 8 .
5. , .
192.168.111.0
192.168.111.1 192.168.111.14
192.168.111.15
192.168.111.16
192.168.111.17 192.168.111.30
192.168.111.31
192.168.111.32
192.168.111.33 192.168.111.46
192.168.111.47
192.168.111.48
192.168.111.49 192.168.111.64
192.168.111.65
192.168.111.64
192.168.111.65 192.168.111.78
192.168.111.79
192.168.111.80
192.168.111.81 192.168.111.94
192.168.111.95
192.168.111.96
192.168.111.97 192.168.111.110
192.168.111.111
5: O
, 172.25.0.0 /23.
1. .
(): 11111111.11111111.11111110.00000000
(): 255.255.254.0
2. ?
126
3. ?
510
205
4. , , .
1.
01110000.00000000
2.
11111110.00000000
3.
IP-.
0111000 0|00000000
1111111 0|00000000
,
IP-.
4.
0111000 0.00000000 ( )
5.
,
0 .
0111000 0.00000001
( )
6.
, 1
.
0111000 1.11111110
( )
7.
8.
,
.
0111000 1.11111111
( )
0111001 0.00000000
( )
4 8 .
5. , .
172.25.0.0
172.25.0.1 172.25.1.254
172.25.1.255
172.25.2.0
172.25.2.1 172.25.3.254
172.25.3.255
172.25.4.0
172.25.4.1 172.25.5.254
172.25.5.255
172.25.6.0
172.25.6.1 172.25.7.254
172.25.7.255
172.25.8.0
172.25.8.1 172.25.9.254
172.25.9.255
...
6: O
, 172.20.0.0 /25.
1. .
(): 11111111.11111111.11111111.10000000
(): 255.255.255.128
2. ?
510
3. ?
126
206
4. , , .
1.
00000000.00000001
2.
11111111.10000000
3.
IP-.
00000000.0|0000000
11111111.1|0000000
,
IP-.
4.
00000000.10000000 ( )
5.
,
0 .
00000000.10000001
( )
6.
, 1
.
00000000.11111110
( )
7.
8.
,
.
00000000.11111111
( )
00000001.10000000
( )
4 8 .
5. , .
172.20.0.0
172.20.0.1 172.20.0.126
172.20.0.127
172.20.0.128
172.20.0.129 172.20.0.254
172.20.0.255
172.20.1.0
172.20.1.1 172.20.1.126
172.20.1.127
172.20.1.128
172.20.1.129 172.20.1.254
172.20.1.255
172.20.2.0
172.20.2.1 172.20.2.126
172.20.2.127
172.20.2.128
172.20.2.129 172.20.2.254
172.20.2.255
...
207
4-5:
. erase startup-config.
cisco cisco Cisco SDM
. :
Username: cisco
Password:
yourname#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue?
[confirm]
[OK]
Erase of nvram: complete
yourname#
*Mar 13 17:28:00.003: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
yourname#reload
Proceed with reload? [confirm]
*Mar 13 17:28:07.939: %SYS-5-RELOAD: Reload requested by console. Reload Reason:
Reload Command.
System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 2006 by cisco Systems, Inc.
Initializing memory for ECC
.
c2811 platform with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled
Upgrade ROMMON initialized
program load complete, entry point: 0x8000f000, size: 0xcb80
program load complete, entry point: 0x8000f000, size: 0xcb80
program load complete, entry point: 0x8000f000, size: 0x228d9f8
Self decompressing the image :
################################################################################
################################################################################
####################################### [OK]
Smart Init is enabled
smart init is sizing iomem
ID
MEMORY_REQ
TYPE
0003E7
0X003DA000 C2811 Mainboard
0X00263F50 Onboard VPN
0X000021B8 Onboard USB
0X002C29F0 public buffer pools
0X00211000 public particle pools
TOTAL:
0X00B13AF8
If any of the above Memory Requirements are
"UNKNOWN", you may be using an unsupported
configuration or there is a software problem and
system operation may be compromised.
Rounded IOMEM up to: 12Mb.
208
209
210
4-6:
( ):
!
version 12.4
!
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname RouterX
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$.dET$BDxkofHF3aAsRthe/c0.c.
enable password cisco
!
no aaa new-model
!
!
ip cef
!
!
!
!
voice-card 0
no dspfarm
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 10.10.10.3 255.255.255.0
duplex half
speed auto
no mop enabled
!
interface FastEthernet0/1
no ip address
2007 Cisco Systems, Inc.
211
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
no ip address
shutdown
no fair-queue
!
interface Serial0/0/1
no ip address
shutdown
clock rate 2000000
!
!
!
ip http server
no ip http secure-server
!
dialer-list 1 protocol ip permit
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
password sanjose
login
!
scheduler allocate 20000 1000
!
end
212
4-7:
( ):
!
!
version 12.4
!
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname RouterX
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$.dET$BDxkofHF3aAsRthe/c0.c.
enable password 7 14141B180F0B
!
no aaa new-model
!
!
ip cef
!
!
no ip domain lookup
ip domain name cisco.com
ip ssh version 2
!
!
voice-card 0
no dspfarm
!
!
!
!
!
!
!
!
!
!
!
!
!
!
username netadmin password 7 082F495A081D081E1C
!
!
!
!
!
!
interface FastEthernet0/0
2007 Cisco Systems, Inc.
213
214
4-8:
Cisco SDM
DHCP-
( ):
!
!
version 12.4
!
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname RouterX
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$.dET$BDxkofHF3aAsRthe/c0.c.
enable password 7 14141B180F0B
!
no aaa new-model
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 10.10.10.1 10.10.10.149
ip dhcp excluded-address 10.10.10.200 10.10.10.254
!
ip dhcp pool wgA_clients
import all
network 10.10.10.0 255.255.255.0
lease 0 0 5
!
!
no ip domain lookup
ip domain name cisco.com
ip ssh version 2
!
!
voice-card 0
no dspfarm
!
!
!
!
!
!
!
!
!
!
!
!
!
crypto pki trustpoint TP-self-signed-3715519608
2007 Cisco Systems, Inc.
215
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-3715519608
revocation-check none
rsakeypair TP-self-signed-3715519608
!
!
crypto pki certificate chain TP-self-signed-3715519608
certificate self-signed 01
30820249 308201B2 A0030201 02020101 300D0609 2A864886 F70D0101
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D
69666963 6174652D 33373135 35313936 3038301E 170D3037 30343035
30305A17 0D323030 31303130 30303030 305A3031 312F302D 06035504
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D33
31393630 3830819F 300D0609 2A864886 F70D0101 01050003 818D0030
8100D0D2 4D67CC33 F0966C60 96BD12D2 675EB867 42087A6F 4310110E
E965291B A9E21580 7F77960A B83618A5 65A718BE 4E81DB21 669B48D1
73575C54 6B25A849 6E886C49 3EA0D03C CC5E7AFA 186AE594 22F612D6
355AFCF5 9FBA492A EEEB13C8 27A6F2BE EEC51E85 18B52144 10DDA46C
D0450203 010001A3 71306F30 0F060355 1D130101 FF040530 030101FF
551D1104 15301382 1177675F 726F5F61 2E636973 636F2E63 6F6D301F
23041830 168014B7 CBDB7C0C C2AEB57B B2CA8F85 6C9567DA ACA8F430
1D0E0416 0414B7CB DB7C0CC2 AEB57BB2 CA8F856C 9567DAAC A8F4300D
4886F70D 01010405 00038181 0061FD2F C903A4A2 0E241513 68AD17EA
46C655CA 7AD9C703 DE996CD7 7F009ED1 19829639 6D57B06C 5225DEF4
1567E90F 60858412 AB1E106A 3110FD46 9439D60A 7FFB783D D740FDAC
388FFD58 436F2B2A A305F71B 00E91CAD 90B5F317 D705450E DC511A46
1C07F960 64CCE156 F65330FE 02
quit
username netadmin privilege 15 password 7 082F495A081D081E1C
!
!
!
!
!
!
interface FastEthernet0/0
ip address 10.10.10.3 255.255.255.0
duplex half
speed auto
no mop enabled
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
no ip address
shutdown
no fair-queue
!
interface Serial0/0/1
no ip address
shutdown
clock rate 2000000
!
!
!
ip http server
ip http authentication local
216
04050030
43657274
32333135
03132649
37313535
81890281
1E852852
172E1FF3
8CA089EC
C0831824
301C0603
0603551D
1D060355
06092A86
16856A52
5F3325D1
EC00C4B5
E777ACAC
ip http secure-server
!
dialer-list 1 protocol ip permit
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
banner login ^C
********** Warning *************
Access to this device is restricted to authorized persons only!
Un-authorized access is prohibited. Violators will be prosecuted.
**************************************************************^C
!
line con 0
password 7 14041305060B392E
login
line aux 0
line vty 0 4
password 7 071C204244060A00
login local
transport input telnet ssh
!
scheduler allocate 20000 1000
!
end
217
4-9.
( ):
!
!
version 12.4
!
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname RouterX
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$.dET$BDxkofHF3aAsRthe/c0.c.
enable password 7 14141B180F0B
!
no aaa new-model
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 10.10.10.1 10.10.10.149
ip dhcp excluded-address 10.10.10.200 10.10.10.254
!
ip dhcp pool wgA_clients
import all
network 10.10.10.0 255.255.255.0
lease 0 0 5
!
!
no ip domain lookup
ip domain name cisco.com
ip ssh version 2
!
!
voice-card 0
no dspfarm
!
!
!
!
!
!
!
!
!
!
!
!
!
crypto pki trustpoint TP-self-signed-3715519608
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-3715519608
218
revocation-check none
rsakeypair TP-self-signed-3715519608
!
!
crypto pki certificate chain TP-self-signed-3715519608
certificate self-signed 01
30820249 308201B2 A0030201 02020101 300D0609 2A864886 F70D0101
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D
69666963 6174652D 33373135 35313936 3038301E 170D3037 30343035
30305A17 0D323030 31303130 30303030 305A3031 312F302D 06035504
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D33
31393630 3830819F 300D0609 2A864886 F70D0101 01050003 818D0030
8100D0D2 4D67CC33 F0966C60 96BD12D2 675EB867 42087A6F 4310110E
E965291B A9E21580 7F77960A B83618A5 65A718BE 4E81DB21 669B48D1
73575C54 6B25A849 6E886C49 3EA0D03C CC5E7AFA 186AE594 22F612D6
355AFCF5 9FBA492A EEEB13C8 27A6F2BE EEC51E85 18B52144 10DDA46C
D0450203 010001A3 71306F30 0F060355 1D130101 FF040530 030101FF
551D1104 15301382 1177675F 726F5F61 2E636973 636F2E63 6F6D301F
23041830 168014B7 CBDB7C0C C2AEB57B B2CA8F85 6C9567DA ACA8F430
1D0E0416 0414B7CB DB7C0CC2 AEB57BB2 CA8F856C 9567DAAC A8F4300D
4886F70D 01010405 00038181 0061FD2F C903A4A2 0E241513 68AD17EA
46C655CA 7AD9C703 DE996CD7 7F009ED1 19829639 6D57B06C 5225DEF4
1567E90F 60858412 AB1E106A 3110FD46 9439D60A 7FFB783D D740FDAC
388FFD58 436F2B2A A305F71B 00E91CAD 90B5F317 D705450E DC511A46
1C07F960 64CCE156 F65330FE 02
quit
username netadmin privilege 15 password 7 082F495A081D081E1C
!
!
!
!
!
!
interface FastEthernet0/0
ip address 10.10.10.3 255.255.255.0
duplex half
speed auto
no mop enabled
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
no ip address
shutdown
no fair-queue
!
interface Serial0/0/1
no ip address
shutdown
clock rate 2000000
!
!
!
ip http server
ip http authentication local
ip http secure-server
!
2007 Cisco Systems, Inc.
04050030
43657274
32333135
03132649
37313535
81890281
1E852852
172E1FF3
8CA089EC
C0831824
301C0603
0603551D
1D060355
06092A86
16856A52
5F3325D1
EC00C4B5
E777ACAC
219
220
5-1:
( ):
!
!
version 12.4
!
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname RouterX
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$.dET$BDxkofHF3aAsRthe/c0.c.
enable password 7 14141B180F0B
!
no aaa new-model
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 10.10.10.1 10.10.10.149
ip dhcp excluded-address 10.10.10.200 10.10.10.254
!
ip dhcp pool wgA_clients
import all
network 10.10.10.0 255.255.255.0
lease 0 0 5
!
!
no ip domain lookup
ip domain name cisco.com
ip ssh version 2
!
!
voice-card 0
no dspfarm
!
!
!
!
!
!
!
!
!
!
!
!
!
crypto pki trustpoint TP-self-signed-3715519608
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-3715519608
2007 Cisco Systems, Inc.
221
revocation-check none
rsakeypair TP-self-signed-3715519608
!
!
crypto pki certificate chain TP-self-signed-3715519608
certificate self-signed 01
30820249 308201B2 A0030201 02020101 300D0609 2A864886 F70D0101
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D
69666963 6174652D 33373135 35313936 3038301E 170D3037 30343035
30305A17 0D323030 31303130 30303030 305A3031 312F302D 06035504
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D33
31393630 3830819F 300D0609 2A864886 F70D0101 01050003 818D0030
8100D0D2 4D67CC33 F0966C60 96BD12D2 675EB867 42087A6F 4310110E
E965291B A9E21580 7F77960A B83618A5 65A718BE 4E81DB21 669B48D1
73575C54 6B25A849 6E886C49 3EA0D03C CC5E7AFA 186AE594 22F612D6
355AFCF5 9FBA492A EEEB13C8 27A6F2BE EEC51E85 18B52144 10DDA46C
D0450203 010001A3 71306F30 0F060355 1D130101 FF040530 030101FF
551D1104 15301382 1177675F 726F5F61 2E636973 636F2E63 6F6D301F
23041830 168014B7 CBDB7C0C C2AEB57B B2CA8F85 6C9567DA ACA8F430
1D0E0416 0414B7CB DB7C0CC2 AEB57BB2 CA8F856C 9567DAAC A8F4300D
4886F70D 01010405 00038181 0061FD2F C903A4A2 0E241513 68AD17EA
46C655CA 7AD9C703 DE996CD7 7F009ED1 19829639 6D57B06C 5225DEF4
1567E90F 60858412 AB1E106A 3110FD46 9439D60A 7FFB783D D740FDAC
388FFD58 436F2B2A A305F71B 00E91CAD 90B5F317 D705450E DC511A46
1C07F960 64CCE156 F65330FE 02
quit
username netadmin privilege 15 password 7 082F495A081D081E1C
!
!
!
!
!
!
interface FastEthernet0/0
ip address 10.10.10.3 255.255.255.0
duplex half
speed auto
no mop enabled
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
no ip address
shutdown
no fair-queue
!
interface Serial0/0/1
no ip address
shutdown
clock rate 2000000
!
!
!
ip http server
ip http authentication local
ip http secure-server
!
222
04050030
43657274
32333135
03132649
37313535
81890281
1E852852
172E1FF3
8CA089EC
C0831824
301C0603
0603551D
1D060355
06092A86
16856A52
5F3325D1
EC00C4B5
E777ACAC
223
5-2:
( ):
!
!
version 12.4
!
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname RouterX
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$.dET$BDxkofHF3aAsRthe/c0.c.
enable password 7 14141B180F0B
!
no aaa new-model
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 10.10.10.1 10.10.10.149
ip dhcp excluded-address 10.10.10.200 10.10.10.254
!
ip dhcp pool wgA_clients
import all
network 10.10.10.0 255.255.255.0
lease 0 0 5
!
!
no ip domain lookup
ip domain name cisco.com
ip ssh version 2
!
!
voice-card 0
no dspfarm
!
!
!
!
!
!
!
!
!
!
!
!
!
crypto pki trustpoint TP-self-signed-3715519608
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-3715519608
224
revocation-check none
rsakeypair TP-self-signed-3715519608
!
!
crypto pki certificate chain TP-self-signed-3715519608
certificate self-signed 01
30820249 308201B2 A0030201 02020101 300D0609 2A864886 F70D0101
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D
69666963 6174652D 33373135 35313936 3038301E 170D3037 30343035
30305A17 0D323030 31303130 30303030 305A3031 312F302D 06035504
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D33
31393630 3830819F 300D0609 2A864886 F70D0101 01050003 818D0030
8100D0D2 4D67CC33 F0966C60 96BD12D2 675EB867 42087A6F 4310110E
E965291B A9E21580 7F77960A B83618A5 65A718BE 4E81DB21 669B48D1
73575C54 6B25A849 6E886C49 3EA0D03C CC5E7AFA 186AE594 22F612D6
355AFCF5 9FBA492A EEEB13C8 27A6F2BE EEC51E85 18B52144 10DDA46C
D0450203 010001A3 71306F30 0F060355 1D130101 FF040530 030101FF
551D1104 15301382 1177675F 726F5F61 2E636973 636F2E63 6F6D301F
23041830 168014B7 CBDB7C0C C2AEB57B B2CA8F85 6C9567DA ACA8F430
1D0E0416 0414B7CB DB7C0CC2 AEB57BB2 CA8F856C 9567DAAC A8F4300D
4886F70D 01010405 00038181 0061FD2F C903A4A2 0E241513 68AD17EA
46C655CA 7AD9C703 DE996CD7 7F009ED1 19829639 6D57B06C 5225DEF4
1567E90F 60858412 AB1E106A 3110FD46 9439D60A 7FFB783D D740FDAC
388FFD58 436F2B2A A305F71B 00E91CAD 90B5F317 D705450E DC511A46
1C07F960 64CCE156 F65330FE 02
quit
username netadmin privilege 15 password 7 082F495A081D081E1C
!
!
!
!
!
!
interface FastEthernet0/0
ip address 10.10.10.3 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex half
speed auto
no mop enabled
!
interface FastEthernet0/1
description $ETH-WAN$
ip address dhcp client-id FastEthernet0/1
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
interface Serial0/0/0
description Link to Main Office
ip address 10.140.10.2 255.255.255.0
encapsulation ppp
no fair-queue
!
interface Serial0/0/1
no ip address
shutdown
clock rate 2000000
!
ip route 192.168.21.0 255.255.255.0 10.140.10.1
2007 Cisco Systems, Inc.
04050030
43657274
32333135
03132649
37313535
81890281
1E852852
172E1FF3
8CA089EC
C0831824
301C0603
0603551D
1D060355
06092A86
16856A52
5F3325D1
EC00C4B5
E777ACAC
225
!
!
ip http server
ip http authentication local
ip http secure-server
ip nat inside source list 1 interface FastEthernet0/1 overload
!
access-list 1 remark INSIDE_IF=FastEthernet0/0
access-list 1 remark SDM_ACL Category=2
access-list 1 permit 10.10.10.0 0.0.0.255
dialer-list 1 protocol ip permit
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
banner login ^C
********** Warning *************
Access to this device is restricted to authorized persons only!
Un-authorized access is prohibited. Violators will be prosecuted.
**************************************************************^C
!
line con 0
exec-timeout 60 0
password 7 14041305060B392E
logging synchronous
login
history size 100
line aux 0
line vty 0 4
password 7 071C204244060A00
logging synchronous
login local
history size 100
transport input telnet ssh
!
scheduler allocate 20000 1000
!
end
226
5-3:
( ):
!
!
version 12.4
!
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname RouterX
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$.dET$BDxkofHF3aAsRthe/c0.c.
enable password 7 14141B180F0B
!
no aaa new-model
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 10.10.10.1 10.10.10.149
ip dhcp excluded-address 10.10.10.200 10.10.10.254
!
ip dhcp pool wgA_clients
import all
network 10.10.10.0 255.255.255.0
lease 0 0 5
!
!
no ip domain lookup
ip domain name cisco.com
ip ssh version 2
!
!
voice-card 0
no dspfarm
!
!
!
!
!
!
!
!
!
!
!
!
!
227
04050030
43657274
32333135
03132649
37313535
81890281
1E852852
172E1FF3
8CA089EC
C0831824
301C0603
0603551D
1D060355
06092A86
16856A52
5F3325D1
EC00C4B5
E777ACAC
229
6-1:
Cisco
( ):
!
version 12.4
!
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname RouterX
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$.dET$BDxkofHF3aAsRthe/c0.c.
enable password 7 14141B180F0B
!
no aaa new-model
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 10.10.10.1 10.10.10.149
ip dhcp excluded-address 10.10.10.200 10.10.10.254
!
ip dhcp pool wgA_clients
import all
network 10.10.10.0 255.255.255.0
lease 0 0 5
!
!
no ip domain lookup
ip domain name cisco.com
ip ssh version 2
!
!
voice-card 0
no dspfarm
!
!
!
!
!
!
!
!
!
!
!
!
!
crypto pki trustpoint TP-self-signed-3715519608
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-3715519608
revocation-check none
230
rsakeypair TP-self-signed-3715519608
!
!
crypto pki certificate chain TP-self-signed-3715519608
certificate self-signed 01
30820249 308201B2 A0030201 02020101 300D0609 2A864886 F70D0101
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D
69666963 6174652D 33373135 35313936 3038301E 170D3037 30343035
30305A17 0D323030 31303130 30303030 305A3031 312F302D 06035504
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D33
31393630 3830819F 300D0609 2A864886 F70D0101 01050003 818D0030
8100D0D2 4D67CC33 F0966C60 96BD12D2 675EB867 42087A6F 4310110E
E965291B A9E21580 7F77960A B83618A5 65A718BE 4E81DB21 669B48D1
73575C54 6B25A849 6E886C49 3EA0D03C CC5E7AFA 186AE594 22F612D6
355AFCF5 9FBA492A EEEB13C8 27A6F2BE EEC51E85 18B52144 10DDA46C
D0450203 010001A3 71306F30 0F060355 1D130101 FF040530 030101FF
551D1104 15301382 1177675F 726F5F61 2E636973 636F2E63 6F6D301F
23041830 168014B7 CBDB7C0C C2AEB57B B2CA8F85 6C9567DA ACA8F430
1D0E0416 0414B7CB DB7C0CC2 AEB57BB2 CA8F856C 9567DAAC A8F4300D
4886F70D 01010405 00038181 0061FD2F C903A4A2 0E241513 68AD17EA
46C655CA 7AD9C703 DE996CD7 7F009ED1 19829639 6D57B06C 5225DEF4
1567E90F 60858412 AB1E106A 3110FD46 9439D60A 7FFB783D D740FDAC
388FFD58 436F2B2A A305F71B 00E91CAD 90B5F317 D705450E DC511A46
1C07F960 64CCE156 F65330FE 02
quit
username netadmin privilege 15 password 7 082F495A081D081E1C
!
!
!
!
!
!
interface FastEthernet0/0
ip address 10.10.10.3 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex half
speed auto
no mop enabled
!
interface FastEthernet0/1
description $ETH-WAN$
ip address dhcp client-id FastEthernet0/1
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
no cdp enable
!
interface Serial0/0/0
description Link to Main Office
ip address 10.140.10.2 255.255.255.0
encapsulation ppp
no fair-queue
!
interface Serial0/0/1
no ip address
shutdown
clock rate 2000000
!
router rip
2007 Cisco Systems, Inc.
04050030
43657274
32333135
03132649
37313535
81890281
1E852852
172E1FF3
8CA089EC
C0831824
301C0603
0603551D
1D060355
06092A86
16856A52
5F3325D1
EC00C4B5
E777ACAC
231
version 2
network 10.0.0.0
!
!
!
ip http server
ip http authentication local
ip http secure-server
ip nat inside source list 1 interface FastEthernet0/1 overload
!
access-list 1 remark INSIDE_IF=FastEthernet0/0
access-list 1 remark SDM_ACL Category=2
access-list 1 permit 10.10.10.0 0.0.0.255
dialer-list 1 protocol ip permit
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
banner login ^C
********** Warning *************
Access to this device is restricted to authorized persons only!
Un-authorized access is prohibited. Violators will be prosecuted.
**************************************************************^C
!
line con 0
exec-timeout 60 0
password 7 14041305060B392E
logging synchronous
login
history size 100
line aux 0
line vty 0 4
password 7 071C204244060A00
logging synchronous
login local
history size 100
transport input telnet ssh
!
scheduler allocate 20000 1000
!
end
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname SwitchX
232
!
enable secret 5 $1$A11O$0z83HwmswM/vk5.RSZpVr.
enable password 7 05080F1C2243
!
username netadmin password 7 030A5E1F070B2C4540
no aaa new-model
ip subnet-zero
!
no ip domain-lookup
ip domain-name cisco.com
ip ssh version 2
!
!
crypto pki trustpoint TP-self-signed-1833200768
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-1833200768
revocation-check none
rsakeypair TP-self-signed-1833200768
!
!
crypto ca certificate chain TP-self-signed-1833200768
certificate self-signed 01
3082028D 308201F6 A0030201 02020101 300D0609 2A864886 F70D0101
53312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D
69666963 6174652D 31383333 32303037 36383120 301E0609 2A864886
02161177 675F7377 5F612E63 6973636F 2E636F6D 301E170D 39333033
30313033 5A170D32 30303130 31303030 3030305A 3053312F 302D0603
26494F53 2D53656C 662D5369 676E6564 2D436572 74696669 63617465
33323030 37363831 20301E06 092A8648 86F70D01 09021611 77675F73
63697363 6F2E636F 6D30819F 300D0609 2A864886 F70D0101 01050003
81890281 8100B444 4F07E979 88953526 E0B8480C 52DBC1E7 E5FF660A
8FB4A8EE 142FAEC4 744CB8BE 021BDAE5 BF005CA6 99D0BDC7 68C4A873
E460FAE5 1435B900 43505E02 3F0F5E4B D61D6787 59B6AE32 13558C75
42C15C96 D078A449 669E4B58 CD5857D0 1B570F43 008B811F 45CD05B0
F83865F5 8BFD0203 010001A3 71306F30 0F060355 1D130101 FF040530
301C0603 551D1104 15301382 1177675F 73775F61 2E636973 636F2E63
0603551D 23041830 16801414 679B7C0E C82E65FB 8953EC84 1FC9DD49
1D060355 1D0E0416 04141467 9B7C0EC8 2E65FB89 53EC841F C9DD49E6
06092A86 4886F70D 01010405 00038181 006C7E92 A7F96199 D1D81ADA
0660013D 4A91A319 6D6DBD61 B5147AAA FF0FCF26 3DF20CA7 9694B3B8
F8942F5F E53466BB 04E12200 25432AFE A09DDFCF A07A5A4A 145BE58D
5B085A4E 895C45BC 4DF264BC BFE32124 F4AA3BDB B9CF2CC2 35F3B42A
44531337 B03B7055 48A0B320 0A6C3173 C0
quit
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
switchport mode access
switchport port-security maximum 2
switchport port-security
switchport port-security violation restrict
switchport port-security mac-address sticky
switchport port-security mac-address sticky 0017.5a78.be01
switchport port-security mac-address sticky 001a.2fe7.3089
!
2007 Cisco Systems, Inc.
04050030
43657274
F70D0109
30313030
55040313
2D313833
775F612E
818D0030
41932329
25A2F06C
561A6BB0
50D144BA
030101FF
6F6D301F
E672A630
72A6300D
FA16C868
24ABBEAC
4040040A
B16BFD69
233
interface FastEthernet0/2
switchport mode access
!
interface FastEthernet0/3
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/4
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/5
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/6
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/7
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/8
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/9
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/10
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/11
switchport mode access
no cdp enable
!
interface FastEthernet0/12
switchport mode access
no cdp enable
!
interface FastEthernet0/13
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/14
switchport mode access
shutdown
no cdp enable
!
234
interface FastEthernet0/15
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/16
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/17
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/18
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/19
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/20
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/21
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/22
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/23
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/24
switchport mode access
shutdown
no cdp enable
!
interface GigabitEthernet0/1
switchport mode access
shutdown
no cdp enable
!
interface GigabitEthernet0/2
switchport mode access
shutdown
no cdp enable
!
interface Vlan1
2007 Cisco Systems, Inc.
235
236
6-2:
( ):
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname RouterX
!
boot-start-marker
boot system tftp c2800nm-advipservicesk9-mz.124-12.bin 10.10.10.1
boot system flash c2800nm-advipservicesk9-mz.124-12.bin
boot system flash
boot-end-marker
!
no logging buffered
enable secret 5 $1$X.GH$OkseupwTuqqjGp4oP4Fdg0
enable password 7 121A0C041104
!
no aaa new-model
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 10.10.10.1 10.10.10.149
ip dhcp excluded-address 10.10.10.200 10.10.10.254
!
ip dhcp pool wgA_clients
import all
network 10.10.10.0 255.255.255.0
default-router 10.10.10.3
lease 0 0 5
!
!
no ip domain lookup
ip domain name cisco.com
ip ssh version 2
!
!
voice-card 0
no dspfarm
!
!
!
!
!
!
!
!
!
!
!
2007 Cisco Systems, Inc.
237
!
!
crypto pki trustpoint TP-self-signed-3715519608
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-3715519608
revocation-check none
rsakeypair TP-self-signed-3715519608
!
!
crypto pki certificate chain TP-self-signed-3715519608
certificate self-signed 01
30820249 308201B2 A0030201 02020101 300D0609 2A864886 F70D0101
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D
69666963 6174652D 33373135 35313936 3038301E 170D3037 30343035
30305A17 0D323030 31303130 30303030 305A3031 312F302D 06035504
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D33
31393630 3830819F 300D0609 2A864886 F70D0101 01050003 818D0030
8100D0D2 4D67CC33 F0966C60 96BD12D2 675EB867 42087A6F 4310110E
E965291B A9E21580 7F77960A B83618A5 65A718BE 4E81DB21 669B48D1
73575C54 6B25A849 6E886C49 3EA0D03C CC5E7AFA 186AE594 22F612D6
355AFCF5 9FBA492A EEEB13C8 27A6F2BE EEC51E85 18B52144 10DDA46C
D0450203 010001A3 71306F30 0F060355 1D130101 FF040530 030101FF
551D1104 15301382 1177675F 726F5F61 2E636973 636F2E63 6F6D301F
23041830 168014B7 CBDB7C0C C2AEB57B B2CA8F85 6C9567DA ACA8F430
1D0E0416 0414B7CB DB7C0CC2 AEB57BB2 CA8F856C 9567DAAC A8F4300D
4886F70D 01010405 00038181 0061FD2F C903A4A2 0E241513 68AD17EA
46C655CA 7AD9C703 DE996CD7 7F009ED1 19829639 6D57B06C 5225DEF4
1567E90F 60858412 AB1E106A 3110FD46 9439D60A 7FFB783D D740FDAC
388FFD58 436F2B2A A305F71B 00E91CAD 90B5F317 D705450E DC511A46
1C07F960 64CCE156 F65330FE 02
quit
username netadmin privilege 15 password 7 0208014F0A02022842
!
!
!
!
!
!
interface FastEthernet0/0
ip address 10.10.10.3 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex half
speed auto
no mop enabled
!
interface FastEthernet0/1
description $ETH-WAN$
ip address dhcp client-id FastEthernet0/1
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
no cdp enable
!
interface Serial0/0/0
description Link to Main Office
ip address 10.140.10.2 255.255.255.0
encapsulation ppp
no fair-queue
!
238
04050030
43657274
32333135
03132649
37313535
81890281
1E852852
172E1FF3
8CA089EC
C0831824
301C0603
0603551D
1D060355
06092A86
16856A52
5F3325D1
EC00C4B5
E777ACAC
interface Serial0/0/1
no ip address
shutdown
clock rate 2000000
!
router rip
version 2
network 10.0.0.0
!
!
!
ip http server
ip http authentication local
no ip http secure-server
ip nat inside source list 1 interface FastEthernet0/1 overload
!
access-list 1 remark INSIDE_IF=FastEthernet0/0
access-list 1 remark SDM_ACL Category=2
access-list 1 permit 10.10.10.0 0.0.0.255
dialer-list 1 protocol ip permit
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
banner login ^C
********** Warning *************
Access to this device is restricted to authorized persons only!
Un-authorized access is prohibited. Violators will be prosecuted.
**************************************************************^C
!
line con 0
exec-timeout 60 0
password 7 051807012B435D0C
logging synchronous
login
history size 100
line aux 0
line vty 0 4
password 7 051807012B435D0C
logging synchronous
login local
history size 100
transport input telnet ssh
!
scheduler allocate 20000 1000
!
end
239
6-3:
Cisco
( ):
There were no overall changes to the configuration.!
240
6-4:
( ):
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname RouterXX
!
boot-start-marker
boot system flash c2800nm-advipservicesk9-mz.124-12.bin
boot system tftp c2800nm-advipservicesk9-mz.124-12.bin 10.10.10.1
boot system flash
boot-end-marker
!
enable secret 5 $1$t7tb$L8Par/.s/MaoshaZH1cLq0
enable password 7 0822455D0A16
!
no aaa new-model
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 10.10.10.1 10.10.10.149
ip dhcp excluded-address 10.10.10.200 10.10.10.254
!
ip dhcp pool branchXX-clients
import all
network 10.10.10.0 255.255.255.0
default-router 10.10.10.3
lease 0 0 5
!
!
ip domain name cisco.com
ip ssh version 2
!
!
voice-card 0
no dspfarm
!
!
!
!
!
!
!
!
!
!
!
!
!
2007 Cisco Systems, Inc.
241
04050030
43657274
32313439
03132649
35373536
81890281
A6433BAF
2ED0E54B
1407B634
AA85D645
30120603
14E0035D
E0035D91
04050003
EC4D6331
4A0E67C0
E3E0D217
EA69FCE6 0C4D36
router rip
version 2
network 10.0.0.0
!
!
!
ip http server
ip http authentication local
ip http secure-server
ip nat inside source list 1 interface FastEthernet0/1 overload
!
access-list 1 remark INSIDE_IF=FastEthernet0/0
access-list 1 remark SDM_ACL Category=2
access-list 1 permit 10.10.10.0 0.0.0.255
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
banner login _
********** Warning *************
Access to this device is restricted to authorized persons only!
Un-authorized access is prohibited. Violators will be prosecuted.
**************************************************************^C
!
line con 0
exec-timeout 60 0
password 7 08324D4003161612
logging synchronous
login
history size 100
line aux 0
line vty 0 4
logging synchronous
login local
history size 100
transport input ssh
!
scheduler allocate 20000 1000
!
end
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname SwitchXX
!
2007 Cisco Systems, Inc.
243
04050030
43657274
0D010902
31303030
04031325
38303930
582E6369
00308189
87906C24
EFED87E4
400D6821
E2BEEDC3
01FF301C
301F0603
A7301D06
300D0609
026C6F29
CF1836A3
CD6EFA78
894E3588
interface FastEthernet0/2
switchport mode access
!
interface FastEthernet0/3
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/4
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/5
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/6
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/7
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/8
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/9
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/10
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/11
switchport mode access
no cdp enable
!
interface FastEthernet0/12
switchport mode access
no cdp enable
!
interface FastEthernet0/13
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/14
switchport mode access
shutdown
no cdp enable
!
2007 Cisco Systems, Inc.
245
interface FastEthernet0/15
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/16
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/17
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/18
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/19
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/20
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/21
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/22
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/23
switchport mode access
shutdown
no cdp enable
!
interface FastEthernet0/24
switchport mode access
shutdown
no cdp enable
!
interface GigabitEthernet0/1
switchport mode access
shutdown
no cdp enable
!
interface GigabitEthernet0/2
switchport mode access
shutdown
no cdp enable
!
interface Vlan1
246
247