Академический Документы
Профессиональный Документы
Культура Документы
Justinian Anatory
Router is a computer
www.livinginternet.com/i/ii_arpan
et.htm
2
CPU
RAM
Flash
NVRAM
Buses
ROM
Interfaces
Power Supply
3
Accessing the
router directly
The console port on the router allows you to connect a dumb terminal
or a computer with terminal emulator software directly.
No IP addressing or other configurations needed on the router.
Used for:
Configuring a device that has never been configured.
Configuring a device directly, because you are physically located
where the device is.
Troubleshooting a device that you can no longer access remotely.
Performing password recovery.
Serial Port
10
<Router Output>
11
Terminal Emulators
12
Using HyperTerminal
Settings
Match
serial port
on PC
13
Teraterm
14
<Router Output>
15
Connecting LAN
interfaces
16
17
18
19
20
22
Router> enable
If you are prompted for a password type: class or if that does not work, type cisco
23
User Mode
Router>
User mode will allow you to view the state of the router, but
will not allow you to modify its configuration.
Dont confuse user mode with users of the network.
This is only for network techs, operators, engineers, etc.
24
Getting Help
Router> ?
Exec commands:
access-enable
entry
access-profile
clear
<text omitted>
ping
ppp
(PPP)
--More--
25
Getting Help
Router> show ?
alps
backup
c2600
call
cca
ccm-manager
cdapi
cef
class-map
clock
<text omitted>
--More
Router> show
Alps information
Backup status
Show c2600 information
Show call
CCA information
Call Manager Application information
CDAPI information
Cisco Express Forwarding
Show QoS Class Map
Display the system clock
26
Getting Help
Router> show interfaces ?
Async
Async interface
BRI
ISDN Basic Rate
Interface
BVI
Bridge-Group Virtual
Interface
<text omitted>
Router> show interfaces
27
Privilege Mode
Router> enable
Router#
<user mode>
<privilege mode>
Router# disable
<privilege mode>
Router> enable
Router#
<user mode>
<privilege mode>
28
Abbreviated commands
Router# sh inter
Same as
Router# show interfaces
29
Router#show running-config
Current configuration : 542 bytes
!
version 12.2
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0
no ip address
shutdown
!
line con 0
line aux 0
line vty 0 4
!
end
Router#
Department of Computer and Systems Engineering
running-config
30
startup-config
Router#show startup-config
startup-config is not present
Router#
31
32
Erase startup-config
Router#erase startup-config
Erasing the nvram filesystem will remove all files!
Continue? [confirm] <Press Enter>
[OK]
Erase of nvram: complete
Router#
When you are done with the routers in the lab, please be
sure to erase the startup-config.
If you are starting a lab, and you do not get the message:
33
34
35
running-config
startup-config
IOS (running)
IOS
Bootup program
ios (partial)
36
During bootup
running-config
RAM
startup-config
Router# copy
running-config
startup-config
37
end
exit
38
Router>ena
Router#configure terminal <Must be in privileged mode>
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#?
Configure commands:
access-list
Add an access list entry
<text omitted>
Router(config)#exit
00:03:20: %SYS-5-CONFIG_I: Configured from console by con
Router#config t
Enter configuration commands, one per line.
Router(config)#exit
00:03:34: %SYS-5-CONFIG_I: Configured from console by console
Router#
39
Hostname
Router#config t
Router(config)#hostname R1
R1(config)#
40
Passwords
41
42
43
44
45
WARNING
service password-encryption uses a Cisco Level 7
encryption which is very easy to decrypt.
For the GetPass! software www.boson.com
However, the enable secret <password> uses a stronger
encryption method and cannot be easily hacked.
Department of Computer and Systems Engineering
46
More later!
47
Interfaces
Router#show ip interface brief
Interface
FastEthernet0/0
Serial0/0
BRI0/0
BRI0/0:1
BRI0/0:2
Serial0/1
Router#
IP-Address
unassigned
unassigned
unassigned
unassigned
unassigned
unassigned
OK?
YES
YES
YES
YES
YES
YES
Method
unset
unset
unset
unset
unset
unset
Status
administratively
administratively
administratively
administratively
administratively
administratively
Protocol
down down
down down
down down
down down
down down
down down
48
49
50
51
Configuring RIP.
52
end
exit
53
show interfaces Displays all the statistics for all the interfaces on the
router. To view the statistics for a specific interface, enter the show
interfaces command followed by the specific interface and port number.
show controllers serial Displays information-specific to the interface
hardware
show clock Shows the time set in the router
show hosts Displays a cached list of host names and addresses
show users Displays all users who are connected to the router
show history Displays a history of commands that have been entered
show flash Displays information about flash memory and what IOS files
are stored there
show version Displays information about the router and the IOS that is
running in RAM
show ARP Displays the ARP table of the router
show protocol Displays the global and interface specific status of any
configured Layer 3 protocols
show startup-configuration Displays the saved configuration located
in NVRAM
show running-configuration Displays the configuration currently
running in RAM
55
56
57
Real world
58
RouterB
DCE cable
RouterB(config)#inter serial 1
RouterB(config-if)#clock rate ?
Speed (bits per second)
1200
2400
4800
9600
19200
38400
56000
64000
<text omitted>
2000000
4000000
<300-4000000>
59
DTE Cable
DCE Cable
How can you tell which end is the DTE and which end is the DCE?
Look at the label on the cable.
Look at the connecter between the two cables - The DTE cable will
always be male and the DCE cable will always be female.
Department of Computer and Systems Engineering
60
RouterB
DCE cable
How can you tell which end is the DTE and which end is the DCE?
Use the show controllers command!
It will also tell you the type of cable, in our labs we will be using a V.35
cable.
Department of Computer and Systems Engineering
61
62
63
NetLab
Next Week
64