Friday, February 26, 2010

Advertise maps in BGP

A recent discussion on groupstudy pushed me into labbing BGP again.
In BGP, Advertise maps are used for two functions;
1. Conditional Advertisement
2. Route aggregation.

In conditional advertisement, Advertise maps are with an EXIST-MAP (or NON-EXIST map) to perform conditonal advertisement. Here the advertise-map specifies a route-map that matches the prefixes that would be advertised ONLY if the prefixes in the EXIST-MAP exist in the routing table.

The syntax is "neighbor ip-address advertise-map map-name {exist-map|non-exist} map-name"

The other use of advertise-maps is in specifying what attribute would be carried along in the as-set attributes of an aggregate during summarization.

Assume we have R1, R2,R3 and R4 in AS 1, 2,3 and 4 respectively
R1 -- R4 --- R3
|
R2

R1, R2, and R3 advertise 150.1.x.0/24 into bgp where x is the router number.

R4 aggregates the routes to 150.1..0.0/16 with as-set attribute.
By default, none of the routers get the update anymore since their
individual routes are a part of the summary.

Using advertise map, we want to make R1 and R3 get the summary; so we only advertise the attributes of the prefix form R2 with the summary.

Using as path access-lists and route-maps on R4 we have,

ip as-path access-list 1 permit ^2$
route-map adv permit 10
match as-path 1

router bgp 4
aggregate-address 150.1.0.0 255.255.0.0 as-set summary-only advertise-map adv

Now, R1 and R3 get the summary, R2 doesn't because its AS number is carried along with the summary

R1(config-router)#do sh ip bg | i 150.1.0.0
*> 150.1.0.0 192.168.1.4 0 0 4 2 i

R2(config-router)#do sh ip bg | i 150.1.0.0
R2(config-router)#

Ok. That's it for now. Back to security :-) I was trying to look into NAC with the CTA and CSA. Fun stuff :D

Cheers,
Amplebrain

Friday, February 5, 2010

Death of Dynamips...or NOT?

Hi All,

Cisco has introduces software licensing with the IOS 15.0
My first reaction was to mourn the exiit of my faithful friend...DYNAMIPS.

But on a closer look, the IOS licensing DOES NOT directly affect dynamips.

"Cisco Software Activation is a simplified approach to software deployment and management, and is implemented on Cisco Catalyst 3750-E and 3560-E Switches and Cisco Integrated Services Routers Generation 2"

http://www.cisco.biz/en/US/products/ps9677/products_ios_technology_home.html

Dynamips CANNOT emulate the devices with licenses yet.

The Licensing hasn't been implemented on the 7200s yet so we can still run the 15.0 on the 7200 routers.

Thanks to Ivan of "Cisco IOS Hints and Tricks" for pointing this out.

http://blog.ioshints.info/2010/02/death-of-dynamips-theyve-got-it-all.html#more

I guess we can still have fun studying afterall :-)

Tuesday, February 2, 2010

Creating a Loopback Adapter on Windows 7

The Microsoft Loopback Adapter is a very useful tool for setting up networks with dynamips/gns3 when you need to connect the emulated network to the life system.
Instances include; setting up a terminal Server, connecting to a AAA server, using a VPN Client etc.


With Windows XP/Vista, creating a Loopback Adapter is Pretty Easy;

1. Go to control Panel
2. Click Add Hardware
3. Select Install Hardware from list,
4. Select Network Adapters
5. Select Microsoft as the Manufacturer
6. Select Microsoft loopback Adapter
7. Click Next and Install...
With Windows 7, there is a slight problem; "Add Hardware" is no longer in the Control Panel.
It is now a hidden feature that has to be run by an adminstrator from command prompt.

To get to the Add Hardware program;

1. Run command prompt as Administrator.
2. From command prompt, Run "hdwwiz.exe"

To install the Loopback Adapter, Follow steps 3 through 7 above.

Have fun studying.
Cheers!
Amplebrain.

Saturday, January 30, 2010

Cisco Mobile Lab in Nigeria

