DN42 is a wonderful project that allows you to develop your BGP skills without breaking the product environment, without having to have expensive devices to make a lab to do simulations with GNS3. At the same time, it should not be a purely laboratory environment in which there are no real-world problems. I participate with 1 node in the project for about a year. One of the problems in the project is 1:1 with the real world – when someone announces prefixes that they shouldn't announce. Because I'm lazy and I don't write filters by hand all the time, I solved the problem with an elementary bash script that generates a prefix-list named dn42 and I pour the valid prefixes in it.

#!/bin/bash</pre>
vtysh -c 'conf t' -c "no ip prefix-list dn42"; #drop old prefix list

while read pl
do
vtysh -c 'conf t' -c "$pl"; #insert prefix list row by row
done < <(curl -s https://ca.dn42.us/reg/filter.txt | grep -e ^[0-9] | awk '{ print "ip prefix-list dn42 seq " $1 " " $2 " " $3 " ge " $4 " le " $5}' | sed "s_/\([0-9]\+\) ge \1_/\1_g;s_/\([0-9]\+\) le \1_/\1_g");
vtysh -c 'wr' #write new prefix list

The list of valid prefixes is taken https://ca.dn42.us/reg/filter.txt from where the main pipeline + a few modifications on my part to be able to generate prefix sheets. Commands are executed through vtysh.

Recently I had to find out why the hell this VIVACOM nonsense (BTC) – ADSL Model CT-5367 не стават за нищо. In addition to his hollow hardware, some great genius has decided, 4MB ram is a great luxury and is put 2 which is insanely small- because every connection you make is the use of the routing mechanism respectively system resource. To be more specific in your example, you open your torrent client and make several hundred connections. Which is absolutely enough to fold the router. In general, I will not explain how to improve his work because it is impossible! I can only give her a password and username

user: root
pass: warmWLspot

With them you can telnet to your router, enter it and so on. They are useful if you are physically far from the router and you are too lazy to restart it.

Today I once again returned a router from the other world – his WAN port had burned out and he was generally just throwing. Yes, but not because it was suitable for * WRT firmware, I flashed it and replaced the WAN port to be one of those for LAN, so the procedure itself is generally bean

Does not allow resetting of vlan0ports
nvram set manual_boot_nv=1

Maha port 4(0) from Lan ports
nvram set vlan0ports=”3 2 1 5*”

Port 4 becomes a WAN port
nvram set vlan1ports=”0 5″

Saves changes
nvram commit

Restarts the router
reboot

The procedure was tested on Tomato WRT and works 100%, it will be similar for Open WRT and DD-Wrt си има направо графичен инструмент gui-то. In general, the procedure is standard for most routers as long as they support VLAN-and so that different ports can be inserted into different network segments.

Yesterday I took my first exam for the Cisco academy I attend. Due to the fact that I deleted my posts, there is no explanation, that I am starting such a school. And so I started the academy even the first one and the gathering was on my birthday- I took it as a lucky sign 😉 In general, the academy definitely makes me happy, because I'm learning a theory about many of the things I practice that has eluded me in one way or another, a separate end goal certificate for CCNA Exploration is extremely important to me and in itself is a big challenge for me. So the scheme is as follows, after each chapter we take, we have exams to check our knowledge. At the end of each semester and they are together 4 we will have exams again for the whole semester and at the end of the 4th semester we will take several exams preparing us for the last exam to certify us as Cisco experts. So, according to this scheme, yesterday I did the test for the second chapter – the first one because the first chapter is just an introduction. The exam was positive for me 89.1%. From maximum 46 points I scored 41 Ми I think decently but still hoped for more 90%. It's not who knows what the point is all the exams during the semester have I covered it with over 70% I think.

Here is some sunny music from a young man I know JaGWaR making gorgeous music.


For a long time I had a lame problem on a server, that when the pppoe adapter fell off, it didn't hook itself. The decision, as usual, is trivial, it was just a matter of laziness and a few magical movements. 5 minutes

#!/bin/bash

PPP_DEV=$(ifconfig | grep -c ppp)

if [ $PPP_DEV -gt 0 ]
then
 echo -e "\n PPPoE still connected \n"
else
 echo -e "\n PPPoE is dropped \n"

 if  ! ping -c 2 -q 'abv.bg' &> /dev/null
 then
    /usr/sbin/pppoe-stop &
    sleep 4
 fi

 /usr/sbin/pppoe-start &
fi

The script is absolutely spartan but it works. Otherwise, in principle, the slackware itself has an option in the conf of the pppoe to reconnect only when the line breaks down, but a chance.