06-13-2023
09:50 PM
- last edited on
06-21-2023
11:28 PM
by
Translator
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
Solved! Go to Solution.
06-14-2023
10:18 AM
- last edited on
06-22-2023
12:18 AM
by
Translator
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
06-14-2023 07:48 AM
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
06-14-2023
08:02 AM
- last edited on
06-21-2023
11:39 PM
by
Translator
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
06-14-2023 08:03 AM
Hi David, do you see the picture I attached to the email when I responded to your reply?
REgards,
Masood
06-14-2023
08:05 AM
- last edited on
06-21-2023
11:45 PM
by
Translator
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
06-14-2023 09:10 AM
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
06-14-2023 09:21 AM
I do not see any pictures or attachments.
06-14-2023 09:15 AM
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
06-14-2023
09:21 AM
- last edited on
06-22-2023
12:06 AM
by
Translator
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.
06-14-2023 09:28 AM
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
06-14-2023 09:41 AM
What is order of number when you add it manually?
06-14-2023
11:38 AM
- last edited on
06-22-2023
12:07 AM
by
Translator
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
06-14-2023
10:18 AM
- last edited on
06-22-2023
12:18 AM
by
Translator
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
06-14-2023 10:22 AM
keyword standard is key here ?
06-14-2023 11:39 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide