Thursday, June 4, 2009

Show port number

I feel like I am learning a new command each day I am studying for my CCNP certification.

Today, I learned about show ip port-map

Hint: If you don’t know the UDP port number for mySQL, use the show ip portmap
command.

R2_2611XM#sh ip port-map ms-?
ms-cluster-net ms-dotnetster ms-sna ms-sql
ms-sql-m

R2_2611XM#sh ip port-map ms-sql
Default mapping: ms-sql tcp port 1433 system defined

Administrative distance of the default gateway

I just learn something I never check.

The administrative distance of the default gateway obtained through DHCP is
254, which is just 255 (Unreachable) – 1.

R3_CME_2801#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 172.16.23.2 to network 0.0.0.0

172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
S 172.16.23.2/32 [254/0] via 172.16.23.2, FastEthernet0/0
C 172.16.23.0/24 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 [254/0] via 172.16.23.2
R3_CME_2801#


The default administrative distance of the default gateway with ip route is 1

R1_2610XM(config)#ip route 0.0.0.0 0.0.0.0 172.16.12.2
R1_2610XM(config)#^Z
R1_2610XM#sh i pr
*Mar 1 17:17:12.909: %SYS-5-CONFIG_I: Configured from console by console
R1_2610XM#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 172.16.12.2 to network 0.0.0.0

172.16.0.0/24 is subnetted, 4 subnets
D 172.16.23.0 [90/2172416] via 172.16.12.2, 00:28:02, Serial0/0.2
C 172.16.12.0 is directly connected, Serial0/0.2
C 172.16.1.0 is directly connected, Loopback1
D 172.16.2.0 [90/2297856] via 172.16.12.2, 00:28:02, Serial0/0.2
S* 0.0.0.0/0 [1/0] via 172.16.12.2