Lesson 2 of 10
Config Generation on Demand
The Scenario
You need to configure OSPF on a new IOS-XE router with 3 interfaces in area 0, MD5 authentication, and passive-interface default. Normally you would dig through old configs or documentation. Instead, you describe exactly what you need and AI generates it instantly.
The Prompt
Generate a Cisco IOS-XE configuration for:
- OSPF process 1, router-id 1.1.1.1
- Area 0 with these interfaces:
- GigabitEthernet0/0: 10.0.1.1/24
- GigabitEthernet0/1: 10.0.2.1/24
- Loopback0: 1.1.1.1/32
- MD5 authentication on all interfaces (key 1, password "0spfS3cure")
- Passive-interface default, only Gi0/0 and Gi0/1 active
- Redistribute connected subnets
- Add comments explaining each section
What AI Gives You
A clean, commented configuration block ready to paste:
! OSPF Configuration
router ospf 1
router-id 1.1.1.1
passive-interface default
no passive-interface GigabitEthernet0/0
no passive-interface GigabitEthernet0/1
network 10.0.1.0 0.0.0.255 area 0
network 10.0.2.0 0.0.0.255 area 0
network 1.1.1.1 0.0.0.0 area 0
redistribute connected subnets
! MD5 Authentication on OSPF interfaces
interface GigabitEthernet0/0
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 0spfS3cure
interface GigabitEthernet0/1
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 0spfS3cure
Review and Validate
- Does the wildcard mask match your subnet? AI sometimes flips /24 and 0.0.0.255
- Is
redistribute connected subnetswhat you actually want? Could cause routing loops - Check the MD5 key ID matches on both sides of each adjacency
Try It Yourself
Think of the next config you need to write — a VLAN setup, an ACL, a NAT rule. Describe it in plain English with all the specific values, and let AI generate it. Compare the output against what you would have written manually.