I.Yeu Cau Co Ban 1.router R1

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 14

I.Yeu cau co ban 1.

Router R1 Router>en Router#conf t Router(config)#hostname R1 R1(config)#line console 0 R1(config-line)#loggin synchronous R1(config-line)#exit R1(config)#line vty 0 15 R1(config-line)#privilege level 15 R1(config-line)#no login R1(config-line)#end R1#conf t R1(config)#int s0/0/0 R1(config-if)#ip add 200.0.0.1 255.255.255.252 R1(config-if)#no shut R1(config-if)#exit R1(config)#int f0/0 R1(config-if)#ip add 192.168.123.1 255.255.255.0 R1(config-if)#no shut R1#conf t R1(config)#int loopback 0 R1(config-if)# R1(config-if)#ip add 172.16.1.1 255.255.255.0 R1(config-if)#no shut

R1#conf t R1(config)#int s0/0/0 R1(config-if)#description ket noi voi ISP R1(config-if)#EXIT R1(config)#int f0/0 R1(config-if)#description ket noi voi Switch4 R1(config-if)#exit R1#conf t R1(config)#banner motd BAI THI FINAL LAB CCNA

2.ISP Router>en Router#conf t Router(config)#hostname ISP ISP(config)#line console 0 ISP(config-line)#loggin synchronous ISP(config-line)#exit ISP(config)#line vty 0 15 ISP(config-line)#privilege level 15 ISP(config-line)#no login ISP(config-line)#exit ISP(config)#int s0/0/0 ISP(config-if)#ip add 200.0.0.2 255.255.255.252 ISP(config-if)#no shut ISP(config-if)#description ke noi voi R1

ISP(config-if)#EXI ISP(config)#int f0/1 ISP(config-if)#ip add 150.0.0.1 255.255.255.0 ISP(config-if)#no shut ISP(config-if)#description ket noi voi Vnpro.org ISP(config-if)#exit ISP(config)#int loopback 0 ISP(config-if)#ip add 4.4.4.4 255.255.255.0 ISP(config-if)#no shut ISP#conf t ISP(config)#banner motd BAI THI FINAL LAB CCNA

3.R2 Router#conf t Router(config)#hostname R2 R2(config)#line console 0 R2(config-line)#loggin synchronous R2(config-line)#exit R2(config)#line vty 0 15 R2(config-line)#privilege level 15 R2(config-line)#no login R2(config-line)#exit R2(config)#int f0/0 R2(config-if)#ip add 192.168.10.1 255.255.255.0 R2(config-if)#no shut

R2(config-if)#description ket noi voi SW1 R2(config-if)#exit R2(config)#int f0/1 R2(config-if)#ip add 192.168.8.1 255.255.255.0 R2(config-if)#no shut R2(config-if)#description ket noi voi SW1 R2(config-if)#end R2(config)#banner motd BAI THI FINAL LAB CCNA

4.R3 Router#conf t Router(config)#hostname R3 R3(config)#line console 0 R3(config-line)#loggin synchronous R3(config-line)#exit R3(config)#line vty 0 15 R3(config-line)#privilege level 15 R3(config-line)#no login R3(config-line)#exit R3(config)#int f0/0 R3(config-if)#ip add 192.168.6.1 255.255.255.0 R3(config-if)#no shut R3(config-if)#description ket noi voi SW4 R3(config-if)#exi R3(config)#int f0/1

R3(config-if)#ip add 192.168.4.1 255.255.255.0 R3(config-if)#no shut R3(config-if)#description ket noi voi PC X R3(config-if)#ex R3(config)#int loopback 0 R3(config-if)#ip add 172.16.3.1 255.255.255.0 R3(config-if)#no shut R3(config-if)#end

R3(config)#banner motd BAI THI FINAL LAB CCNA 5.Switch 4 Switch#conf t Switch(config)#hostname SW4 SW4(config)#line console 0 SW4(config-line)#loggin synchronous SW4(config-line)#exit SW4(config)#line vty 0 15 SW4(config-line)#privilege level 15 SW4(config-line)#no login SW4#conf t SW4(config)#int f0/1 SW4(config-if)#description ket noi voi R1 SW4(config-if)#ex SW4(config)#int f0/2 SW4(config-if)#description ket noi voi R2

