Está en la página 1de 4

basic router configuration commands Router>enable Router#configure terminal Router(config)#hostname Router Router(config)#enable secret cisco Router(config)#banner motd #autorized

access only!# Router#copy running-config startup-config Router(config)#line console 0 Router(config-line)#password cisco Router(config-line)#logging synchronous Router(config)#line vty 0 4 Router(config-line)#password cisco Router(config)#login Interface configuration commands Router(config)#interface Ethernet 0/0/0 Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#no shutdown Router(config)#interface FastEthernet 0/0/0 Router(config)#interface Serial 0/0/1 Router(config)#interface Serial 0/1/0 Router(config-if)#ip address 10.10.10.1 255.255.255.0 Router(config-if)#clock rate 56000 Router(config-if)#no shutdown Router(config-if)#no ip Router(config-if)#shutdown

saves the running config as a startup-config configure console line 0 set the password for enable logins via console line configure 5 virtual terminal lines set the password for all 5 lines (from 0 to 4) enable logins via virtual terminal lines

selects the interface to be configured sets the IP address and the mask on the interface enables the interface - brings it UP Exanmples for selecting other types of interfaces selects the interface to be configured Example of setting up serial interface on a DTE device sets the IP address and the mask on the interface sets the clock rate enables the interface - brings it UP removes the IP previously set on that interface brings down the interface We need to set default gateway when connecting 2 routers on Ethernet or FastEthernet interface We need to set default gateway on a switch set the default gateway

Configure Default Gateway Router(config)#ip default-gateway 192.168.1.1 Router RIP Configuration Commands

Router(config)#router rip Router(config-router)#version 2 Router(config-router)#version 1 Router(config-router)#network 192.168.1.0 Router(config-router)#network 192.168.2.0 Router(config-router)#no network 192.168.2.0

Enables RIP protocol on the router Enables RIPv2 Enables RIPv1 Advertises directly connected networks (classful address only!!!) specify the directly connected networks (not subnetworks) which will be advertized by RIP deletes/removes the network AS-number or Process ID - it is a number between 1 and 65535. AS = Autonomous System Enables EIGRP protocol on the router. Enables EIGRP for Autonomous System number 777 Only routers running EIGRP with the same AS-Number form a group which receives the routing updates Advertises directly connected networks (classful address only!!!) specify the directly connected networks (not subnetworks) which will be advertized when a classfull address 192.168.1.0 is used deletes/removes the network network command with wild card same network command with net mask (3=255-252). Internally 255.255.255.252 will be converted to 0.0.0.3 default-information originate injects a default route (ie 0.0.0.0/0) in the routing table of the peers,

Router EIGRP Configuration Commands Router(config)#router eigrp AS-number Router(config)#router eigrp 777

Router(config-router)#network 192.168.1.0 Router(config-router)#network 192.168.2.0 Router(config-router)#no network 192.168.2.0 Configure EIGRP to advertize specific subnets only - 192.168.10.8 Router(config-router)#network 192.168.10.8 0.0.0.3 Router(config-router)#network 192.168.10.8 255.255.255.252 Generates a default route into RIP Router(config-router)#default-information originate Router(config-router)#no default-information originate Staic route Router(config)#ip router 172.16.1.0. 255.255.255.0 172.16.2.2 Router(config)#ip router 172.16.1.0. 255.255.255.0 serial 0/0/1 Router(config)#no ip router 172.16.1.0. 255.255.255.0 serial 0/0/1 Router(config)#no ip router 172.16.1.0. 255.255.255.0 172.16.2.2 EIGRP default route Router(config)#ip route 0.0.0.0 0.0.0.0 Serial 0/1/0 Router(config)#router eigrp 777 Router(config-router)#redistribute static

adds static route with next hop address adds static route with exit interface deletes the static route with exit interface deletes the static route with next hop address EIGRP - Default route propagation

redistribute static - EIGRP will include this static default route with its EIGRP routing updates

Router(config-router)#redistribute static Configure Default Route Router(config)#ip route 0.0.0.0 0.0.0.0 Serial 0/1/0 Router(config)#ip default-network w.x.y.z Cisco Discovery Protocol Router(config)#cdp run Router(config)#no cdp run Router(config-if)#cdp enable Router(config-if)#no cdp enable Configure router as a PC Router(config)#no ip routing Router(config)#ip default-gateway 192.168.1.1 Router(config)#interface FastEthernet 0/0/1 Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#no shutdown Configure an interface VLAN 1 on a switch Switch(config)#ip default-gateway 192.168.1.1 Switch(config)#interface vlan 1 Switch(config-if)#ip address 192.168.1.1 255.255.255.0 Switch(config-if)#no shutdown EIGRP fine tuning Router(config-if)#ip bandwidth-percent eigrp AS-number percent Router(config-if)#ip bandwidth-percent eigrp 777 80 Router(config-if)#ip hello-interval eigrp as-number seconds Router(config-if)#ip hello-interval eigrp 777 60 Router(config-if)#ip hold-time eigrp as-number seconds Router(config-if)#ip hold-time eigrp 777 180 Disable auto summarization Router(config-router)#no auto-summary

redistribute static will redistribute static routes (ip route xxx) into the routing protocol.

Configure Default Route - use this command depricated - Sets network w.x.y.z to be the default route. All routes not in the routing table will be sent to this network

Cisco Discovery protocol - enable (it is enabled by default) Turns off CDP globally Enables CDP on a specific interface Turns off CDP on a specific interface

disables routing set the default gateway

configures EIGRP with the percentage of bandwidth that may be used By default is only 50%. Here we specify 80% set hello interval set hello interval to 60 seconds set hold-time set hold-time to 180 seconds in RIP and EIGRP - auto summarization is ON by default disabled the auto summarization

EIGRP - Change the metrics Router(config)#interface Serial 0/0/0 Router(config-if)#bandwidth 64

changes the bandwidth value used by routing protocols like EIGRP and OSPF to calculate their routing metrics default bandwidth for a serial interface is 1544Kbs 64 means 64Kbs

EIGRP manual summarization Router(config)#interface serial 0/0/0 Router(config-if)#ip summary-address eigrp 777 192.168.0.0 255.255.252.0

This command is executed in interface configuration mode to configure an EIGRP summary route to be advertised out a specific interface. as-number = 777 192.168.0.0/22 255.255.252.0 summarizes the following networks: 192.168.1.0, 192.168.2.0, 192.168.3.0

Create a loopback interfaces Router(config)#interface loopback 1 Switch(config-if)#ip address 192.168.2.1 255.255.255.0 Switch(config-if)#no shutdown Router(config)#interface loopback 2 Switch(config-if)#ip address 192.168.3.1 255.255.255.0 Switch(config-if)#no shutdown Add those networks to EIGRP routing table Router(config)#router eigrp 777 Router(config-router)#network 192.168.2.0 Router(config-router)#network 192.168.3.0