The CCIE Mobile Lab would be in Nigeria between June 14 and 18. There are 6 R&S slots and a security slot per day.
I hope I would be ready for my security lab by then :-)
More info can be found here.

It's time to quit playing around and get into hardcore studying. This is barely 4 months away.

Wish you all the best with your studies. CCIE Security - here I come!

Amplebrain

Monday, January 25, 2010

Cisco Updates CCNP and introduces new Service Operations Track

Hi All,

Today, Cisco announced a big change in the Certifications path.
The CCNP has been entirely revised. There are now 3 exams;
Route - Replaces the BSCI
Switch - Replaces BCMSN
TShoot - Brings back troubleshooting into the game.

All exams would be 120mins long and cost $200
While the BSCI and BCMSN exams are stil a valid for 3 years, the ISCW and ONT are only valid (count towards the completion of your CCNP) till end of July.

The Tshoot exam would a hands-on exam - barely 10% theory.
The exam focuses more on Routing and Switching and is a lot deeper. IPV6 also has its fair share on the exam.

Finally, My favorite Authors get to write the Cisco Press Cert guide: Wendell Odom, David Hucaby and Kevin Wallace

The SP Operations track focuses on IP Carrier Ethernet NGN Networks. The SP Operations is a full track with Associate, Professional and Expert level Exams. Yes, anothe CCIE. Oh Damn Cisco! More info on the Cisco Learning Network.

Right now, It's tiime to focus on getting the CCIE Security before I am old enough to rent a car.

Study hard, Learn stuff and most importantly, have fun!

Cheers,

Amplebrain.

Monday, January 11, 2010

ASA Transparent mode NAT

The ASA transparent mode acts as a bump in the wire (Placed in the layer 2 path of the traffic). There is no interface IP addressing with transparent mode. The ASA can be assigned an IP address for remote management and testing. In the transparent mode, there are still access rules and inspection rules. There are a few exceptions though. For instance, ARP and BPDU is allowed from lower security level interfaces by default.

With the ASA 7.x code and lower, the ASA did not support address translation in transparent mode. In fact, the 'nat' and 'global' commands were disabled. The static command was available but the real and translated addresses must be the same. IMO, the command was enabled so that the static options can be used. An example would be the 'norandomseq' keyword that is used in BGP authentication.

With the ASA code 8.x code, there is now support for NAT in transparent mode.
The NAT implementation has a few caveats:
1. The alias command is NOT supported.
2. Since there is no interface address, interface PAT is not allowed.
3. Arp Inspection is not allowed
4. Since the inside and outside interfaces are on the same 'subnet', if any of the addresses (real or translated) is NOT on the subnet, then static routes have to be used to point to the address so that routing can take place. This is from the configuration guide:

"When the mapped addresses are not on the same network as the transparent firewall, then on the upstream router, you need to add a static route for the mapped addresses that points to the downstream router (through the security appliance)

If the real destination address is not directly-connected to the security appliance, then you also need to add a static route on the security appliance for the real destination address that points to the downstream router. Without NAT, traffic from the upstream router to the downstream router does not need any routes on the security appliance because it uses the MAC address table. NAT, however, causes the security appliance to use a route lookup instead of a MAC address lookup, so it needs a static route to the downstream router."

With the Routing fixed, NAT with the ASA transparent mode should not be too different from the regular routed mode NAT.

Further Reading:
ASA Configuration Guide: NAT in Transparent mode
Amplebrain

Thursday, December 31, 2009

Goodbye '09

Hi Everyone,

As the year winds up, I figured I'ld steal a quick post - the very last one for 2009.

2009 was a quite a phenomenal one - You'ld probably be in 2010 by the time you are reading this ;)

Highlights of the year include; GEM (Global Economic Meltdown), Graduation from the University, Passing the CCIE R&S lab, Serving my country, Starting this blog and a whole lot of other events.

Looking back at the year, there is a lot to be happy about and I am immensely grateful to God and everyone that made the year a special one. Thank you to family, friends, peers, colleagues and everyone.

Wish you all a great new year. Its about 90mins away from here. Let the fireworks begin :-)

Cheers,

Amplebrain.