SW4(config-if)#ex SW4(config)#int f0/3 SW4(config-if)#description ket noi voi R3 SW4(config-if)#ex SW4(config)#banner motd BAI THI FINAL LAB CCNA SW4(config)#end SW1(config-line)#privilege level 15 6.Switch 1 Switch#conf t Switch(config)#hostname SW1 SW1(config)#line console 0 SW1(config-line)#loggin synchronous SW1(config-line)#exit SW1(config)#line vty 0 15 SW1(config-line)#privilege level 15 SW1(config-line)#no login SW1(config-line)#exit SW1(config)#banner motd BAI THI FINAL LAB CCNA SW1(config)#int f0/1 SW1(config-if)#description ket noi voi R1 SW1(config-if)#ex SW1(config)#int f0/4 SW1(config-if)#description ket noi voi TFTP Server SW1(config-if)#ex SW1(config)#int f0/2 SW1(config-if)#description ket noi voi SW2

SW1(config-if)#ex SW1(config)#int f0/3 SW1(config-if)#description ket noi voi SW3 SW1(config-if)#ex SW1(config)#int vlan 1 SW1(config-if)#ip add 192.168.1.1 255.255.255.0 SW1(config-if)#no shut SW1(config-if)#int vlan 2 SW1(config-if)#ip add 192.168.2.1 255.255.255.0 SW1(config-if)#no shut SW1(config-if)#ex SW1(config)#int vlan 3 SW1(config-if)#ip add 192.168.3.1 255.255.255.0 SW1(config-if)#no shut 7.SW2 Switch#conf t Switch(config)#hostname SW2 SW2(config)#line console 0 SW2(config-line)#loggin synchronous SW2(config-line)#exit SW2(config)#line vty 0 15 SW2(config-line)#privilege level 15 SW2(config-line)#no login SW2(config-line)#exit SW2(config)#banner motd BAI THI FINAL LAB CCNA

SW2(config)#INT F0/1 SW2(config-if)#description KET NOI VOI SW1 SW2(config-if)#EX SW2(config)#INT F0/2 SW2(config-if)#description KET NOI VOI SW3 SW2(config-if)#EX SW2(config)#int vlan 1 SW2(config-if)#ip add 192.168.1.2 255.255.255.0 SW2(config-if)#no shut SW2(config-if)#end 8.SW3 Switch#conf t Switch(config)#hostname SW3 SW3(config)#line console 0 SW3(config-line)#loggin synchronous SW3(config-line)#exit SW3(config)#line vty 0 15 SW3(config-line)#privilege level 15 SW3(config-line)#no login SW3(config-line)#exit SW3(config)#banner motd BAI THI FINAL LAB CCNA SW3(config)#INT F0/1 SW3(config-if)#description KET NOI VOI SW2 SW3(config-if)#EX SW3(config)#INT F0/2

SW3(config-if)#description KET NOI VOI SW1 SW3(config-if)#EX SW3(config)#int vlan 1 SW3(config-if)#ip add 192.168.1.3 255.255.255.0 SW3(config-if)#no shut SW3(config-if)#end II.YEU CAU CHINH 1.Routing 1.1 R1 R1(config)#router ospf 1 R1(config-router)#net 192.168.123.0 0.0.0.255 area 0 R1(config-router)# net 200.0.0.0 0.255.255.255 area 0 R1(config-router)# net 172.16.0.0 0.0.255.255 area 0 R1(config)#router ospf 1 R1(config-router)# router-id 1.1.1.1 R1#clear ip ospf process R1(config)# interface f0/1 R1(config-if)# ip ospf priority [priority-value] R1(config-if)# ip ospf priority 1 R1# clear ip ospf process R1#show ip ospf int R1(config)# interface f0/1 R1(config-if)# ip ospf authentication R1(config-if)# ip ospf authentication-key vnpro 0-255 default=1

