ONT Preparation

BGP regular expressions

Hello,

Here is an article to remain or learn each metacharacter feature in ip as-path command.

. Any single character, including white space.
[] Any character listed between the brackets.
[^] Any character except those listed between the brackets. (The caret is placed before the sequence of literals.)
- (Hyphen) Any character in the range between the two literals separated by the hyphen.
? Zero or one instances of the character or pattern.
* Zero or more instances of the character or pattern.
+ One or more instances of the character or pattern.
^ Start of a line.
$ End of a line.
| Either of the literals separated by the metacharacter.
_ (Underscore) A comma, the beginning of the line, the end of the line, or a space.

Link on Cisco Documentation

HTH ;)

How to configure SDM with Dynamips

Hello gears,

I installed SDM engine today in order to prepare myself for ISCW test.

I searched the web about howto’s but I never found what I needed. Hope that tutorial can help someone else.

Steps :

  • Configure an ip address on a router interface and enable it. This interface must be fast/ethernet type.
    • Ex :
    • Router#conf t
    • Router(config)#ip http secure-server (Some keys should be generated…)
    • Router(config)#interface fastethernet0/0
    • Router(config-int)#ip address 172.16.0.2
    • Router(config-int)#duplex full
    • Router(config-int)#no shut
  • Install a loopback adaptater on your pc : You can follow the following article for this Link.
  • Run the “Network device list” batch from Dynamips folder and gather the hardware reference for your network adaptater.
  • Edit you .net file and add the following statement
    • F0/0 = NIO_gen_eth:DeviceNPF_{ ** your nic reference **}
  • Modify the new Windows network connection and assign it a static ip address such as 172.16.0.1/24.
  • Run your .net file and try to ping from both sides : Router->PC and PC->Router
  • Install SDM engine on your PC. I’m currently using the version 2.4.1. You may need to allow activex, you can trust them.
  • Use the ip address you defined on the router and enter it into SDM. 172.16.0.2 in our case.
  • You will be prompted for a username and a password. You have to define it into router configuration. Below is an example.
    • Router(config)#usernmame sdm priv 15 password sdmlab

Cheers and Enjoy ! ;)

BGP Attributes

Hello,

I just found this mnemonic for those who have difficulties to remember Bgp attributes sequence ;)

“We Love Oranges AS Oranges Mean Pure Refreshment”

W Weight (Highest)
L Local_Pref (Highest)
O Originate (local originate)
AS As_Path (shortest)
O Origin Code (IGP < EGP < Incomplete)
M MED (lowest)
P Paths (External Paths preferred Over Internal)
R Router ID (lowest)