Big changes
So, you wanna begin in automation? Begin with your changes and how you develop and test.
The biggest mistake network admins regularly make is to merely "think" about problems and then develop solutions by "thinking" and committee. The figuring is, it will all work if we just think enough about it. This is nonsense. You will make mistakes relying on eyes and perfection. Let machines do their thing.
The biggest mistake network admins regularly make is to merely "think" about problems and then develop solutions by "thinking" and committee. The figuring is, it will all work if we just think enough about it. This is nonsense. You will make mistakes relying on eyes and perfection. Let machines do their thing.
Change analysis
I have a need to sling some routes to another part of the network. Will it break stuff?
By some work in determining the scope of the proposed changes, one can note the assumptions that take place in the change. Example, I will be doing redistribution from BGP into OSPF and I assume that all prefixes from BGP from BGP today originate on two routers. How can I verify?
Another (crappy) example, I believe RIP route distribution contains no filtering anywhere. How can this be checked?
Decomposing the change and verifying state
Consider a situation where we have an access switch hanging downstream from distribution and core switches and we want to assign a VLAN to a port. Fairly easy scenario!
1) We need to determine whether the VLAN exists
2) We need to determine where the VLAN exists
3) We need to interconnect the devices on the VLAN
4) Do not permit downstream devices to be on the VLAN prior to the upstream having been configured.
5) Apply all relevant policy for the spanning-tree instance (think like in PVST-ish setup)
In our situation, we must see two core switches, the ports to the distro switches, perhaps the VPC interconnects, and then the access switch.
How many different things do we need to check at each?
- VLAN existence
- Trunking state
- Spanning-tree state
- If the VLAN doesn't exist, we need to create it
- If the trunks are not setup, we need to set these up
- If spanning-tree does not show the correct root, this is a problem.
Similarly, to confirm that the work is done, we need to check all of the same parameters again to ensure that the configuration has been effective.
State to in-situ
You've designed some kind of redundancy for this VLAN, right? Confirming spanning-tree is a good step to ensure that redundancy is in place. Now, show me your redundancy. Right now. Can you do a basic spanning-tree test and show me that it will reconverge properly?
Maybe BGP is a bit easier to envison.. we can't simply "turn down" spanning-tree. We can, however, turn down the port upstream from our access switch. This would demonstrate the redundancy well.
These test cases should include all of the "as designed" behaviors known. This will also help you in unfucking your design. If the test case looks stupid, your design is likely stupid.
Comments
Post a Comment