Network Notes

Commands
Router

Basic

en
conf t
hostname x
security passwords min-length x
login block-for x attempts x within x
enable secret x
line con 0
password x
login
exit
service password-encryption
banner motd #Unauthorized Access Only!!#


IP

int g0/1
ip address x x
no shutdown

IPV6

ipv6 unicast-routing
int gx/x
ipv6 enable
ipv6 address x/x
ipv6 address x link-local
no shutdown


SSH

ip domain-name x.com
crypto key generate rsa general-keys modulus 1024
username x privilege x secret x
line vty 0 15
transport input ssh
privilege level x
login local


DHCP

ip dhcp excluded-address x
ip dhcp pool VLANx
network x x
default-router x


trunk

int gx/x.x
encapsulation dot1q x
ip address x x
no shutdown
ex
int gigx/x
no shut


Switch


Basic

en
conf t
hostname x
security passwords min-length x
login block-for x attempts x within x
enable secret x
line con 0
password x
login
exit
service password-encryption
banner motd #Unauthorized Access Only!!#

IP

ip default-gateway x
int vlan x
ip address x
no shutdown

SSH

ip domain-name x.com
crypto key generate rsa general-keys modulus 1024
username x privilege x secret x
line vty 0 15
transport input ssh
privilege level x
login local


Trunk

vlan x
name x
exit

int vlan x
description x
ip address x x
ip default-gateway x

int range fx/x-x
switchport mode access
switchport access vlan x
no shut


int fx/x
switchport mode trunk
switchport trunk native vlan x
switchport trunk allowed vlan x,x,x,x
no shut
exit

int gx/x
switchport mode trunk
switchport trunk allowed vlan x,x,x,x,x
switchport trunk native vlan x
no shut