Skip to content

Convert FastEthernet/Serial to Ethernet in gns3vault-archive configs#27

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/check-containerlab-topologies-again
Draft

Convert FastEthernet/Serial to Ethernet in gns3vault-archive configs#27
Copilot wants to merge 3 commits intomainfrom
copilot/check-containerlab-topologies-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 14, 2025

Router configs used legacy FastEthernet and Serial interfaces incompatible with Cisco IOL containerlab deployments. All 1910 config files (both startup-configs and final-configs) required Ethernet interfaces to match the topology files' addressing scheme with proper +1 offset mapping.

Changes

Interface Type Conversion

  • FastEthernet0/0Ethernet0/0, FastEthernet1/0Ethernet0/1, FastEthernet2/0Ethernet0/2
  • Serial0/0Ethernet0/0, Serial1/0Ethernet0/1, Serial2/0Ethernet0/2, Serial2/1Ethernet0/3
  • Preserved special interfaces: Loopback, Tunnel, Vlan, Port-channel, GigabitEthernet

Offset Mapping

Topology files enumerate interfaces starting at Ethernet0/1. Containerlab maps these to router physical ports with -1 offset:

  • Topology Ethernet0/1 → Config Ethernet0/0 (physical port 0)
  • Topology Ethernet0/2 → Config Ethernet0/1 (physical port 1)

Example

- interface FastEthernet0/0
+ interface Ethernet0/0
   ip address 192.168.12.1 255.255.255.0
- interface Serial2/0
+ interface Ethernet0/2
   ip address 192.168.34.3 255.255.255.0

Scope

  • 967 config files in startup-configs directories
  • 943 config files in final-configs directories
  • Total: 1910 config files modified across all gns3vault-archive lab categories (BGP, OSPF, MPLS, EIGRP, RIP, Multicast, Switching, Security, etc.)
Original prompt

Check if all gns3vault-archive containerlab topologies are correct.

interface numbers should start with ethernet0/1.

router configs should start with ethernet0/1.

there is a +1 offset between Containerlab topology file and router config. That's how it Works


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI self-assigned this Dec 14, 2025
Co-authored-by: renemolenaar82 <6650207+renemolenaar82@users.noreply.github.com>
Copilot AI changed the title [WIP] Verify correctness of gns3vault-archive topologies Convert FastEthernet/Serial to Ethernet in gns3vault-archive configs Dec 14, 2025
Copilot AI requested a review from renemolenaar82 December 14, 2025 09:57
Copy link
Copy Markdown
Collaborator

@renemolenaar82 renemolenaar82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recheck this because files might have been updated.

Co-authored-by: renemolenaar82 <6650207+renemolenaar82@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Feb 18, 2026

Recheck this because files might have been updated.

Rechecked all gns3vault-archive configs. Found and fixed 943 additional config files in final-configs directories that still had FastEthernet/Serial interfaces. All 1910 router configs now use Ethernet interfaces with proper +1 offset mapping (topology Ethernet0/1 → config Ethernet0/0). Commit: b7eea2e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants