cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2613
Views
4
Helpful
18
Replies

why I am not able to paste Ip access-list containg 10+ lines

MasoodA
Level 1
Level 1

Hi,

 

I know I had done this many times in the past but I was trying to paste an

access-list

(standard) into a 3800 L3 switch from a notpad file but the device kept rejecting it. I had to insert line by line (about 12 lines).

 

I had done this on Cisco routers many times with no issues but this switch gave me hard times. could someone please shed light on this so I know why that happened?

Ip access-list 30

a standard Ip access-list.

I prepared it in notepad because i wanted to add three new lines.

 

No access-list 30

then conf t and pasted new

access-list

but switch kept rejecting until I inserted line by line. it was working as expected after adding line by line as I was seeing IPs getting hits.

Thank you and

best regards,

 

Masood

 

 

 

1 Accepted Solution

Accepted Solutions

Hi folks,

I was able to perform this task without issues.

switch(config)

ip access-list standard 30

and it worked because the prompt changed to ACL mode. it was all my own mistake. thank you for you help and support.

 

Best Regads,

 

Masood

 

View solution in original post

18 Replies 18

Hello,

it’s possible the syntax may have been slightly different. Maybe your code was a different version.

Can you post a screenshot of you trying to laste it in with the error and another screenshot of you putting it in line by line.

-David

Hi and thanks for getting back to me. I have attached a picture. number of line have been truncated in this picture and IPs been replaced with

 /Xs

due to the nature of work, I coudn't send actual screen shot.
Hope this helps.

Regards,
Masood

Hi David, do you see the picture I attached to the email when I responded to your reply?

 

REgards,

 

Masood

 

the errors was looked like having line spaces with

!

based on my experience from way before.

unfortunately i cannot send screen-shots.

 

Best Regards,

 

Masood

 

 

add line with number not start from 10 and each step is 10 instead use start from 5 and each step 5
the last line may not accept last three numbers because of limit of number of line 

I do not see any pictures or attachments.

MasoodA
Level 1
Level 1

Thank you MHM,

 

you think the problem is on the number of lines? I even pasted without any sequence numbers because its an standard ACL. no sequence numbers needed really. still same result. switch didn't take the paste.

 

Regards,

 

Masood

 

check both case 
when you add ACL via Notpad, check the number for each line with show

ip access -list


then remove the ACL and add it manually using same number, this sure give hint that the issue from the number of line or not.

thanks, I added manually and all were accepted and working properly. i did not add any sequence numbers yet after adding show Acl 30 shows line numbering. I still don't see why the switch didn't accept pasting from a note pad the ACL as a whole

Regards,

 

Masood

What is order of number when you add it manually?

No numbers at all. Standard.

Access-list 30
Permit xxxxxx



When I pasted in, I had no sequence numbers. I was at wrong cmd prompt last night. Was my own mistake.

Regards,

Masoos

Hi folks,

I was able to perform this task without issues.

switch(config)

ip access-list standard 30

and it worked because the prompt changed to ACL mode. it was all my own mistake. thank you for you help and support.

 

Best Regads,

 

Masood

 

keyword standard is key here ?

Because it’s standard ACL. It’s part of Cisco IOS and not my key word.

Regards,

Masood