0% found this document useful (0 votes)
72 views2 pages

DCN Cheatsheet

The document provides instructions for configuring various networking features including spanning tree, VLANs, trunking, routing, DHCP, DNS, FTP, HTTP, passwords, and interfaces on routers and switches. It includes configuration steps and commands to enable these features and ensure proper network communication and management.

Uploaded by

Asghar Abbas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views2 pages

DCN Cheatsheet

The document provides instructions for configuring various networking features including spanning tree, VLANs, trunking, routing, DHCP, DNS, FTP, HTTP, passwords, and interfaces on routers and switches. It includes configuration steps and commands to enable these features and ensure proper network communication and management.

Uploaded by

Asghar Abbas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

>en Show spanning tree:

>hostname Router2 #show spanning-tree


Shutdown of ports:
Go to port interface.
Tell which IP it is receiving from port.
>shutdown > (interface)
Or if range, >ip address (ipaddress) (subnet)
(config)#interface range fa06-24 > no shut
>shutdown
Enable password: SMTP:
(config)#enable password undertale Set IP through config window.
VTY: Services>Email Service> ON SMTP and POP3 >
(config)#line vty 0 15 “example.com” domain name > set
(config)#password undertale To add users:
(config)#login User: user 1
(config)#exit Password: 123, > “+ button”.
(config)#line vty 0 15 CONFIGURE EMAIL on relevant PCS:
VTP: Incoming/Outgoing Mail Server: Server IP.
(config)# vtp mode server Email address: <username>@<domain
(config)#vtp domain ccna name>.com
Setting VLAN names:
(in config mode) FTP:
Assign IP, subnet mask, gateway, DNS server.
>vlan 10
Use Setup > (user 1), check on read, rename, list
>name Faculty and add.
>vlan 20 (do the same for second user)
>name Students PC1: Command prompt > “dir” > ping ftp server >
#show vlan “ftp <ftp ip> > Enter Username and password >
Trunking between switches (do it between both “dir” > get asa842-k8.bin > quit > “dir”
two switches for vlans u want to trunk):
>(interface where switch sae connected) HTTP:
>no shutdown Assign ip,subnet,gateway,dns
>switchport mode trunk Service > http > “ON” > index.html edit > “welcome
>switchport trunk allowed vlan 10,20,30 to hello”> open web browser in pc and verify

Access mode config, to tell which port will DNS:


have which VLANs: Assign ip,subnet,gateway,dns (being itself)
(config mode) Service: click on dns service from left side, on the
>(interface with which interface u want to access) service, write www.dcn.com , address ip address it
>switchmode mode access should redirect to. Confirm by access that website
>switchport access vlan 10 from the pc.
> exit
Dynamically assing IPs using router:
(config)
>ip dhcp pool cisco
Router On Stick:
>network <network not ip address> <subnet>
Router(config)#int Gi 0/0/0 >default-router <Router-gateway ip address>
Router(config-if)#no shutdown > dns-server <dns-server ip>
Router(config-if)#exit >ip dhcp excluded-address (range of ips u don’t
Router(config)#int Gi 0/0/0.10 want to assign, like, “192.168.1.1 192.168.1.7)
Router(config-if)#encapsulation dot1q 10
Router(config-if)#ip add 192.168.10.1
255.255.255.0
Router(config)#int Gi 0/0/0.20
Router(config-if)#encapsulation dot1q 20
Router(config-if)#ip add 192.168.20.1
255.255.255.0
Vlan doesn’t depend on IP(until inter vlan routing)

You might also like