Skip to content

Rakibul73/Cisco_Network_Routing_Switching

Repository files navigation

Practical Lab for Academic Course CCE-416 (Network Routing and Switching Sessional)

Installations

  • Cisco Packet Tracer v7.3.1 can be downloaded from here
  • Cisco Packet Tracer v8.2.0 can be downloaded from here

Note: Use Packet Tracer version 7.3.1 Qus pka file / 0% pka file. And use 8.2.0 for my ans pka file


Command:


Router> (This is User EXEC Mode.)
Router> en
Router# (This is Privileged EXEC Mode.)
Router# config terminal
Router(config)# (This is Configuration Mode.)
Router(config)# int fa0/0
Router(config-if)#	(This is Interface level within configuration mode)

  • change hostname

    Router(config)# hostname HQ
    HQ(config)#
  • assing IP address to interface fa0/0 and port status on

    HQ(config)#i nt fa0/0
    HQ(config-if)# ip address 192.168.1.129 255.255.255.192
    HQ(config-if)# no shutdown
    HQ(config-if)# exit
    HQ(config)#
  • assing ip address to serial0/0/1 , port status on , set clock rate to 64000

    HQ(config)# int s0/0/1
    HQ(config-if)# ip address 192.168.1.229 255.255.255.252
    HQ(config-if)# clock rate 64000
    HQ(config-if)# no shutdown 
    HQ(config-if)# exit
    HQ(config)#
  • set line console password to "cisco"

    HQ(config)# line console 0
    HQ(config-line)# password cisco
    HQ(config-line)# login
    HQ(config-line)# exit
    HQ(config)#
  • set vty password to "cisco"

    HQ(config)# line vty 0
    HQ(config-line)# password cisco
    HQ(config-line)# login
    HQ(config-line)# exit
    HQ(config)#
  • set privileged EXEC password to "cisco"

    HQ(config)# enable secret class
  • encrypt the clear text passwords.

    HQ(config)# service password-encryption
  • Require that a minimum of 10 characters be used for all passwords.

    HQ(config)# security passwords min-length 10
  • Create a banner that warns anyone accessing the device that "unauthorized access is prohibited".

    HQ(config)# banner motd #Unauthorized access prohibited!#
  • Disable DNS lookup (prevent the router from attempting to translate incorrectly entered commands as though they were hostnames.)

    HQ(config)# no ip domain-lookup
  • Set the clock on the router;

    HQ# clock set 17:00:00 03 Oct 2023
  • Set the clock timezone on the router;

    HQ# clock timezone BDT 6
  • set line console idle EXEC sessions to 3 minutes and 30 seconds , and 4 minutes for vty

    HQ(config)#line con 0
    HQ(config-line)# exec-timeout 3 30
    HQ(config-line)# exit
    HQ(config)#line vty 0 4
    HQ(config-line)#exec-timeout 4 0
    HQ(config-line)# exit
    HQ(config)#
  • set ip route for network 192.168.1.0/24 , mask 255.255.255.0 , hop s0/0/0

    HQ(config)# ip route 192.168.1.0 255.255.255.0 s0/0/0
  • Save the running configuration to the startup configuration file.

    HQ# copy running-config startup-config
    Destination filename [startup-config]?  (Press enter)
    Building configuration...
    [OK]
    HQ#
  • Display the routing table on the router.

    HQ# show ip route
  • Display a summary list of the interfaces on the router

    HQ# show ip interface brief
  • displays statistics for the network interfaces

    HQ# show interfaces
  • erase the startup configuration file from NVRAM.

    HQ# erase startup-config
  • Reload switch to remove old configuration information.

    HQ# reload

  • HQ router needs to send the default route information

    HQ(config)# router rip
    HQ(config-router)# default-information originate 
  • HQ router need to disable RIP updates on FastEthernet0/0 interface

    HQ(config)# router rip
    HQ(config-router)# passive-interface FastEthernet0/0

  • Configure Eigrp protocol on the router

    Router(config)# router eigrp <AS_NUMBER> 
    Router(config-router)# eigrp router-id <ROUTER_ID>
    Router(config-router)# network <NETWORK_ADDRESS> <WILDCARD_MASK>
    or
    Router(config-router)# network <Summary_NETWORK_ADDRESS>
  • Configure Eigrp Hello Interval on the interface in 30 seconds

    Router(config)# interface se0/0/1
    Router(config-if)# ip hello-interval eigrp 100 30

  • Configure Ospf protocol on the router

    Router(config)# router ospf 1  # OSPF process ID (1-65535)
    Router(config-router)# router-id 1.1.1.1  # Router ID
    Router(config-router)# network 10.0.0.0 0.255.255.255 area 0  # network and WILDCARD_MASK and area
  • Configure ospf Hello Interval on the interface in 30 seconds

    Router(config)# interface se0/0/1
    Router(config-if)# ip ospf hello-interval 30

  • Configure BGP protocol on the router
    Router(config)# router bgp 100  # BGP Autonomous System number (AS)
    Router(config-router)# network 192.168.1.0 mask 255.255.255.0  # Network advertisement
    Router(config-router)# neighbor 192.168.2.2 remote-as 200  # Remote BGP neighbor IP and AS

  • Create a vlan on the switch

    Switch(config)# vlan 10
    Switch(config-vlan)# name SALES
    Switch(config-vlan)# exit
    
    Switch(config)# vlan 20
    Switch(config-vlan)# name MARKETING
    Switch(config-vlan)# exit
    
    Switch(config)# vlan 99
    Switch(config-vlan)# name NATIVE # Set Native VLAN
    Switch(config-vlan)# exit
  • Assign ports to VLANs on the switch

    Switch(config)# interface range fa0/1 - 24
    Switch(config-if-range)# switchport mode access
    Switch(config-if-range)# switchport access vlan 10
  • Set up trunk port for router-on-a-stick on the switch

    Switch(config)# interface fa0/0
    Switch(config-if)# switchport mode trunk
    Switch(config-if)# switchport trunk allowed vlan 10,20
    Switch(config-if)# switchport trunk native vlan 99  # Set Native VLAN
  • Configure subinterfaces for router-on-a-stick on the Router

    Router(config)# interface fa0/0.10
    Router(config-subif)# encapsulation dot1Q 10
    Router(config-subif)# ip address 192.168.10.1 255.255.255.0
    Router(config-subif)# exit
    
    Router(config)# interface fa0/0.20
    Router(config-subif)# encapsulation dot1Q 20
    Router(config-subif)# ip address 192.168.20.1 255.255.255.0
    Router(config-subif)# exit

  • Configure DHCP on the switch
    Switch(config)# vlan 10
    Switch(config-vlan)# name VLAN10
    Switch(config-vlan)# exit
    
    Switch(config)# interface vlan 10
    Switch(config-if)# ip address 192.168.10.1 255.255.255.0
    Switch(config-if)# no shutdown
    Switch(config-if)# exit
    
    # Configure DHCP pool with IP address range
    Switch(config)# ip dhcp pool VLAN10_POOL
    Switch(dhcp-config)# network 192.168.10.0 255.255.255.0
    Switch(dhcp-config)# default-router 192.168.10.1
    Switch(dhcp-config)# dns-server 8.8.8.8  # Optional: Specify DNS server
    Switch(dhcp-config)# domain-name example.com  # Optional: Specify domain name
    Switch(dhcp-config)# range 192.168.10.10 192.168.10.50
    Switch(dhcp-config)# exit
    
    # Save the configuration
    Switch# write memory

Releases

No releases published

Packages

No packages published