Wednesday, August 12, 2009

IP POLICY

It is important to remember that Ip policy apply to the ARRIVING interface.



http://www.cisco.com/en/US/docs/ios/12_0/qos/configuration/guide/qcpolicy.html
Enable PBR
To enable PBR, you must create a route map that specifies the match criteria and the resulting action if all of the match clauses are met. Then you must enable PBR for that route map on a particular interface. All packets arriving on the specified interface matching the match clauses will be subject to PBR.

Monday, August 3, 2009

BGP - difference between local preference and weight attribute

The major difference between the Weight and LOCAL_PREF attributes is that when the LOCAL_PREF attribute is changed, that change is reflected throughout the AS. The new LOCAL_PREF value will be advertised to all other routers in the AS, as compared to the Weight attribute, which is locally significant only.

Friday, July 10, 2009

OSPF troubleshooting - No route update

R1 and R3 form a neighbor relationship but they are not exchanging route.

R3_CME_2801#sh ip ospf nei

Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 1 FULL/BDR 00:01:41 172.31.77.1 Serial0/3/0
R3_CME_2801#sh ip route ospf

R3_CME_2801#

What is the problem?

Solution: Mismatch in IP OSPF network type -

- make sure you have the same network type on both routers

Sh ip ospf int s0/3/0

- correct the mismatch network
conf t
int s0/3/0
ip ospf network point-to-point





R3_CME_2801#sh ip ospf nei

Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 1 FULL/BDR 00:01:41 172.31.77.1 Serial0/3/0
R3_CME_2801#sh ip route ospf

R3_CME_2801#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3_CME_2801(config)#int s0/3/0
R3_CME_2801(config-if)#ip ospf net
R3_CME_2801(config-if)#ip ospf network point-to-multipoint
R3_CME_2801(config-if)#
*Jul 10 16:07:56.321: %OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on Serial0/3/0 from FULL to DOWN, Neighbor Down: Interface down or detached
*Jul 10 16:07:56.569: %OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on Serial0/3/0 from LOADING to FULL, Loading Done
R3_CME_2801(config-if)#do sh ip ospf nei

Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 0 FULL/ - 00:01:57 172.31.77.1 Serial0/3/0
R3_CME_2801(config-if)#do sh ip route ospf
172.31.0.0/16 is variably subnetted, 3 subnets, 2 masks
O 172.31.77.2/32 [110/128] via 172.31.77.1, 00:00:27, Serial0/3/0
O 172.31.77.1/32 [110/64] via 172.31.77.1, 00:00:27, Serial0/3/0
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O 10.254.0.0/24 [110/74] via 172.31.77.1, 00:00:27, Serial0/3/0
R3_CME_2801(config-if)#

Tuesday, July 7, 2009

How to check the ISIS router level-type

The command to check the level-type of an ISIS router is :

sh clns protocol.

You can also check the interface isis level by typing

show clns int s0/1


Ex. I configure router 2 to the default level-1-2
and setup the internal router R6 for level-1 only

R2_2611XM#sh clns pro

IS-IS Router:
System Id: 2222.2222.2222.00 IS-Type: level-1-2
Manual area address(es):
49.0071
Routing for area address(es):
49.0071
Interfaces supported by IS-IS:
Serial0/1 - IP
FastEthernet0/0 - IP
Loopback2 - IP
Redistribute:
static (on by default)
Distance for L2 CLNS routes: 110
RRR level: none
Generate narrow metrics: level-1-2
Accept narrow metrics: level-1-2
Generate wide metrics: none
Accept wide metrics: none



R6_3640#sh clns pro

IS-IS Router:
System Id: 6666.6666.6666.00 IS-Type: level-1
Manual area address(es):
49.0072
Routing for area address(es):
49.0072
Interfaces supported by IS-IS:
Ethernet0/1 - IP
Ethernet0/0 - IP
Loopback6 - IP
Redistribute:
static (on by default)
Distance for L2 CLNS routes: 110
RRR level: none
Generate narrow metrics: level-1-2
Accept narrow metrics: level-1-2
Generate wide metrics: none
Accept wide metrics: none
Serial0/1 is up, line protocol is up
Checksums enabled, MTU 1500, Encapsulation HDLC
ERPDUs enabled, min. interval 10 msec.
CLNS fast switching enabled
CLNS SSE switching disabled
DEC compatibility mode OFF for this interface
Next ESH/ISH in 42 seconds
Routing Protocol: IS-IS
Circuit Type: level-1-2
Interface number 0x2, local circuit ID 0x100
Neighbor System-ID: R3_CME_2801
Level-1 Metric: 10, Priority: 64, Circuit ID: R3_CME_2801.00
Level-1 IPv6 Metric: 10
Number of active level-1 adjacencies: 0
Level-2 Metric: 10, Priority: 64, Circuit ID: R3_CME_2801.00
Level-2 IPv6 Metric: 10
Number of active level-2 adjacencies: 1
Next IS-IS Hello in 673 milliseconds
if state UP

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

Thursday, May 28, 2009

How to release and Renew DHCP address with cisco router

Whaooo, it is so easy to release and renew dhcp with cisco router.

To release :

R2_2611XM#release dhcp fa0/0


to renew :

R2_2611XM#renew dhcp fa0/0

Source:
http://www.cisco.com/en/US/docs/ios/12_3t/12_3t4/feature/guide/gtdhcprr.html