Академический Документы
Профессиональный Документы
Культура Документы
Router Modes
Router> enable
Note: This command allows you to enter into privileged exec mode/enable mode
where you can have more options for show and other commands. The next
prompt looks like this:
Router#
Note :- This command allows you to enter into global configuration mode ,where
you can configure a range of commands. The prompt for this command looks likes
this :
Router (config)#
Router(config)#exit
Router #exit
Router >
To specify or modify the host name for the router, global configuration command
HOSTNAME is used. Hostname is case sensitive. The host name is used in prompts
and default configuration file names .The factory – assigned default host name is
router .
Router >enable
Router(config)# hostname R1
R1(config)# exit
R1#
The system clock runs from the moment the system starts up and keeps track of
the current date and time based on Coordinated Universal Time (UTC),also known
as Greenwich Mean Time (GMT).
To manually set the system clock, use one of the formats of the clock set Exec
command.
<1993-2035> year
Verification:
-------------------------------------------------------------------------------------------------------------
Displaying Running Configuration
R1> enable
Building configuration. . .
To set an local password to control access to various privilege levels, use the
enable password global configuration command. An enable password is defined
as follows:
Welcome to R1
User Access Verification
Password: R123
R1>
R1> enable
Password: R333
R1#
R1> enable
R1(config)# exit
R1#
R1(config-if)# no shutdown
R1(config-if)# end
R1#
R1(config-if)# shutdown
R1(config-if)# end
R1#
VERIFICATION
R1#
VERIFICATION
METHOD1
METHOD2
Diagram:
Basic configuration of R1
Router> enable
Router(config)# hostname R1
R1(config-if)# no shut
R1(config-if)# exit
Basic configuration of R2
Router> enable
Router(config)# hostname R2
R2(config-if)# no shut
R2(config-if)# exit
R1(config-if)# exit
DIAGRAM:
BASIC CONFIGURATION OF R1
Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#interface s0/0
R1(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0, changed state to down
R1(config-if)#exit
R1(config)#interface f0/0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#
BASIC CONFIGURATION OF R2
Router>enable
Router#configure terminal
Router(config)#hostname R2
R2(config)#interface s0/0
R2(config-if)#no shutdown
R2(config-if)#
R2(config-if)#exit
R2(config)#interface f0/0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#exit
R2#
R1(config)#exit
R1#
R2(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
R2#
DIAGRAM:
BASIC CONFIGURATION OF R1
Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#interface s0/0
R1(config-if)#ip address 30.1.1.2 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#
R1(config-if)#exit
R1(config)#interface s0/1
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface f0/0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#exit
Building configuration...
[OK]
R1#
BASIC CONFIGURATION OF R2
Router>enable
Router(config)#hostname R2
R2(config)#interface s0/1
R2(config-if)#no shutdown
R2(config-if)#
R2(config-if)#exit
R2(config)#interface s0/0
R2(config-if)#no shutdown
R2(config)#interface f0/0
R2(config-if)#no shutdown
R2(config-if)#
R2(config-if)#exit
R2(config)#exit
R2#write
Building configuration...
[OK]
R2#
BASIC CONFIGURATION OF R3
Router>enable
Router#configure terminal
Router(config)#hostname R3
R3(config)#interface s0/0
R3(config-if)#ip address 30.1.1.1 255.0.0.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface s0/1
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface f0/0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#
R3(config)#exit
R3#write
Destination filename [startup-config]?
R3(config)#
DYNAMIC ROUTING
DIAGRAM:
BASIC CONFIGURATION OF R1,R2.R3
CONFIGURING RIP ON R1
R1#conf t
R1(config)#router rip
R1(config-router)#network 30.0.0.0
R1(config-router)#network 10.0.0.0
R1(config-router)#network 1.0.0.0
R1(config-router)#exit
R1(config)#exit
R1#
CONFIGURING RIP ON R2
R2#conf t
R2(config)#router rip
R2(config-router)#network 10.0.0.0
R2(config-router)#network 2.0.0.0
R2(config-router)#network 20.0.0.0
R2(config-router)#exit
R2(config)#exit
R2#
CONFIGURING RIP ON R3
R3#conf t
R3(config)#router rip
R3(config-router)#network 3.0.0.0
R3(config-router)#network 30.0.0.0
R3(config-router)#network 20.0.0.0
R3(config-router)#exit
R3(config)#exit
R3#
DE – ADVERTISING A NETWORK
R3(config)#router rip
R3#
R1(config)#exit
R1#
R2(config)#exit
R2#
R3(config)#exit
R3#
CONFIGURING RIPv2
DIAGRAM:
BASIC CONFIGURATION OF R1,R2,R3&R4
CONFIGURING RIPv2 ON R1
R1#configure terminal
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 12.0.0.0
R1(config-router)#network 1.0.0.0
R1(config-router)#end
R1#
CONFIGURING RIPv2 ON R2
R2#configure terminal
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 12.0.0.0
R2(config-router)#network 23.0.0.0
R2(config-router)#network 2.0.0.0
R2(config-router)#end
R2#
CONFIGURING RIPv2 ON R3
R3#configure terminal
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#network 23.0.0.0
R3(config-router)#network 34.0.0.0
R3(config-router)#network 3.0.0.0
R3(config-router)#end
R3#
CONFIGURING RIPv2 ON R4
R4#configure terminal
R4(config)#router rip
R4(config-router)#version 2
R4(config-router)#network 2.0.0.0
R4(config-router)#network 34.0.0.0
R4(config-router)#network 4.0.0.0
R4(config-router)#end
R4#
R1#configure terminal
R1(config)#router rip
R1(config-router)#no auto-summary
R1(config-router)#end
CONFIGURING IGRP
DIAGRAM:
CONFIGURING IGRP ON R1
R1#configure terminal
R1(config)#router igrp 5
R1(config-router)#network 12.0.0.0
R1(config-router)#network 1.0.0.0
R1(config-router)#end
R1#
CONFIGURING IGRP ON R2
R2#configure terminal
R2(config)#router igrp 5
R2(config-router)#network 12.0.0.0
R2(config-router)#network 2.0.0.0
R2(config-router)#end
R2#
CONFIGURING EIGRP
DIAGRAM:
R1#configure terminal
R1(config)#router eigrp 2
R1(config-router)#network 12.0.0.0
R1(config-router)#network 13.0.0.0
R1(config-router)#network 1.0.0.0
R1(config-router)#end
R1#
CONFIGURING EIGRP ON R2
R2#configure terminal
R2(config)#router eigrp 2
R2(config-router)#network 12.0.0.0
R2(config-router)#network 23.0.0.0
R2(config-router)#network 2.0.0.0
R2(config-router)#end
R2#
CONFIGURING EIGRP ON R3
R3#configure terminal
R3(config)#router eigrp 2
R3(config-router)#network 13.0.0.0
R3(config-router)#network 23.0.0.0
R3(config-router)#network 3.0.0.0
R3(config-router)#end
R3#
SWITCHES
CHANGING HOSTNAME
Switch#configure terminal
Switch(config)#hostname SW-1
SW-1(config)#exit
SW-1#write
Note:Write is used to save the configuration.Complete command is WRITE
TERMINAL
DISPLAYING RUNNING-CONFIGURATION
SW-1>enable
SW-1#show running-config
SW-1#configure terminal
SW-1(config)#interface f0/0
SW-1(config-if)#speed 100
SW-1(config-if)exit
SW-1(config)#
SW-1#show vlan
CREATING VLANs
SW-1#configure terminal
SW-1(config)#vlan 3
SW-1(config)#vlan 3
SW-1(config-vlan)#name MARKETING
SW-1(config-vlan)#end
SW-1#
VERIFICATION OF VLANS
DELETING VLANs
SW-1#config terminal
SW-1(config)#no vlans 64