[python]Automating OSPF configuration of two routers

Network diagram There are two vIOS which are R1 and R2, they have their gi0/2 and gi0/3 connected to the R5 switch, the configuration is pushed from the cloud through their gi0/2 and gi0/3 to configure their gi0/0 to become OSPF neighbours. Objective To configure the two routers to become ospf neighbors, the OSPF configuration … Continue reading [python]Automating OSPF configuration of two routers

Advertisements

[python]Example script on Cisco router

This is an example script based on this https://github.com/davidbombal/pythonvideos/blob/master/paramiko-pythonssh1.py It works almost like pexpect, however need to have a privilege 15 account to make the SSHClient work, as there is no input to accept enable secret. I was trying to figure out the feasibility of using API to push the configuration, I find the send … Continue reading [python]Example script on Cisco router

Extending the python script to configure OSPF with ncclient

Previously I have successfully download the configuration from the netconf enabled router, now i have extended support to configure ospf. This is a simple lab to further extend and get myself familiarize and comfortable with netconf. During the lab I was careless, I inadvertently left a space on my netconf snippet that breaks my script … Continue reading Extending the python script to configure OSPF with ncclient

Is full meshed iBGP necessary?

Revisit the configuration of the iBGP routers R2#sh run | s r b router bgp 2 bgp log-neighbor-changes neighbor 3.3.3.3 remote-as 2 neighbor 3.3.3.3 update-source Loopback2 neighbor 3.3.3.3 next-hop-self neighbor 4.4.4.4 remote-as 2 neighbor 4.4.4.4 update-source Loopback2 neighbor 4.4.4.4 next-hop-self neighbor 192.168.12.1 remote-as 1 R2# R3#sh run | s r b router bgp 2 bgp … Continue reading Is full meshed iBGP necessary?

Solving routing loop problem due to poorly configured redistribution

The┬ádiagram Routing loop when vIOS2 (R2) is trying to reach 1.1.1.1 in vIOS1 (R1) R2#traceroute 1.1.1.1 numeric Type escape sequence to abort. Tracing the route to 1.1.1.1 VRF info: (vrf in name/id, vrf out name/id) 1 192.168.23.3 4 msec 4 msec 5 msec 2 192.168.34.4 4 msec 8 msec 5 msec 3 192.168.24.2 2 msec … Continue reading Solving routing loop problem due to poorly configured redistribution