Category: CCNA Study Guide

Ip ospf cost Command on CISCO Router/Switch

Command IP OSPF Cost Use This command is used to manually set the OSPF link cost. This is typically done for traffic engineering purposes to modify what link OSPF will prefer. Lower is better. Syntax Router(config-if)#ip ospf cost <cost> Example In this example, we will use cost to …

IP Helper-Address Command on CISCO Router/Switch

Command IP Helper-Address Use This command is used to enable the router to forward BOOTP broadcast (and other)packets to a specific host. Syntax Router(config-if)#ip helper-address <ip address> Example In this example, we will configure R1 to provide DHCP services. After that we will configure R3’s Fa0/0 interface to …

IP access-group Command on CISCO Router/Switch

Command IP access-group Use This command is used to apply an access-list to an interface. Syntax Router(config-if)#ip access-group <list> <in or out> Option <auto> automatically determine the duplex mode by checking with the neighbor <in> applies the access-list to inbound traffic on the interface. <out> applies the access-list …

Shutdown Command on CISCO Router/Switch

Command shutdown Use This command will administratively disable an interface. Alternatively, you can enable the interface by negating the command using no shutdown. Syntax Router(config-if)#shutdown OR Router(config-if)#no shutdown Example In the below example, we shutdown R1’s Fa0/0 interface and then enable the interface again. R1(config)#int fa0/0 R1(config-if)#shutdown R1(config-if)# …

Bandwidth Command on CISCO Router/Switch

Command Bandwidth Use This command is used to logically set the bandwidth of an interface. This does not affect the physical speed of the link, it only affects routing protocols and other technologies that use bandwidth as a calculation. Syntax Router(config-if)#bandwidth <kilobits> Example In this example, we change …

IP address Command on CISCO Router/Switch

Command IP address Use This command is used to set IP addresses on an interface. Syntax R1(config)#ip address <IP address> <subnet mask> <secondary> Options <IP address> IP address for the interface <subnet mask> IP address for the interface <secondary> Sets the IP address as a secondary IP address, …

Enable Password Command on CISCO Router/Switch

Command Enable Password Use Sets a non-encrypted password for enable mode on the router. Syntax Router(config)#enable password <WORD> Example In this example the enable password is set on R1. R1(config)#enable password cisco R1(config)# Next the enable password is verified using the show run command. R1(config)#do show run | …

Router ospf Command on CISCO Router/Switch

Command router ospf <process id> Use The router ospf (Open Shortest Path First) command is necessary to enable ospf. OSPF must be enabled before carrying out any of the ospf commands. OSPF was designed to be an Interior Gateway Protocol replacing RIP. Routers that use OSPF check the …

Banner motd Command on CISCO Router/Switch

Command Banner motd Use This command is used to set the banner message that is displayed before remote login to the router. Syntax Router(config)#banner motd <char> <TEXT> <char> <char> Can be any character, used to delimit <TEXT> string Example In this example, the banner motd command is used …