Cisco SG300 Default Route

I’ve been working on my home lab and finally have a few virtual machines running which will require Internet access (e.g Windows Server Update Services). My Cisco SG300 switch is setup for layer 3 mode and I have two VLANs currently configured on it with more to come as my lab environment grows.

An important configuration is to setup the default route for IP traffic on the SG300. If this is not setup packets will not be able to route out to their destination, in this case the Internet.


Command Line Configuration

Configuring the default route from the command line is very simple, first let us look at the existing routes on my switch.


As you can see there are two routes currently known, both of which are directly connected. There is no default route so if I try to connect to the Internet from a virtual machine in VLAN 100 it will fail as per the screenshot below.

Internet Access Fails Due To No Default Route


Now let us configure the default route and test Internet access again. To configure the static route we first need to enter config mode and then leverage the IP route command.


Now that we have configured the route let us check our routing table again.


Finally we will test Internet connectivity from the virtual machine to confirm the switch is correctly forwarding packets to the next router.

Internet Access Works

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.