- How to set default gateway on cisco switch how to#
- How to set default gateway on cisco switch manual#
When you are ready for your certification exam, you should complete this lab in no more than 10 minutes. This lab has a difficulty rating of 4/10. This lab is suitable for both CCENT and CCNA certification exam preparation.
How to set default gateway on cisco switch how to#
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. Default gateways allow routers and switches to be reachable to and from remote subnets. Lab Purpose:Ĭonfiguring a default gateway on routers and switches is a fundamental skill. By default, devices can only communicate with locally-connected networks. Then use the show flash command, and the startup-config file should be listed.The objective of this lab exercise is to configure routers and switches to be able to communicate with remote networks. It is also possible to save the changes to flash using the copy startup-config flash command. To ensure the startup-config contains the IP address and subnet mask, use the show startup-config command. Type copy running-config startup-config and press enter. In IOS, type enable and press enter to enter priviledge mode. To ensure these changes remain saved if the switch is restarted, save the changes to the startup-config. The reload command can be used to return the switch to the configuration it had before any changes were made. Following is example output of the show ip interface brief command: Interface IP-Address OK? Method Status ProtocolĬommand show interface interface shows details information about an interface (example: show interface FastEthernet0/1). Command show ipv6 interface brief displays a brief summary of all of the IPv6 interfaces. Command show ip interface brief displays a brief summary of all of the IPv4 interfaces. Use the show running-config to verify that the IP address, subnet mask and default gateway have been added. R1(config-if)# description cable connection on interface on device to interface on device R1(config-if)# ip address x.x.x.x x.x.x.x
For IPv6, type ipv6 address xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/64 and press enter (example: ipv6 address 2001:DB8:1:1::1/64).Notice both the IP address and subnet mask are entered Type interface followed by the interface you need to configure and press enter (example: interface GigabitEthernet0/1).Type configure terminal and press enter.It can be helpful to recognize that a router or switch will have at least two cables connected, one going to the LAN (probably GigabitEthernet) and the other going to the WAN (probably Serial). When making a VTY connection to the router or switch from a computer in the LAN, the connection flows through the Ethernet LAN interface, which is probably GigabitEthernet0/1. When making a VTY connection to the router or switch from a computer over the WAN, the connection flows throughthe Ethernet WAN interface, which is probably GigabitEthernet0/1. Because VTY is virtual, there is no physical interface on the router for the VTY interface. Note: The VTY (virtual terminal lines) are used to connect to the router or switch remotely, via SSH or telnet. Vlan1 unassigned YES unset administratively down down
How to set default gateway on cisco switch manual#
GigabitEthernet0/1 71.25.15.16 YES manual up up GigabitEthernet0/0 192.168.0.1 YES manual up up Interface IP-Address OK? Method Status Protocol Make note of the interface you wish to configure. Type show ip interface brief and press enter.Follow these directions to configure the IP address and subnet mask on a Cisco router or switch in IOS.