Install speedtest1/21/2024 #define errExit(msg) įprintf(stderr, "%s cmd args.\n", argv) and it will run in the ip4only network namespace Now we can do "ip4only command" (eg "ip4only ip addr") Now I don’t want to use sudo each time, so I created a wrapper that enters the name space, and uses capabilities for the permissions. Yes it does look like there are inet6 addresses but these are link-local so aren’t used. So now we can see % sudo ip netns exec ip4only ip addrġ: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 Iptables -A FORWARD -o br-lan -i ip4only-root -j ACCEPT Iptables -A FORWARD -i br-lan -o ip4only-root -j ACCEPT # Allow forwarding between br-lan and ip4only-root # Flush forward rules, policy DROP by default. Ip netns exec ip4only ip route add default via 192.168.200.1 Ip netns exec ip4only ip link set ip4only-ns up Ip netns exec ip4only ip addr add 192.168.200.2/24 dev ip4only-ns Ip link add ip4only-root type veth peer name ip4only-ns In my case I have br-lan as a bridge for my LAN access so the setup for this namespace would be So anything running in that namespace will think it only has an IPv4 address. Basically I create a namespace that only has an IPv4 address and NAT that to my LAN. So I have a work-around, that uses namespaces. My speeds using this package are consistent. This could be looped though until it finds it and runs the test successfully. There are odd occasions when it glitches and doesn’t find it, because the -list command doesn’t always return the same list and sometimes doesn’t include the ID I’m wanting to use. However after persisting and running a few times eventually it did find it, and then consistently started to work. Despite getting a valid ID from the -list command, the first few times I tried it I got: ERROR: No matched servers: 338 When I run it the parameters are specified differently: speedtest-cli -server xxx Last metadata expiration check: 1:50:06 ago on Tue 06:29:47 AM CEST. Only I have different commands than the ones you are using, where did you install the package from? Mine is coming from EPEL. I installed this package: dnf install speedtest-cli If, on the other hand, we choose to install using pip, we can eliminate the utility using the uninstall option.Just been testing on Rocky 8. In case we choose to install it from the official repositories, we will have to open a terminal (Ctrl + Alt + T) and write in it: sudo apt remove speedtest-cli Uninstall Speedtest-cliĪs we are going to be able to install this utility in two different ways, obviously we can also uninstall it in two different ways. It is a relative value, used to determine the lowest latency server for speed testing. The latency that this tool will show us should not be considered as an indicative value of style latency ICMP. I want to clarify that it is not an objective of this application to be a reliable latency reporting tool. It has a good amount of features and is made in my beloved Python language. We will be able to choose to run a test from that particular server simply by supplying its identification using the following command: speedtest-cli -server 922Īs we have just seen, this interesting tool called speedtest-cli that can be used to test our internet speed from the terminal. In this case, you have to look at those numbers at the extreme right of the previous image. We will only have to write the following command: In case we want or need get a list of all speed servers in ascending order of distance to our situation. Whoever wants to can consult and verify all of them simply by typing in the terminal: Speedtest-cli offers a lots of options and customizations. To do that simply add a –Bytes behind your command. Now we may be interested in reading the values in bytes. We can also make some changes, as in the previous test, the values are in bits. Then we will write in it speedtest-cli and press Enter. We will simply have to start a terminal (Ctrl + Alt + T).
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |