We need to deploy three routers with a standard base configuration. The base configuration remains the same on each router, but as each router is different, we need to automate the generation of the three config files for each router. The assumption is that all the routers have a standard hardware configuration with the same types of ports:
As we can see in the diagram, routers R1, R2, and R3 have the following cabling:
- R1 f1/0 (FastEthernet1/0) connected R2 f1/0
- R1 f0/0 connected to R3 f0/0
- R2 f0/1 connected to R3 f0/1
The standard config or template is as follows:
hostname <hname>
ip domain-lookup
ip name-server <nameserver>
logging host <loghost>
username cisco privilege 15 password cisco
enable password cisco
ip domain-name checkmetest.router
line vty 0 4
exec-timeout 5
Adding some more complexity, we need to ensure the name-server...