0% found this document useful (0 votes)
126 views5 pages

Cisco Command

The document describes configurations for a multilayer switch and router including: 1. Configuring the switch as a VTP server and client and setting the VTP domain, password, and pruning. 2. Configuring trunk ports and native VLAN. 3. Creating VLANs for IT and HR departments. 4. Assigning access ports to VLANs and enabling portfast on a port.

Uploaded by

Chong Kin Boon
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
126 views5 pages

Cisco Command

The document describes configurations for a multilayer switch and router including: 1. Configuring the switch as a VTP server and client and setting the VTP domain, password, and pruning. 2. Configuring trunk ports and native VLAN. 3. Creating VLANs for IT and HR departments. 4. Assigning access ports to VLANs and enabling portfast on a port.

Uploaded by

Chong Kin Boon
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

vtp configuration ----------------config t vtp mode server vtp domain ccna vtp password cisco vtp pruning exit

-------------------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

//multilayer switch (39xx

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

------------------

sh controller s0/0 clock rate 64000 //DCE

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

router eigrp 10 no network 10.0.10.0 0.0.0.255 network 192.168.10.0 0.0.0.255

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

You might also like