When I added the delay command, paramiko returns back '2' as exit status(while it returns '0' for bandwidth command setting). Is 2 alright? (Googling didn't help with this, I am guessing 2 must be an error of some sort).The command I use is:- delaycmd = 'sudo tc qdisc add dev eth0 parent 1: handle 1: netem delay%dms'%(delay)We were basically trying to follow this:# tc qdisc add dev eth0 root netem delay 100msfrom an online tutorial.The block of commands which should set the bw,filter and delay is this. (I am guessing I might be messing up with the parent/class ids). Can you see what I might be doing wrong?
'RTNETLINK answers: File exists' A Google search mentioned this various times but nothing truly consistent and nothing directly related to what I was doing. Some mentioned routing which made me look at 'netstat -rn' outuput. I saw it had added a new bogus route to the table. Aug 08, 2018 In the beginning RTNETLINK answers: Invalid argument and then at the end RTNETLINK answers: File exists. Transmission is not available on host:9091, the request just hangs. This is typical behaviour when the local network route is not added, also described in the README. As I also fired up the proxy container I tested connecting through that.
Basically what happens is that dhclient adds a route to the routing table.It tries this while the route is already in the table.Check ip routefor a route which was added by the dhcp server.For having the lease renewed do dhclient -rif thats not enough you can remove all leases by removing the file and getting a new lease sudo rm /var/lib/dhcp/dhclient.leases; sudo dhclient eth0Depending on your exact setup this might be an issue with having to type your password twice, so watch out for that.