O - ODR, P - periodic downloaded static route, H - NHRP, l - LISP Ia - IS-IS inter area, * - candidate default, U - per-user static route I - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2Į1 - OSPF external type 1, E2 - OSPF external type 2 Switch(config)#ip default-gateway 192.168.4.When I run show ip route on my Cisco 3850 switch stack, i get the following output PO-SW-SVR-SS-02(config)#do show ip routeĬodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPĭ - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area Set default gateway of the switch to 192.168.4.1.Assign IP address of the switch – 192.168.4.2/24.Hence, the message does not interfere with our typing. This command synchronizes the status messages. So, to solve this problem we can type the command ‘logging synchronous’. This can also be very confusing sometimes. When we receive status messages on Cisco devices the message kind of mixes with the text that we type on the CLI. Now, let us talk about the status messages received on Cisco devices.
Hence, to solve this problem we can disable domain lookup by entering the command ‘No IP Domain Lookup’. It happens because the domain name lookup is enabled by default in Cisco devices. Now, we have to wait until the device allows us to type something again. One minute is the maximum time taken by the device. This makes Cisco devices freeze for about 60 seconds as it resolves IP addresses in the background. If we mistype a command then the Cisco device will try to resolve the name to the IP address.
While configuring Cisco devices, it’s common to make typing mistakes. It copies the running-config to the startup-config alternatively we can also use the command ‘copy running config startup config’ to save the running configuration of the device. To save configuration on Cisco devices we can type the command ‘write’. Vlan1 interface allows us to connect with the switch remotely via telnet, we can use the telnet client to remotely manage and configure the switch. This enables the switch to redirect traffic to other networks. It is important to remember that the VLAN1 interface and default gateway IP address must be on the same network. While configuring the switch for basic functionality, we should also assign a default gateway to the switch. To assign an IP address to the VLAN1 interface, we have to enter into interface configuration mode. We will also perform some basic configurations which will prepare the router for the functional network. In this lab, we will assign an IP address to the Vlan1 interface and we will configure the default gateway on the switch. For example, some specific commands are meant only for the switches while others for routers as per the device’s functionality. A good thing about the Cisco IOS is that it works quite similarly on both the routers as well as switches, However, there is a difference in the commands that we use for each one of them.