1.2 R2 R2(config)#router ospf 1 R2(config-router)#net 192.168.10.0 0.0.0.255 area 0 R2(config-router)# net 192.168.8.0 0.0.0.255 area 0 R2(config)#router ospf 1 R2(config-router)# router-id 2.2.2.2 R2#clear ip ospf process 1.3 R3 R3(config)#router ospf 1 R3(config-router)#net 192.168.6.0 0.0.0.255 area 0 R3(config-router)# net 192.168.4.0 0.0.0.0 area 0 R3(config-router)# net 172.16.0.0 0.0.255.255 area 0 R3(config)#router ospf 1 R3(config-router)# router-id 3.3.3.3 R3#clear ip ospf process 2.Switching SW1#conf t SW1(config)#vlan 2 SW1(config-vlan)#name CCENT SW1(config-vlan)#EXIT SW1(config)#vlan 3 SW1(config-vlan)#name CCNA SW1(config-vlan)#EX SW1(config)#int range f0/1-7 SW1(config-if-range)#switchport mode access

SW1(config-if-range)#switchport access vlan 1 SW1(config-if-range)#exit SW1(config)#int range f0/8-15 SW1(config-if-range)#switchport mode access SW1(config-if-range)#switchport access vlan 2 SW1(config-if-range)#exit SW1(config)#int range f0/16-21 SW1(config-if-range)#switchport mode access SW1(config-if-range)#switchport access vlan 3 SW1(config-if-range)#exit SW1(config)#vtp mode server Tren Switch 2 SW2(config)#vtp mode client Tren Switch 3 SW3(config)#vtp mode client 3.DHCP SERVER R2(config)#service dhcp R2(config)#ip dhcp pool vlan1 R2(dhcp-config)#network 192.168.1.0 255.255.255.0 R2(dhcp-config)#default-router 192.168.1.254 R2(dhcp-config)#dns-server 200.0.0.2 R2(config)#ip dhcp pool vlan2 R2(dhcp-config)#network 192.168.2.0 255.255.255.0 R2(dhcp-config)#default-router 192.168.2.254 R2(dhcp-config)#dns-server 200.0.0.2

R2# debug ip dhcp server events R2# debug ip dhcp server packets R3# debug ip packet detail R2(dhcp-config)#ex R2(config)#ip dhcp pool vlan3 R2(dhcp-config)#network 192.168.3.0 255.255.255.0 R2(dhcp-config)#default-router 192.168.3.254 R2(dhcp-config)#dns-server 200.0.0.2 R2(dhcp-config)#ex Cap ip co dinh cho TFTP SERVER R2(config)#ip dhcp pool 1 R2(dhcp-config)#host 192.168.1.3 255.255.255.0 R2(dhcp-config)#client-idenifier 01(dia chi mac cuar tftp server) R2(dhcp-config)#default-router 192.168.8.1(ip cua cong f0/1 tren R2) R2(dhcp-config)#dns-server 200.0.0.2 4.WAN R1#conf t R1(config)#username ISP PASSword vnprotest R1(config)#int s0/0/0 R1(config-if)#ip add 200.0.0.1 255.255.255.252 R1(config-if)#encapsulation ppp R1(config-if)#ppp authentication chap R1(config-if)#ppp chap hostname R1 R1(config-if)#ppp chap password vnprotest Tren ISP

ISP#conf t ISP(config)#username R1 PASSword vnprotest ISP(config)#int s0/0/0 ISP(config-if)#ip add 200.0.0.2 255.255.255.252 ISP(config-if)#encapsulation ppp ISP(config-if)#ppp authentication chap ISP(config-if)#ppp chap hostname ISP ISP(config-if)#ppp chap password vnprotest 7.Mo rong 7.1isp lam dns server ISP(config)#ip dns server ISP(config)#ip host vnpro.org 150.0.0.2 ISP(config)#ip host www.vnpro.org 150.0.0.2 ISP(config)#ip host tftp.net 192.168.3.1 ISP(config)#ip host www.tftp.net 192.168.3.1 ISP(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.1 ISP(config)#ip route 0.0.0.0 0.0.0.0 150.0.0.1 (hai cau Ip route la de dinh tuyen cho tat ca cac mang khac co the ping toi 2 dia chi nay-k biet dung k) 7.2backup ISP#copy running-config tftp: Address or name of remote host []? 192.168.3.1 Destination filename [ISP-confg]?file cuaISP

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy