I am searching in a series of large Redback config files for certain things, and I’m beginning to find Regex and Atom really powerful for this. The files are sometimes 20,000 lines long, and there are over 100 of them.
Of course I should script this, and someone more script savvy than me would do that in a trice, but I’ve come up with a part manual solution. Perhaps I will build it into a script later.
What I need to do is search each file for any ‘ip route’ commands that have a named interface as a next-hop rather than an IP address. So to do this, I am doing inverse-matching on four sets of numbers separated by dots.
I also need to exclude the keyword ‘context’ and the interface ‘null0’. This took me a while to figure out.
Here’s my pattern match:
ip route [0-9]+.[0-9]+.[0-9]+.[0-9]+/[0-9]+ (?![0-9]+.[0-9]+.[0-9]+.[0-9]+|context|null0)
This matches the string:
ip route 172.21.0.0/16 MADEUPINTERFACE
But not:
ip route 172.16.4.0/24 10.0.0.1
The expression is not very accurate, since it could match IP addresses like 999.999.999.999, but that does not matter in Continue reading
Marek Majkowski published an awesome real-life story on CloudFlare blog: users experienced occasional short-term sluggish performance and while everything pointed to a network problem, it turned out to be a garbage collection problem in Linux kernel.
Takeaway: It might not be the network's fault.
Also: How many people would be able to troubleshoot that problem and fix it? Technology is becoming way too complex, and I don’t think software-defined-whatever is the answer.
On this week's show we're chatting with Kevin Finisterre about Silverpush -- the creepy ultrasonic audio-beaconing technology used by advertising companies that was in the press a couple of weeks ago. Kevin was all over it and he joins me to discuss the growing overlap between the techniques used by marketers and blackhats.
SON could become big with the advent of 5G.
Looking for the Citizens of Tech podcast? We moved it to CitizensOfTech.com. Join me (Ethan Banks) and Eric Sutphen there as we discuss space, science, gaming, gadgets, energy, transportation, and whatever else strikes our nerdy fancy.
The post Citizens of Tech Has Moved to CitizensOfTech.com! appeared first on Packet Pushers.
Looking for the Citizens of Tech podcast? We moved it to CitizensOfTech.com. Join me (Ethan Banks) and Eric Sutphen there as we discuss space, science, gaming, gadgets, energy, transportation, and whatever else strikes our nerdy fancy.
The post Citizens of Tech Has Moved to CitizensOfTech.com! appeared first on Packet Pushers.
Juniper plans to disaggregate its Junos switch OS from the new QFX5200 switches. The QFX5200 line will be the first from Juniper that lets customers choose to run Junos or a third-party network OS. Junos will also run on non-Juniper hardware. Juniper hasn't yet announced third-party partners.
The post Juniper’s Conscious Uncoupling Of Junos & The QFX5200 appeared first on Packet Pushers.
Juniper plans to disaggregate its Junos switch OS from the new QFX5200 switches. The QFX5200 line will be the first from Juniper that lets customers choose to run Junos or a third-party network OS. Junos will also run on non-Juniper hardware. Juniper hasn't yet announced third-party partners.
The post Juniper’s Conscious Uncoupling Of Junos & The QFX5200 appeared first on Packet Pushers.
With IoT, Telus could contract with a utility to do meter reading.