Cisco Command
Cisco Command
-------------------config t vtp mode client vtp domain ccna vtp password cisco vrp pruning exit Configure TRUNK -------------conf t int range f0/1 - 2 switchport mode trunk switchport trunk native vlan 1 //configure vlan 1 as native vlan conf t int f0/1 switchport mode trunk encapsulation dot1q switchport mode trunk exit
create VLAN ----------config t vlan 10 name IT exit vlam 100 name HR exit Assign VLAN ---------conf t int f0/22 switchport mode access switchport mode access vlan 10 exit
int range r0/23 - 24 switchport mode access swithport mode access vlan 100 exit
Portfast configuration --------------------config t int f0/12 switchport mode access spanning-tree portfast exit
electing root bridge manually - RSTP/PVRSTP+ -------------------------------------------config t spanning-tree vlan 1 root primary spanning-tree vlan 10 root secondary
Router in a stick configuration (Lollipop router) ------------------------------------------------config t hostname R0 enable secret cisco line vty 0 4 password telnet login exit int f0/0 ip add 10.0.0.254 255.255.255.0 no shut exit int f0/0.10 encapsulation dot1q 10 ip add 10.10.10.254 255.255.255.0 no shut exit int f0/0.100 encapsulation dot1q 100 ip add 192.168.1.254 255.255.255.0 no shut exit
------------------
Configure Loopback for Router ID -------------------------------conf t int lo1 ip add 1.1.1.1 255.255.255.0 no shut exit
Configure OSPF -------------config t router ospf x network x.x.x.x x.x.x.x area 0 exit OSPF ID -------config t router ospf x router-id x.x.x.x Configure Priority -----------------conf t int f0/0 ip ospf priority # Clear IP ospf -----------config t clear ip ospf process
//<0-255>
ip ospf authentication ---------------------config t int s0/0 ip ospf authentication-key cisco ip ospf authentication //plaintext exit
Configure EIGRP -------------conf t router eigrp 10 network x.x.x.x no auto exit Configure EIGRP key-chain ------------------------config t key chain Boon-key key 1 key-string cisco exit key 2 key-string ccna exit exit int s0/0 ip authentication mode eigrp 10 md5 ip authentication key-chain eigrp 10 Boon-key exit
STATIC NAT ---------config t no ip nat inside source static 10.1.1.11 3.3.3.251 no ip nat inside source static 10.1.1.12 3.3.3.252 int f0/0 ip nat inside int s0/0 ip nat outside Dynamic NAT ----------config t
access-list 10 permit 10.1.1.0 0.0.0.255 ip nat pool BOON_POOL 3.3.3.1 3.3.3.250 netmask 255.255.255.0 ip nat inside source list 10 pool BOON_POOL int f0/0 ip nat inside exit int s0/0 ip nat outside exit Overloading (PAT) ----------------conf t access-list 10 permit 10.1.1.0 0.0.0.255 ip nat inside source list 10 int s0/0 overload int f0/0 ip nat inside exit int s0/0 ip nat outside exit