Router ConfigurationUpdate2
Router ConfigurationUpdate2
Router ConfigurationUpdate2
R1 Commands
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#line console 0
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#line vty 0 4
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#interface FastEthernet0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface Serial0/0/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#description R2 LAN
R1(config-if)#end
R1#copy running-config startup-config
R1#show running-config
R1# show interfaces fastEthernet 0/0
R1#show version
R1#show ip interface brief
____________
R2 Commands
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R2
R2(config)#line console 0
R2(config-line)#password cisco
R2(config-line)#login
R2(config-line)#exit
R2(config)#line vty 0 4
R2(config-line)#password cisco
R2(config-line)#login
R2(config-line)#exit
R2(config)#interface FastEthernet0/0
R2(config-if)#ip address 192.168.3.1 255.255.255.0
R2(config-if)#exit
R2(config)#interface Serial0/0/0
R2(config-if)#ip address 192.168.2.2 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no sh
R2(config-if)#description R2 LAN
R2(config-if)#end
R2#copy running-config startup-config
R2#show running-config
R2# show interfaces fastEthernet 0/0
R2#show version
R1#show ip interface brief
Step 2: Use the tracert command at the Windows command prompt to discover the path that a
packet will take from the R1 router to PC1.
C:\>tracert 192.168.1.1
Erasing Router settings
R1#erase startup-config
Test connection
R1#show ip route
R1#show ip int brief
LAB 3
Router>en
Router>config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router#erase startup-config
Router#reload
R1- R2 – R3 - Configuration
Router1(config)#hostname R1
R1(config)#no ip domain-lookup
R1(config)#enable secret class
Step 2: Configure the console and virtual terminal line passwords on each of the routers.
R1(config)#line console 0
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exec-timeout 0 0
R1(config-line)#line vty 0 4
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exec-timeout 0 0
R1(config-line)#logging synchronous
Step 3: Add the logging synchronous command to the console and virtual terminal lines.
Repeat the same commands for R2 and R3
Task 3- configure interface router
R1(config)#interface fa0/0
R1(config-if)#ip address 172.16.3.1 255.255.255.0
R1(config-if)#no sh
R1(config)#interface s0/0/0
R1(config-if)#ip address 172.16.2.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#no sh
R1(config-if)#description
R2 Interface
R2(config)#interface fa0/0
R2(config-if)#ip address 172.16.1.1 255.255.255.0
R2(config-if)#no sh
R2(config)#interface s0/0/0
R2(config-if)#ip address 172.16.2.2 255.255.255.0
R2(config-if)#no sh
Connecting DTE
R2(config)#interface s0/0/1
R2(config-if)#ip address 192.168.1.2 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no sh
R3 Interface
R3(config)#interface fa0/0
R3(config-if)#ip address 192.168.2.1 255.255.255.0
R3(config-if)#no sh
R3(config)#interface s0/0/1
R3(config-if)#ip address 192.168.1.1 255.255.255.0
R2(config-if)#no sh
Pc 3
Static Routing
R1(config)#interface Serial0/0/0
R1(config-if)#ip route 0.0.0.0 0.0.0.0 172.16.2.2
R1 with default route
Client PC configuration
DHCP DNS and Web Server configuration in
cisco packet tracer 1
Default DNS
Device Interface IP Address Subnet Mask
Gateway Server
PT- FastEthernet0/0/0 192.168.2.2 255.255.255.0
Router FastEthernet0/0/1 192.168.1.2 255.255.255.0
DHCP NIC 192.168.1.4 255.255.255.0 192.168.1.2 192.168.1.9
DNS NIC 192.168.1.9 255.255.255.0 192.168.1.2 192.168.1.9
WEB NIC 192.168.1.7 255.255.255.0 192.168.1.2 192.168.1.9
DHCP SETTINGS
Router Settings
Router(config-if)# ip dhcp pool p1
Router(config)# network 192.168.1.0 255.255.255.0
Router(dhcp-config)# default-router 192.168.1.2
Router(dhcp-config)#exit
DHCP Server allots the IP addresses to computers, while DNS server resolves them. You need DHCP
Server if you do not want to manually maintain IP Addresses or you have less IP Addresses than
number of machines you have, as dynamic DHCP Server will recycle IP Addresses on machines.
DNS Server is needed for resolving hostnames to their IP addresses. Normally your ISP will provide
you with DNS Service. You may have your own DNS Server, which will resolve hostnames by
forwarding them to ISP's DNS Server and cache the addresses also.
If you have home/small office network with Unix/Linux machines, these machines will not be
resolved from each other, as Unix/Linux machines do not support NBNS protocol and you need your
own DNS Server. But how about resolving your local machines ?. Your ISP's DNS Server will not have
this list and your own DNS Server wont have them either. Most DNS Servers cannot do this.(unless
you configure dynamic updates, or use static IP addresses and manually enter them).
This server resolves dhcp alloted local machines automatically in addition to external hosts, with the
added advantage being both dhcp and dns server are allways in sync. Also there is no need to create
and maintain cumbersome zone files. Dual DHCP DNS Server is an Open-Source Freeware. In
addition, this server is designed for Load Sharing Replicated Operation
DNS Features include Forward and Reverse Lookup, Zone Transfer, Primary/Secondary Mode of
Operation, MX Records, Wildcard Records, Conditional and Default forwarding.
DHCP Fearures support Static and Dynamic 125 DHCP Ranges, Range Filters, Relay Agents and
BOOT, Options can be specified for DHCP Ranges, Global or for Static Hosts.
Either DHCP or DNS Service can be used. If both services are used, DHCP allotted hosts are
automatically added in DNS zones.
DNS+DHCP+HTTP Server & DHCP Service 2
DNS 192.168.30.10
HTTP 192.168.40.10
DHCP1 192.168.10.10
DHCP2 192.168.20.10
Router>en
Router# config t
Router(config)#hostname R1
R1(config)#enable secret class
R1(config)#int f0/0
R1(config-if)#ip address 192.168.10.1 255.255.255.0
R1(config-if)#no shutdown
On R1 CONFIGURE RIP
NETWORK 192.168.10.0 click on add
10.0.0.0 click on add
On R2 CONFIGURE RIP
NETWORK 192.168.10.0 click on add
192.168.20.0 click on add
192.168.30.0 click on add
192.168.40.0 click on add
10.0.0.0 click on add
On PC 0
C:\>ping 192.168.20.4