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

Acknowledgments

• Cisco Router Configuration.


Disclaimer

Conventions
this font

1. What this document covers


setup

Notedoes not

1.1 Reasons for using the command-line

2. Getting started with Cisco


telnetOK9600 baudOK

Linux

Enter

Router>

hostname of router>

Say no.yesno

2.1 Modes

modesonly

Router>?

2.2 Unprivileged and privileged modes

unprivilegedping, telnet, and rlogin.showshow versionshow ?show

Router>show ?
enableenable

Router>

Router#

sub-modesparent

3. Configuring your Cisco Router


showenableshowshow ?show

Router#show interfaces
Router#show ip protocols
Router#show ip route
Router#show ip arp

enableshow

ctrl-z

3.1 Global configuration (config)


config

Router#config
Router(config)#

hostname

Router(config)#hostname ExampleName
ExampleName(config)#

hostnameRouterExampleNameNote:

ExampleName(config)#ip name-server aa.bb.cc.dd


ExampleName(config)#ctrl-Z
ExampleName#
ExampleName(config)#enable secret examplepassword
ExampleName(config)#ctrl-Z
ExampleName#

ctrl-Zexitctrl-Zctrl-Z

ExampleName#

showip name-servershow host

3.2 Configuring Cisco router interfaces

media type slot#/port#

ExampleName#show interface ethernet 6/2

media type port#

ExampleName#show interface serial 0

ExampleName#config
ExampleName(config)#interface serial 1/1
ExampleName(config-if)#ip address 192.168.155.2 255.255.255.0
ExampleName(config-if)#no shutdown
ExampleName(config-if)#ctrl-Z
ExampleName#

ExampleName#show interface serial 1/1

Noteno shutdownshutdown

ExampleName(config)#interface serial 1/1


ExampleName(config-if)#shutdown
ExampleName(config-if)#ctrl-Z
ExampleName#show interface serial 1/1

no

ExampleName(config)#interface serail 1/1


ExampleName(config-if)#no ip address 192.168.155.2 255.255.255.0
ExampleName(config-if)ctrl-Z
ExampleName#show interface serial 1/1
Noteencapsulation

3.3 Configuring Cisco Routing


ip routing.

ExampleName(config)#ip routing
ExampleName(config)#ctrl-Z

static routesdynamic routing protocol.

ip route

ExampleName#config
ExampleName(config)#ip route 172.16.0.0 255.255.255.0 192.168.150.1
ExampleName(config)#ctrl-Z
ExampleName#show ip route

learn

redistribute

http://www.cisco.com

ExampleName#config
ExampleName(config)#router rip
ExampleName(config-router)#network aa.bb.cc.dd
ExampleName(config-router)#network ee.ff.gg.hh
ExampleName(config-router)#ctrl-Z
ExampleName#show ip protocols

show ip protocols

3.4 Saving your Cisco Router configuration


show ip routeshow ip arp

running configurationshow running-config

ExampleName#show running-config

docopy running-config startup-config

ExampleName#copy running-config startup-config

non-volatile RAMshow startup-config

ExampleName#show startup-config
copy startup-config running-config

ExampleName#copy startup-config running-config

3.5 Example Cisco Router configuration

4. Troubleshooting your Cisco router

showshow

ExampleName#show interfaces
ExampleName#show ip protocols
ExampleName#show ip route
ExampleName#show ip arp

4.1 Testing connectivity

ping

Hello, are you alive?

Yes, I am.

ExampleName#ping xx.xx.xx.xx

ping

trace

ExampleName#trace xx.xx.xx.xx

4.2 debug commands


debug

4.3 Hardware and physical connections

4.4 Out of your control

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