Cisco IOS Commands - wAlber47/Tech-Journal GitHub Wiki

Page will contain a running list of useful Cisco commands.

Basics

  • enable - logs into enable mode
  • configure terminal - logs into configuration mode
  • interface <port-number> - enters interface for specified Ethernet interface

Lab 2-1: Subnet Design

  • Define VLANs for multiple ports at one time:
    • (config)# interface range FastEthernet <port-number> - let's you configure multiple ports at one time
    • (config-if-range)# switchport access vlan <vlan-id> - defines the vlan for all ports in the range
  • To turn on routing on multi-layer switches:
    • (config)# ip routing
  • Configure the IP address of a VLAN on multi-layer switches:
    • (config)# interface vlan <vlan-id> - brings you into vlan interface config mode
    • (config-if)# ip address <ip-address> <subnet-mask> - set the IP address for a specified vlan
  • Enter VLAN interface config mode:
    • (config)# interface vlan <vlan-id>

Lab 3-3: DHCP Server

  • Assign IP Helper Address:
    • (config-if)# ip helper-address <ip-address of dhcp server>

Lab 8-2: BGP

  • Set default route:
    • ip route 0.0.0.0 0.0.0.0 <ip-address>
  • Send default route information to other routers in the area, run from the OSPF configuration.
    • default-information originate
⚠️ **GitHub.com Fallback** ⚠️