• Home
  • Exams
    Microsoft
    AI-102 (Designing and Implementing) AI-900 (AI Fundamentals) AZ-104 (Administrator) AZ-140 (Configuring and Operating) AZ-204 (Developing Solutions) AZ-305 (Designing Infrastructure Solutions) AZ-400 (DevOps Solutions) AZ-500 (Security Technologies) AZ-700 (Designing and Implementing)
    All Microsoft Exams
    Amazon
    CLF-C01 (Cloud Practitioner) DBS-C01 (Database - Specialty) DVA-C01 (Developer Associate) SCS-C01 (Security - Specialty) SAA-C02 (Solutions Architect Associate) SAA-C03 (Solutions Architect Associate) SAP-C01 (Solutions Architect Professional) SOA-C02 (Certified SysOps Administrator Associate) DOP-C01 (DevOps Engineer Professional)
    All Amazon Exams
    Cisco
    200-201 (CBROPS) 200-301 (CCNA) 200-901 (DEVASC) 300-410 (ENARSI) 300-415 (ENSDWI) 300-420 (ENSLD) 300-425 (ENWLSD) 300-430 (ENWLSI) 300-715 (SISE) 350-401 (ENCOR) 350-501 (SPCOR) 350-601 (DCCOR) 350-701 (SCOR) 350-801 (CLCOR) 400-007 (CCDE)
    All Cisco Exams
    CompTIA
    220-1101 (A+ Core 1) 220-1102 (A+ Core 2) CAS-004 (Advanced Security Practitioner) CS0-002 (CySA+) CV0-003 (Cloud+) FC0-U61 (IT Fundamentals) N10-008 (Network+) PK0-004 (Project+) PT0-002 (PenTest+) SK0-005 (Server+) SY0-601 (Security+) XK0-004 (Linux+)
    All CompTIA Exams
    Google
    Associate Cloud Engineer Cloud Digital Leader Professional Cloud Architect Professional Cloud Security Engineer Professional Data Engineer
    All Google Exams
    Huawei
    H11-851 (HCNA-VC) H12-211 (HCIA Routing&Switching) H12-221 (HCNP-RS-IERN) H12-224 (HCNP-RS Fast Track) H12-711 (HCNA-Security-CBSN) H13-612 (HCNA-Storage-BSSN) H13-629 (HCIE-Storage)
    All Huawei Exams
    Python
    Python Programming (PCAP)
    All Python Exams
    Juniper
    JN0-104 (JNCIA-Junos) JN0-251 (JNCIA-MistAI)
    All Juniper Exams
    Fortinet
    NSE4_FGT-7.0 (FortiOS 7.0) NSE4_FGT-7.2 (FortiOS 7.2) NSE5_FAZ-7.0 (FortiAnalyzer 7.0) NSE5_FCT-7.0 (FortiClient EMS 7.0) NSE5_FMG-7.0 (FortiManager 7.0) NSE7_EFW-7.0 (Enterprise Firewall 7.0) NSE7_SDW-7.0 (SD-WAN 7.0 ) NSE8_812 (Written Exam)
    All Fortinet Exams
  • LabsNew
    CCNA 200-301
    Introduction IOS Operating System IPv4 Address Configure Serial and Loopback Interfaces IPv6 Address Configuration, Verification, and Troubleshooting IPv6 Address Autoconfiguration and EUI-64 Understanding ARP and Proxy ARP Configuring Standard VLANs Configuring VTP Clients and Servers Configuring VTP Transparent Mode Securing VTP Domains Switch Access Port Security Advanced Switch Access Port Security Advanced Static Switch Access Port Security Disabling Auto-negotiation of Trunking Configuring Dynamic Trunking Configuring Default Gateways Cisco Discovery Protocol (CDP) Configuring LLDP on Cisco Devices Configuring Errdisable Recovery Configuring Inter-VLAN Routing with Router on a Stick (RoaS) Inter-VLAN Routing Using Switched Virtual Interfaces (SVI) Configuring Static Routing via Ethernet Interfaces Configuring Static Routing via IP addresses Configuring and Naming Static Routes Configuring Default Static Routes Configuring IPv6 Static Routes Configuring IPv6 Default Routes Configuring IP Floating Static Routes Configuring RIP Version 2 RIPv2 Network Summarization Configuration
  • ToolboxNew
    IPv4 Subnet Calculator
    IPv4 Wildcard Mask Calculator
    HTML Encoder and Decoder
    URL Encoder and Decoder
    Random Password Generator
  • Net Sec ToolsNew
    Cisco Packet Tracer
    GNS3
    EVE-NG
    Wireshark
    Postman
    Nmap
    Curl
    Nessus
    Burp Suite
  • Sign Up
  • Login

  • Logo

    Labs

    • Lab 1: Introduction to CISCO 200-301 Labs
    • Lab 2: Cisco IOS Operating System
    • Lab 3: IPv4 Address Configuration, Verification, and Troubleshooting on Cisco Routers
    • Lab 4: IPv6 Address Configuration, Verification, and Troubleshooting on Cisco Routers
    • Lab 5: IPv6 Address Autoconfiguration and EUI-64 Addressing on Cisco Routers
    • Lab 6: Understanding ARP and Proxy ARP on Cisco Routers
    • Lab 7: Configuring Standard VLANs on Catalyst Switches
    • Lab 8: Configuring VTP Clients and Servers on Cisco Catalyst Switches
    • Lab 9: Configuring VTP Transparent Mode on Cisco Catalyst Switches
    • Lab 10: Securing VTP Domains on Cisco Catalyst Switches
    • Lab 11: Configuring Switch Access Port Security on Cisco Catalyst Switches
    • Lab 12: Configuring Advanced Switch Access Port Security on Cisco Catalyst Switches
    • Lab 13: Configuring Advanced Static Switch Access Port Security on Cisco Catalyst Switches
    • Lab 14: Disabling Auto-negotiation of Trunking on Cisco Catalyst Switches
    • Lab 15: Configuring Dynamic Trunking on Cisco Switchports
    • Lab 16: Configuring Default Gateways for Cisco Routers and Switches
    • Lab 17: Understanding Cisco Discovery Protocol (CDP)
    • Lab 18: Configuring LLDP on Cisco Devices
    • Lab 19: Configuring Errdisable Recovery on Cisco Switches
    • Lab 20: Configuring Inter-VLAN Routing with Router on a Stick (RoaS)
    • Lab 21: Configuring Inter-VLAN Routing Using Switched Virtual Interfaces (SVI)
    • Lab 22: Configuring Static Routing via Ethernet Interfaces on Cisco Routers
    • Lab 23: Configuring Static Routing via IP addresses
    • Lab 24: Configuring and Naming Static Routes on Cisco Routers
    • Lab 25: Configuring Default Static Routes on Cisco Routers
    • Lab 26: Configuring IPv6 Static Routes on Cisco Routers
    • Lab 27: Configuring IPv6 Default Routes on Cisco Routers
    • Lab 28: Configuring IP Floating Static Routes on Cisco Routers
    • Lab 29: Configuring RIP Version 2 on Cisco Routers
    • Lab 30: RIPv2 Network Summarization Configuration on Cisco Routers

    Configuring Default Gateways for Cisco Routers and Switches

    Objective

    The objective of this lab exercise is to configure routers and switches to be able to communicate with remote networks. By default, devices can only communicate with locally connected networks.

    Purpose

    Configuring a default gateway on routers and switches is a fundamental skill. Default gateways allow routers and switches to be reachable to and from remote subnets. As a Cisco engineer, as well as in the Cisco CCNA exam, you will be expected to know how to configure a router or switch default gateway.

    Lab Topology

    Use the following topology to complete this lab exercise:

    Router Setup 1

    Task 1: Configure Hostnames

    Objective: Configure hostnames on SW1, R1, and R2 as illustrated in the topology above.

    Configuration:

    SW1#config t
    Enter configuration commands, one per line. End with CTRL/Z.
    SW1(config)#hostname SW1
    SW1(config)#
    
    R1#config t
    Enter configuration commands, one per line. End with CTRL/Z.
    R1(config)#hostname R1
    R1(config)#
    
    R2#config t
    Enter configuration commands, one per line. End with CTRL/Z.
    R2(config)#hostname R2
    R2(config)#

    Task 2: Configure VLANs and Trunks

    Objective: Configure SW1 as a VTP server and configure the VLANs as illustrated above. Configure SW1 interface FastEthernet0/2 as a trunk using 802.1q encapsulation. Ensure that you place the correct switch interface into VLAN10.

    Configuration:

    SW1#config t
    Enter configuration commands, one per line. End with CTRL/Z.
    SW1(config)#vtp mode server
    SW1(config)#vlan 10
    SW1(config-vlan)#exit
    SW1(config)#interface fastethernet0/2
    SW1(config-if)#switchport mode trunk
    SW1(config-if)#switchport trunk native vlan 10
    SW1(config-if)#end

    Task 3: Configure IP Addressing and Default Gateway

    Objective: Configure IP addressing on R1 and R2 and interface VLAN20 on SW1 as illustrated above. Configure a default gateway on SW1 of 192.168.1.5 and a default route on R1 via FastEthernet0/0. Make VLAN20 the native VLAN on the router. Set the native VLAN on the switch trunk port to 20.

    Configuration:

    R1#config t
    Enter configuration commands, one per line. End with CTRL/Z.
    R1(config)#interface fastethernet0/0
    R1(config-if)#ip address 192.168.1.1 255.255.255.252
    R1(config-if)#no shutdown
    R1(config-if)#exit
    R1(config)#ip route 0.0.0.0 0.0.0.0 fastethernet0/0
    R1(config)#end
    R1#copy running-config startup-config
    
    R2#config t
    Enter configuration commands, one per line. End with CTRL/Z.
    R2(config)#interface fastethernet0/0
    R2(config-if)#description "Connected To Switch Trunk Fa0/3"
    R2(config-if)#no shutdown
    R2(config-if)#exit
    R2(config)#interface fastethernet0/0.10
    R2(config-subif)#description Subinterface For VLAN 10
    R2(config-subif)#encapsulation dot1Q 10
    R2(config-subif)#ip address 192.168.1.2 255.255.255.252
    R2(config-subif)#exit
    R2(config)#interface fastethernet0/0.20
    R2(config-subif)#description Subinterface For VLAN 20
    R2(config-subif)#encapsulation dot1Q 20 native
    R2(config-subif)#ip address 192.168.1.5 255.255.255.252
    R2(config-subif)#end
    R2#copy running-config startup-config
    
    SW1#config t
    Enter configuration commands, one per line. End with CTRL/Z.
    SW1(config)#interface vlan1
    SW1(config-if)#shutdown
    SW1(config)#vlan 20
    SW1(config)#interface vlan20
    SW1(config-if)#ip address 192.168.1.6 255.255.255.252
    SW1(config-if)#no shutdown
    SW1(config-if)#interface fastethernet0/3
    SW1(config-if)#switchport trunk native vlan 20
    SW1(config-if)#exit
    SW1(config)#ip default-gateway 192.168.1.5
    SW1(config)#end
    SW1#copy running-config startup-config

    Task 4: Verify Configuration

    Objective: Verify your configuration by pinging from SW1 to R1’s FastEthernet0/0 address of 192.168.1.1.

    Verification:

    R1#show ip interface brief
    Interface              IP-Address      OK? Method Status                Protocol
    FastEthernet0/0        192.168.1.1     YES manual up                    up
    FastEthernet0/1        unassigned      YES unset  administratively down down
    Vlan1                  unassigned      YES unset  administratively down down
    
    R2#show ip interface brief
    Interface              IP-Address      OK? Method Status                Protocol
    FastEthernet0/0        unassigned      YES unset  up                    up
    FastEthernet0/0.10     192.168.1.2     YES manual up                    up
    FastEthernet0/0.20     192.168.1.5     YES manual up                    up
    FastEthernet0/1        unassigned      YES unset  administratively down down
    Vlan1                  unassigned      YES unset  administratively down down
    
    SW1#show ip interface brief
    Interface              IP-Address      OK? Method Status                Protocol
    FastEthernet0/1        unassigned      YES manual down                  down
    FastEthernet0/2        unassigned      YES manual up                    up
    FastEthernet0/3        unassigned      YES manual up                    up
    FastEthernet0/4        unassigned      YES manual down                  down
    FastEthernet0/5        unassigned      YES manual down                  down
    FastEthernet0/6        unassigned      YES manual down                  down
    FastEthernet0/7        unassigned      YES manual down                  down
    FastEthernet0/8        unassigned      YES manual down                  down
    FastEthernet0/9        unassigned      YES manual down                  down
    FastEthernet0/10       unassigned      YES manual down                  down
    FastEthernet0/11       unassigned      YES manual down                  down
    FastEthernet0/12       unassigned      YES manual down                  down
    FastEthernet0/13       unassigned      YES manual down                  down
    FastEthernet0/14       unassigned      YES manual down                  down
    FastEthernet0/15       unassigned      YES manual down                  down
    FastEthernet0/16       unassigned      YES manual down                  down
    FastEthernet0/17       unassigned      YES manual down                  down
    FastEthernet0/18       unassigned      YES manual down                  down
    FastEthernet0/19       unassigned      YES manual down                  down
    FastEthernet0/20       unassigned      YES manual down                  down
    FastEthernet0/21       unassigned      YES manual down                  down
    FastEthernet0/22       unassigned      YES manual down                  down
    FastEthernet0/23       unassigned      YES manual down                  down
    FastEthernet0/24       unassigned      YES manual down                  down
    GigabitEthernet0/1     unassigned      YES manual down                  down
    GigabitEthernet0/2     unassigned      YES manual down                  down
    Vlan1                  unassigned      YES manual administratively down down
    Vlan20                 192.168.1.6     YES manual up                    up
    
    SW1#ping 192.168.1.1
    
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
    ..!!!
    Success rate is 60 percent (3/5), round-trip min/avg/max = 0/0/0 ms

    Cisco Packet Tracer file:
    Load and open the .pkt Lab file in Cisco Packet Tracer from here: Configuring_Default_Gateways_Routers_and_Switches.pkt

    © 2025 WinITExam.com
    Terms | Privacy | Refund | Contact