Dynamic NAT using Netmiko
We create three files, one for data, one for configuration and another one for showing results. These files need to be excutable.
Let's add information to data.py about Router 1 and Router 2:
Let's create these two functions which will help us to retrieve a subnet mask and also a wild card mask:
Now, let's define these five function, which will configure an interface, a default route, a NAT interface, an ACL, and then Dyanmic NAT:
Now, we configure R1 with the following configuration:
Then R2:
And we run these two functions: