Stuff…

I know I will forget.

Stuff… header image 2

Default a port on old Cisco 3548

June 20th, 2010 · No Comments

I wanted to default the configuration of a number of ports on an old Cisco 3548. The latest version of IOS support on this system does not support the range command, so, had to manually run a small script (bash 1 liner on linux) and paste in the contents:

$ for i in `seq 40 48`; do echo default interface fastEthernet 0/$i; done
default interface fastEthernet 0/40
default interface fastEthernet 0/41
default interface fastEthernet 0/42
default interface fastEthernet 0/43
default interface fastEthernet 0/44
default interface fastEthernet 0/45
default interface fastEthernet 0/46
default interface fastEthernet 0/47
default interface fastEthernet 0/48

Tags: Cisco · Coding · Networking · One Liners · Uncategorized

0 responses so far ↓

  • There are no comments yet...

Leave a Comment