Common commands used in GNS3 for setting up network topologies and for troubleshooting.
ip <ip-address>
ip <ip-address> <gateway>
ping <ip-address>
- Switch to Config Mode
conf t
- Switch to interface sub-mode
interface <interface>
Note: For fast ethernet interface, use fastethernet <interface>
(i.e. fastethernet 0/0
or fastethernet 0/1
).
- Set IP Address
ip address <ip-address> <subnet-mask>
- Enable interface
no shutdown
- Exit interface sub-mode
exit
ip route <destination-ip-address> <subnet-mask> <gateway-ip-address>
router rip
network <ip-address>
exit
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.
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.