Вы находитесь на странице: 1из 4

Router Environment

1. User Exec Mode


 Router>
 Type “enable” press enter (user to privilege)
 Type “disable” press enter (privilege to user)

2. Privilege Exec Mode


 Router#
 Type “configure terminal” press enter (exec to global)

3. Global Configuration Mode


 Router(config)#

Note: Type “exit” to go back.

Router Configuration

 Assign Router Hostname


o Global Config Mode
o Router(config)# hostname R1

 Assign Router Password


o Global Config Mode
o R1(config)# enable password cisco
o R1(config)# enable secret class (encrypt)

 Assign Console Password


o Global Config Mode
o R1(config)# line console 0
o R1(config-line)# password class
o R1(config-line)# login
o R1(config-line)# exit
o R1(config)#

 Assign VTY Password (Virtual Teletype - command line interface for Telnet session)
o Global Config Mode
o R1(config)# line vty 0 4
o R1(config-line)# password cisco
o R1(config-line)# login
o R1(config-line)# exit
o R1(config)#

 Assign Banner
o Global Config Mode
o R1(config)# banner MOTD #No Entry!#
 Interface Configuration (Fast Ethernet)
o Global Config Mode
o R1(config)# interface FastEthernet 0/0
o R1(Config-If)# ip address 192.168.0.1 255.255.255.0
o R1(Config-If)# description LAN of R1
o R1(Config-If)# no shutdown
o R1(Config-If)# exit

 Interface Configuration (DTE Serial - male)


o Global Config Mode
o R1(config)# interface serial 0/0/1
o R1(Config-If)# ip address 192.168.0.2 255.255.255.0
o R1(Config-If)# description DTE of serial line from R1
o R1(Config-If)# no shutdown
o R1(Config-If)# exit

 Interface Configuration (DCE Serial - female)


o Global Config Mode
o R2(config)# interface serial 0/0/1
o R1(Config-If)# ip address 193.168.0.2 255.255.255.0
o Clock rate 64000
o R1(Config-If)# description DCE of serial line from R2
o R1(Config-If)# no shutdown
o R1(Config-If)# exit

 Save Router Configuration


o Privilege Exec Mode
o R1# copy running-config startup-config
o Enter
o Enter

 Display Configuration
o show startup-config
o show ip int
 Static Routing Configuration (Router 2)
o Global Config Mode
o R2(config)# ip route 192.168.0.0 255.255.255.0 192.168.1.0
| the other network | via |

o R2(config)# ip route 192.168.0.0 255.255.255.0 s0/0/0  exit interface R1


o R2(config)# ip route 192.168.1.0 255.255.255.0 s0/0/0  exit interface to R1
o R1(config)# ip route 192.168.2.0 255.255.255.0 s0/0/0  exit interface to R2

 Dynamic Routing Configuration (R2) using Routing Information Protocol


o Global Config Mode
o R2(config)# router rip
o R2(config-router)# network xxx.xxx.1.0
o R2(config-router)# network xxx.xxx.2.0
o R2(config-router)# exit

 Save
o Global Config Mode
o Do write

 Enable DHCP Server


o Global Configuration Mode
o service dhcp
o ip dhcp excluded-address 192.168.1.1 192.168.1.10
o ip dhcp pool network10
o default-router 192.168.1.1
o dns-server 4.4.4.4
o network 192.168.1.0 255.255.255.0

Вам также может понравиться