PDF download Download Article
A step-by-step guide to enabling IP routing on Cisco
PDF download Download Article

Do you need to enable IP routing on a Cisco switch or router? By default, IP routing is disabled on most Cisco routers and switches. This can prevent devices on different VLANs from communicating with one another. In order for these devices to communicate with one another, the VLAN switches or routers need to have IP routing enabled and configured to route traffic between the two devices. This wikiHow teaches you how to use simple IOS commands to enable IP routing on your Cisco router or switch.

Part 1
Part 1 of 4:

Connecting to your Cisco Router

PDF download Download Article
  1. If your router has a USB port, you can connect to your PC using a USB connection. If your router only has a Console port, you will most likely need a DB9-to-RJ45 cable. Connect the DB9 end of the cable to the Console port on your router. Then connect the female RJ45 end to a male RJ45 port on your computer. If your computer does not have a male RJ45 port, you can use a female RJ45-to-USB adapter. [1]
    • Alternatively, you can use a rollover cable (which is similar to an Ethernet cable, except the pins are reversed on the other end), and connect it to a female DB9-to-RJ45 adapter.
    • Warning: Do NOT connect a rollover cable from the Ethernet port on your computer to the Console port on your router or switch. This will blow out the Console port on the router or switch.
  2. If you are using a Mac or Linux computer, you already have a Terminal program built-in. If you are using a Windows PC, you need to download a terminal emulation program, such PuTTY . [2]
    Advertisement
  3. If you are using a DB9-to-RJ45 cable, you will first need to install the drivers that came with the cable. Once you have your Cisco router or switch connected to your PC, use one of the following steps to find out the port number it is connected to:
    • Windows: Right-click the Windows Start menu and click Device Manager . Expand "Ports (COM & LPT)" in the list of devices. [3] Note the port number your router is connected to (i.e, "COM1")
    • Mac: Open the Terminal and type cd /dev and press Enter . Then type ls -ltr /dev/*usb* and press Enter . The port number will be listed after "/dev/tty.usbmodem" or " /dev/tty.usbserial".
    • Linux: Open the Terminal and type cd /dev and press Enter . Then type ls -ltr *ACM* and press Enter . The port number will be listed after "/dev/ttyUSB" or "/dev/ttyACM". [4]
  4. Once you have the port number it is connected to, use one of the following steps to open a Terminal connection to your router or switch:
    • Windows: Open PuTTY. Select Sessions in the Category menu to the left. Select Serial under "Connection type". Enter the port number the switch is connected to in the box labeled "Serial line." Leave the speed as "9600". Then click Open . [5]
    • Mac: Open the Terminal and type screen /dev/tty.usbmodem[port number] 9600 and press Enter . Replace "[port number]" with the port number you retrieved from the previous step.
    • Linux: Open the Terminal and type screen /dev/ttyACM[port number] 9600 and press Enter . Replace "[port number]" with the port number you retrieved from the previous step.
  5. Advertisement
Part 2
Part 2 of 4:

Enabling IP Routing

PDF download Download Article
  1. If you haven't already done so, connect your router or switch to your computer. Then open a PuTTY or Terminal connection to your router or switch.
  2. This enables EXEC mode. You may be asked to enter a password, if one is set. [6]
  3. This enters Global Configuration mode. [7]
  4. This enables IP routing on your router or switch.
    • If you want to exit Global Configuration mode, type end and press Enter .
  5. Advertisement
Part 3
Part 3 of 4:

Assigning IP Addresses to Switch Virtual Interfaces

PDF download Download Article
  1. A single router or switch can host multiple networks called "VLANs" Devices on a VLAN can communicate with each other without the user or a router or switch. However, each VLAN must have a Switch Virtual Interface in order for devices from different VLANs to communicate with each other. [8]
  2. To enter Global Configuration mode, open a Terminal or PuTTY connection to the switch or router, and type "enable" and press "Enter." Then type "configure terminal" and press "enter".
  3. This specifies the VLAN you want to configure. For example, if you wanted to configure VLAN1, you would type interface vlan 1 and press Enter . [9]
  4. An example command would be ip address 10.0.0.1 255.255.255.0 This assigns an IP address and subnet mask to the VLAN. [10]
  5. This exits the VLAN configuration mode and returns you to Global Configuration mode.
    • If you want to view statistics for all the VLAN interfaces on your router or switch, type show interfaces vlan [vlan id] and press enter Replace [vlan id] with the actual VLAN ID number.
  6. Advertisement
Part 4
Part 4 of 4:

Configuring Default Routes and Networks

PDF download Download Article
  1. When a router receives a packet of information, it checks the destination address to route that information to the proper address. If a packet of information does not have a destination address, you can assign a default address and network to send all packets that do not have a destination address. [11]
  2. If you have not already done so, connect to your router or switch using PuTTY or the Terminal. Then type enable and press Enter to enter Exec mode. Then type configure terminal and press Enter to enter Global Configuration mode. [12]
  3. This assigns the default route and network. An example of a default network could be "0.0.0.0 0.0.0.0" To set this as the default network, you would type, ip route 0.0.0.0 0.0.0.0 . [13]
  4. Advertisement


Expert Q&A

Ask a Question
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!

      Expert Interview

      Thanks for reading our article! If you’d like to learn more about computer programming, check out our in-depth interview with Kevin Burnett .

      About This Article

      Thanks to all authors for creating a page that has been read 46,239 times.

      Is this article up to date?

      Advertisement