Speed Test cisco IOS-XE router

 Speed Test from Cisco IOS-XE Router

As a network engineer or support engineer ever faced issue that clients are complaning slow internet and ISP says internet speed is working fine. Most of the time we perform speed test from a client browser which is behind Firewall and core switches and some time due to more no. of hops we are not able to conclude what speed we are actually getting from ISP when the ISP is directly connected to cisco router.

we can perform speedtest directly from a router were ISP is connected using some CLI command.

In this blog will show you how to perform speed test directly from a router using a cli and some python/Linux command.

Steps

1. Enable Wan interface

2. Enable Lan interface

Configure lan to wan Nat

In my case  Gig 0/0/0 is wan and 0/0/1 is LAN


configure template with Nat for Guestshell ( from lan to wan Nat is not covered in this blog)

conf t

iox

interface virtualportGroup0
ip add 192.168.35.1 255.255.255.252
ip nat inside
Exit

app-hosting appid guestshell
app-vnic gateway1 virtualportgroup 0 guest-interface 0
guest-ipaddress 192.168.35.2 netmask 255.255.255.252
app-default-gateway 192.168.35.1 guest-interface 0
name-server0 8.8.8.8
name-server1 1.1.1.1

ip access-list standard NAT
permit 192.168.35.0 0.0.0.3
exit

ip nat inside source list NAT interface gig 0/0/0 overload
--------------------------------------------------------------------

enable guestshell with below command 

guestshell enable

Run guestshell with below command

guestshell run bash

-- download speedtest cli file with below command 

wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli

Run speedtest

python3 speedtest-cli --share

Check this result


Can copy and paste this Share result in Browser for GUI result.


----------------------------------------------------------------------------

Can reach out to me if need any support. +91-8977410500

Comments