Commands Flashcards
Get into Privileged Executive Mode
enable
Get into Global Configuration Mode
configuration terminal
Get into Interface Configuration Mode
interface s0/0
Get into Line Configuration Mode
line console 0
Get into Router Configuration Mode
router ospf 1
Save configurations on the device
copy running-config startup-config
Configure privileged executive mode password
enable secret cisco
Configure telnet
line vty 0 15
login
password cisco
Show information of nearby network devices
show cdp neighbors detail
Set the hostname
hostname R1
Set default gateway
ip default-gateway 192.168.1.1
Configure VLAN interface
int vlan 1
ip address 192.168.1.200 255.255.255.0
Set speed and duplex on an interface
speed 100
duplex full
Encrypt passwords
service password-encryption
Configure ssh
username jordan secret cisco ip domain-name lab.local crypto key generate rsa line vty 0 15 transport input ssh
enable port security
switchport port security
Allow only one device at a time to access a port
switchport port-security max 1
Allow only one unique device to access a port.
switchport port-security mac-address FFFFFFFFFFFF
Change a port to an access port and a trunk port
switchport mode access
switchport mode trunk
Display the security configurations of f0/0
show port-security interface f0/0
Configure a static route
ip route 192.168.2.0 255.255.255.0 192.168.1.1
Configure a default route
ip route 0.0.0.0 0.0.0.0 192.168.1.1
Configure a default route for OSPF
default-information originate
Configure router on a stick
interface f0/0 no ip address interface f0/0.1 encapsulation dot1q 1 native ip address 10.0.0.1 255.255.255.0 int f0/0.10 encapsulation dot1q 10 ip address 10.10.10.1 255.255.255.0
Change the OSPF cost reference to 1GB
router ospf 1
auto-cast reference-bandwidth 1000
Enable OSPFv2 and advertise a network
router ospf 1
network 192.168.1.1 0.0.0.0 area 0