Monday, February 22, 2010

Cisco Regular Expression

Below is the important table need to be noted for regular expression in Cisco.
Use \ (backslash) to match the character as is.

source: here

Character Special Meaning

period

.

Matches any single character, including white space.

asterisk

*

Matches 0 or more sequences of the pattern.

plus sign

+

Matches 1 or more sequences of the pattern.

question mark

?

Matches 0 or 1 occurrences of the pattern.

caret

^

Matches the beginning of the input string.

dollar sign

$

Matches the end of the input string.

underscore

_

Matches a comma (,), left brace ({), right brace (}), left parenthesis, right parenthesis, the beginning of the input string, the end of the input string, or a space.

brackets

[]

Designates a range of single-character patterns.

hyphen

-

Separates the end points of a range.

Wednesday, February 3, 2010

Redistribution problem

1. Examine if there is a filter applied to the interface that could prevent the distribution
2. The route may be non installed because of there is another route wit better metric

Tuesday, February 2, 2010

Debug: Authentication Error

*Mar 1 01:20:49.775: %TCP-6-BADAUTH: No MD5 digest from 192.10.1.254(179) to 192.10.1.10(21793) (RST)

The message above is generated on TCP port 179.
From there, we can guess of who generated this message.

Tuesday, January 19, 2010

OSPF interception

To avoid interception on a segment between two OSPF nodes, do the following:
- configure the ospf intrface as nonbroadcast
- configure the nodes to be neighbor each other

To verify the settings:
# show ip ospf interface interface
# debug ip ospf hello

OSPF priorty 0

An OSPF router with 0 priority will never be a BDR or DR.
Furthermore, giving 0 priority to an OSPF router will remove the DR/BDR status from it immediately and will trigger a new election.

Wednesday, January 13, 2010

CCIE written passed

After several times postponing to take the exam, I finally decided to take the exam on 11 Jan 2009 and passed it.

I know that passing the written exam doesn't mean anything except that now I can register for the lab exam. However, considering my hard work to prepare this exam, I should celebrate this achievement :D

Now it's the time to read the blueprint for the lab and learn harder on the lab exam preparation.


Wednesday, November 11, 2009

import CSV into mysql

LOAD DATA LOCAL INFILE '/importfile.csv'
INTO TABLE test_table
FIELDS TERMINATED BY ','