Skip to content

Instantly share code, notes, and snippets.

@cr2007
Last active November 14, 2022 18:08
Show Gist options
  • Save cr2007/8abf6480b09ee7d8b36d317c34cd0882 to your computer and use it in GitHub Desktop.
Save cr2007/8abf6480b09ee7d8b36d317c34cd0882 to your computer and use it in GitHub Desktop.
GNS3 Common Commands

GNS3 Commands

Common commands used in GNS3 for setting up network topologies and for troubleshooting.

Index

VPCs

IP Address

ip <ip-address>

Gateway Config

ip <ip-address> <gateway>

Ping (Connection Request)

ping <ip-address>

Router

Router Config

  1. Switch to Config Mode
conf t
  1. Switch to interface sub-mode
interface <interface>

Note: For fast ethernet interface, use fastethernet <interface> (i.e. fastethernet 0/0 or fastethernet 0/1).

  1. Set IP Address
ip address <ip-address> <subnet-mask>
  1. Enable interface
no shutdown
  1. Exit interface sub-mode
exit

Routing

Static Routing

ip route <destination-ip-address> <subnet-mask> <gateway-ip-address>

RIP Routing

router rip
network <ip-address>
exit

EIGRP Routing

router eigrp <process-id> # process-id is a number between 1 and 65535
network <ip-address> <subnet-mask>
exit

Note: process-id is a number from 1 to 65535.

OSPF Routing

router ospf <process-id> # process-id is a number from 1 to 65535
network <IP-network> <wild card mask> area <area-id> # area id can be 0
exit

Note: process-id is a number from 1 to 65535.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment