Vous êtes sur la page 1sur 9

Router Configurations Configure hostname Create password for privileged EXEC Assign router password for accessing router

over network interface Assign console password Config t Hostname {hostname} Config t Enable secret {password} Config t Line vty ! "assword {password} Login e#it Config t Line con "assword {password} Login Config t Line con Logging synchronous E#it Config t &o ip domain'lookup Config t (nt {interface name} (p add {(" addr} {subnet} Config t )outer rip {version *} &etwork {network ip address} E#it Copy start run $how runnig'config

$top annoying acknowledge system and debug messages sent to the console %isable feature that has the router attempt to resolve all unknown commends to a %&$ Configure (" address and enable it Enable )(" as the routing protocol

can specify )("v* (f left unspecified+ will use )("v,

$ave config to &-)A. -erify configuration

$how interface status

$how ip int brief

hostname of router interface (" and mask routing protocol all passwords /hash of secret0 (" of interfaces /no mask0 $tatus of interface /L, info0 "rotocol status of interface /L* info0 (f admin down1make sure you enabled the interface by doing a 2no shutdown3 and

-erify cable is %4E or %CE

$how controller {serial number}

that the clock is set %4E or %CE cable -ersion number of cable (f you have 2no cable3 it may be plugged in upside down

Configure %CE clock rate

$how pertinent h5w and s5w info

Config t (nterface {serial int} $hutdown Clock rate {clock rate} &o shutdown $how version

%isplay contents of flash memory %isplay info about L8 protocols

$how flash

$how protocols

%isplay info about the routing protocols that are enabled for ("

$how ip protocols

%isplay info of all physical interfaces

$how interface {<none=+ interface}

6$ version )oute uptime Cause of last restart &umber of interfaces 4ype of interfaces &ame of (6$ in flash $i7e of (6$ in flash Amount of free flash (s (" enabled9 "rotocols that are enabled $tatus of interfaces /up5down0 (" and mask of interfaces )outing protocol :re;uency of updates (nvalid timer Hold down timer :lush timer .a# paths (" of neighbors and distance >>>>Layer * (nfo>>>>> (nterface and status ?ia of hardware .4@ ?andwidth %elay Encapsulation type Loopback set9 A)" time &umber of broadcasts received &umber of runts and giants

%isplay info about each serial port $how controllers {serial int}

%isplay info about each interface

$how ip interface

(nput ;ueue /si7e5ma#5drops5flushes0 &umber of input errors+ C)C errors+ overrun+ and ignored ?uffer si7e 4ype of cable /%CE5%4E0 Clockrate &umber of residual bit errors >>>Layer 8 info>>>>> $tatus of interface (" address .4@ %irected broadcast fwding enabled9 6utgoing5(nbound access list set9 $ecurity level $plit hori7on enabled9 (C." rules :ast switching enabled9 ?A" mapping enabled9

Configure subinterfaces and set the L* encapsulation

Config t (nterface {serial interface} &o shutdown (nterface {subinterface} &o shutdown Encapsulation dot,B {-LA& (%} (p address {(" addr} {CC.}

C%" Commands Dperformed on the router -erify C%" is operational $how cdp interface on all interfaces

%iscover (" address of directly connected neighbors

$how cdp neighbors detail

6nly displays info if C%" is up (nterface status Encapsulation Holdtime :re;uency of C%" packets )outer (% (" address )outer model

$how directly connected networks $how ip route connect

(nterface name directly connected Holdtime (6$ version 4AC support web address (" addr and mask Connected to which interface $tatus /up5down09 (" addr and mask .4@ (n56utbound access list (C."s sent9 $plit hori7on enabled9 A)" enabled :ast switching enabled9

%isplay info on (" interface

$how ip interface {interface}

4elnet D %one from the router $uspend telnet session <shft=<ctrl=<E= <#= %isplay telnet session $how sessions initiated from your router

%isplay users who are logged into your router

$how users

(" address of telnet destination $hows amt of time since a telnet session has been used Line number of router Host (" How long each session has been active

)esume telnet session )emove telnet session into your router

<enter= Clear line {line number / ' E0}

)outing "rotocol Configuration %isplay dynamically derived networks $how ip route {<none=+ rip} %isable %ebugging Enable ()A"5E(A)" routing @ all Config t )outer {igrp+ eigrp} {A$} &etwork {n5w G} &etwork addr+ mask &umber of subnets (" addr learned F (" addr and interface you learned it from )outing protocol used A$ number Chen updates are sent (nvalid timer Hold timer :lush timer .etric weight .a# hop count .a# path )outing neighbors )outing protocol used (" and interface that each update was received form5sent to &umber of hops to reach router A$ /Autonomous $ystem number0 must be the same on all routers in the network in order to e#change routing information n5w G should cover all subnets connected to your router &eeding this b5c they are set as 4( by default+ but doesnJt determine how fast you go+ Hust influences the routing protocol

-erify routing protocol

show ip protocols

Enable debugging for the routing protocol

%ebug ip {rip 5 }

AdHust IbandwidthJ on serial interfaces Config t (nterface {interface} ?andwidth {bandwidth}

%ebug (A)"

%ebug ip igrp events

/smoke and mirrors0 (" addr and interface update received (" addr and interface update received from5sent to .etric from the router and their neighbor &eighbors discovered with hello pkts /every K sec from high'speed int or E sec from low speed int0 (" addr and interface of neighbors "rocess (% used on this router1allows multiple 6$": processes to be defined on , router Area defines the area that all interfaces that match the network G will be placed onto %isplay (" and interface of dynamically discovered 6$": neighbors ?e sure to use the same A$ number to remove the protocol as used to create it

.onitor (A)" routing updates

%ebug ip igrp transactions

E#amine E(A)" neighbors your router is aware of

$how ip eigrp neighbors

Enable 6$": routing Config t )outer ospf {process (%} &etwork{n5wG}{CC.} area {G}

E#amine 6$": neighbors

$how ip ospf neighbor

)emove routing protocol

Config t { no router rip &o router igrp , &o router eigrp ,

Access Lists Create Access List Config t Access'list {ACLG} permit {(" addr} 4ype this in notepad ,st1rules are implemented

-erify access'list was created correctly Apply access'list to interface

$how access'lists

Config t (nterface {interface} ip access'group {ACLG} {in5out}

)emove access'list functionality from an interface

Config t (nterface {interface} &o ip access'group {ACLG} {in5out}

Apply -4" access list to telnet sessions

Config t Line vty ! Access'class {ACL G} {in5out}

-erify access list is applied to the -4M ports $how line

in the order theyJre listed (mplicit deny all1so after you deny privileges+ you should put a permit at end Access List G "ermit5deny (" address ACL G should match the ACL G of the access list you want to apply (n our out defines the direction the list is applied from the routers perspective ACL G and in5out must match that of the specs used to apply the access list to the interface 6nly removes functionality from that interfaceL access list still e#ists ACL G must match the number that you used to create the access list (n or out defines direction $hould see -4M *'E with same access list number applied to all

Encapsulation 5 Authentication Configuration %efine the core'router as a 2potential user3 of the Conf t @sername Core')outer 2Courter')outer3 is the name of the router

router

"assword {pwd}

"wd is the password the core router must use )outer name and pwd are case sensitive!

Change encapsulation type to """

Config t (nterface {interface} $hutdown Encapsulation {ppp}

""" is encapsulation type on this interface .ust configure authentication type then do no shutdown

Configure """ interface to use {CHA"+ "A"} authentication

-erify the core router is a user of your router E#amine real'time """ activity in the router

Config t (nterface {interface} $hutdown """ authentication {chap+ pap} &o shutdown $how users %ebug """ negotiation Config t (nterface {serial interface} $hutdown

-erify """ is configured as the encapsulation type

%ebug ppp packet Config t

)outer name Encapsulation type $hutdown serial interface to cause debug screens to capture the appropriate info b5c updates are only sent every * minutes $hows inbound /2(30 and outbound /2630 packets -erifies that """ is encapsulation at both ends of the link After """ negotiation is successful layer'8 protocols are mapped in (f nothing is displayed+ then """ has not been configured as the encapsulation for the interface (f nothing displays+ """ is not the encapsulation

(nterface {serial interface} $hutdown &o shutdown

type for this interface

Vous aimerez peut-être aussi