various

Memory tips


Remembering all the services, protocols and ports can be quite hard. I prefer to know where the information is instead of memorizing many numbers.

These are some tips to remember port numbers:

R#sh ip nbar port-map 
port-map bgp udp 179
port-map bgp tcp 179
port-map bittorrent tcp 6881 6882 6883 6884 6885 6886 6887 6888 6889
port-map citrix udp 1604
port-map citrix tcp 1494
port-map cuseeme udp 7648 7649 24032
port-map cuseeme tcp 7648 7649
port-map dhcp udp 67 68
port-map directconnect tcp 411 412 413
< output cut >


and

R#sh ip port-map 
Default mapping: snmp udp port 161 system defined
Default mapping: echo tcp port 7 system defined
Default mapping: echo udp port 7 system defined
Default mapping: telnet tcp port 23 system defined
Default mapping: wins tcp port 1512 system defined
Default mapping: n2h2server tcp port 9285 system defined
Default mapping: n2h2server udp port 9285 system defined
Default mapping: nntp tcp port 119 system defined
Default mapping: pptp tcp port 1723 system defined
Default mapping: rtsp tcp port 554,8554 system defined
< output cut >



DSCP values can be hard to remember but IOS helps us:

R(config)#class-map DSCP
R(config-cmap)#match dscp ?
<0-63> Differentiated services codepoint value
af11 Match packets with AF11 dscp (001010)
af12 Match packets with AF12 dscp (001100)
af13 Match packets with AF13 dscp (001110)
af21 Match packets with AF21 dscp (010010)
af22 Match packets with AF22 dscp (010100)
af23 Match packets with AF23 dscp (010110)
af31 Match packets with AF31 dscp (011010)
af32 Match packets with AF32 dscp (011100)
af33 Match packets with AF33 dscp (011110)
af41 Match packets with AF41 dscp (100010)
af42 Match packets with AF42 dscp (100100)
af43 Match packets with AF43 dscp (100110)
cs1 Match packets with CS1(precedence 1) dscp (001000)
cs2 Match packets with CS2(precedence 2) dscp (010000)
cs3 Match packets with CS3(precedence 3) dscp (011000)
cs4 Match packets with CS4(precedence 4) dscp (100000)
cs5 Match packets with CS5(precedence 5) dscp (101000)
cs6 Match packets with CS6(precedence 6) dscp (110000)
cs7 Match packets with CS7(precedence 7) dscp (111000)
default Match packets with default dscp (000000)
ef Match packets with EF dscp (101110)



What about ethertype codes? They're used for MAC ACL. We can find the codes on the Doc-CD under "Cisco IOS IBM Networking Command Reference".
This is the direct LINK.


Other useful informations are on Cisco ASA Configuration guide, in "Reference" section, under "Addresses, Protocols and Ports", link HERE.
We can find ICMP types, IP protocol numbers and IPv6 address types.


If you need some help with REGEXP, under "Cisco IOS Terminal Services Configuration Guide" there's a "Regular Expression" appendix with all the characters supported by IOS, with some examples too.



Do you know other useful tips? Send me a message and I'll update the blog. Thanks.




CONTENT

WHERE

DIRECT LINK
REGEXP

Cisco IOS Terminal Services Configuration Guide --> Appendixes --> Regular Expression

link

PORT NUMBERS

sh ip nbar port-map OR sh ip port-map


DSCP CODES

class-map DSCP
R(config-cmap)#match dscp ?


ETHERTYPE CODES

Cisco IOS IBM Networking Command Reference --> Appendix: Ethernet Type Codes

link

IPv4 PROTOCOL NUMBERS, IPv6 ADDRESSES, ICMP TYPES

Cisco ASA 5500 Series Configuration Guide --> reference --> Addresses, Protocols and Ports

link