Google Translation
Main Menu
| Home |
| Useful Links |
| Public Route Server |
| Download |
Login Form
Advertisements
Who's Online
Latest Articles
- Cisco AUX port for back door emergency link configuration
- Multilink PPP protocol configuration
- Cisco HDLC WAN protocol
- How to install sslexplorer on SuSE linux
- How to convert Cisco AP521 back into stand alone mode
- [log] :Problem with RX packet, length is 1, what is it?
- sslexplorer invalid credentials on SuSE / Linux
- Default password for Cisco AP 521
Popular
- Enable Telnet on IE7.0 with Windows XP and Vista
- How to create loopback interface on Windows XP
- Cisco 7200 Simulator - Dynamips installation for window
- BGP sample configuration guide - Cisco
- How IP-helper address works?
- BGP sample configuration Case 1-1
- BGP Community String for Verizon Business AS701
- Network Settings In VMWare Player
| Modifying Huge ACL & prefix- list ? |
|
|
|
| Written by Chris | ||||||||
|
-- Raw list --
1.1.1.1/24 2.2.2.2/23 3.3.3.3/22 4.4.4.4/21 5.5.5.5/20 6.6.6.6/19 : : :
:%s/^/ip prefix-list Hello permit /g
(If you are not familiar with vi editor, search 'vi editor' on Internet)
ip prefix-list Hello permit 1.1.1.1/24
ip prefix-list Hello permit 2.2.2.2/23 ip prefix-list Hello permit 3.3.3.3/22 ip prefix-list Hello permit 4.4.4.4/21 ip prefix-list Hello permit 5.5.5.5/20 ip prefix-list Hello permit 6.6.6.6/19 : :
:%s/\/24/\/24 le 32/g <------- it will modify /24 IP block
ip prefix-list Hello permit 1.1.1.1/24 le 32
ip prefix-list Hello permit 2.2.2.2/23 ip prefix-list Hello permit 3.3.3.3/22 ip prefix-list Hello permit 4.4.4.4/21 ip prefix-list Hello permit 5.5.5.5/20 ip prefix-list Hello permit 6.6.6.6/19
:%s/\/32/\/32 orlonger;/g
:%s/\/30/\/30 orlonger;/g :%s/\/29/\/29 orlonger;/g :%s/\/28/\/28 orlonger;/g :%s/\/27/\/27 orlonger;/g :%s/\/26/\/26 orlonger;/g :%s/\/25/\/25 orlonger;/g :%s/\/24/\/24 orlonger;/g :%s/\/23/\/23 orlonger;/g :%s/\/22/\/22 orlonger;/g :%s/\/21/\/21 orlonger;/g :%s/\/20/\/20 orlonger;/g :%s/\/19/\/19 orlonger;/g :%s/\/18/\/18 orlonger;/g :%s/\/17/\/17 orlonger;/g :%s/\/16/\/16 orlonger;/g :%s/\/15/\/15 orlonger;/g :%s/\/14/\/14 orlonger;/g :%s/\/13/\/13 orlonger;/g :%s/\/12/\/12 orlonger;/g :%s/\/11/\/11 orlonger;/g :%s/\/10/\/10 orlonger;/g
ip prefix-list Hello permit 1.1.1.1/24 le 32
ip prefix-list Hello permit 2.2.2.2/23 le 32 ip prefix-list Hello permit 3.3.3.3/22 le 32 ip prefix-list Hello permit 4.4.4.4/21 le 32 ip prefix-list Hello permit 5.5.5.5/20 le 32 ip prefix-list Hello permit 6.6.6.6/19 le 32
Powered by AkoComment Tweaked Special Edition v.1.4.3 |
||||||||
| < Prev | Next > |
|---|




Be first to comment this article





















