12-13-2002 04:58 AM - edited 03-02-2019 03:35 AM
Hi ,
There default ports given in the IOS .We can use both to refer those ports by names as well as port numbers .Can we customize it and to the defaut list ports by names not by numbers. or I want to use it use customized ports used for my applications by names in my access list.
Is there any command to create customized ports by Name.
Regards,
Munit
12-15-2002 10:59 PM
Munit,
In Native IOS for the 6500's and 7600's there is a Macro concept which will allow you to referrence ports by name when in configuration mode. no show commands nor referrences in your access-lists. This is an example of creating a macro "accounting" and using it to shut all ports within it down.
router(config)#define interface-range accounting fastEthernet 6/1 - 48
router(config)#interface range macro accounting
router(config-if)#shutdown
Hope this is what you were looking for,
Don
12-16-2002 12:23 AM
Hi Don,
Thanx for replying me ,I am still not clear abt what you mentioned.See what my problem is when we make an extended access lists we can define source and destination ports.there is standard list of ports there to be used in access list that we can use by number or name.If we want to customize the port according to our default application we can add that port by number only.Is there a way to refer those ports by names in my access list.and can we add these customized TCP/UDP ports in the default list which is displayed, so that we can refer it when ever we like in our access-lists by name.
Example:
access-list 100 permit tcp any any eq Nortonvirus
Here Nortonvirus keyword should refer to the port 5000. and this name and port mapping should get added to the default list so that i can refer later.here I am assuming nortons application is using port number 5000.
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