Converting initial configs to WEB-IOU interface naming (Gi0/1.x > Eth0/1.x)

The initial configurations use GigabitEthernet interfaces, albeit .1q sub interfaces.

These do not load into WEB-IOU very well due to it using Ethernet interfaces.

Here is the command that will find/replace then in ALL configs from the initial-configs official ZIP file.

(Assumption: using Linux!)

1. Download the official initial-configrations to /tmp

2. Navigate to the directory of the "advanced technologies labs"

3 Issue the following command

# grep -rl 'GigabitEthernet1' ./ | -xargs sed -i 's/GigabitEthernet1/eth0/1/g'

It can probably be done more efficiently, but does the job!

Sign In or Register to comment.