Sunday, October 5, 2008
Passed MPLS and BGP
On to BSCI. I am not really in a hurry to do the exam - I am planning on doing enough routing, IPv6 and Multicast study for the BSCI so that I am at CCIE written level. Once I have done that I'll do the exam then move on to studying the rest of the CCIE written.
Saturday, September 20, 2008
Post exam
The scores at the end of the exam were really useless as far as re-focussing my study. The sections on it were:
- Technology
- Basic Implementation and Configuration
- Advanced configuration
It might as well have said theory, easy questions and hard questions.
Would have been nice if they split it up into maybe a few of the MPLS technologies, a few of the BGP topology types and then a catch all for the rest of BGP and MPLS.
Thursday, September 18, 2008
BGP and MPLS exam
The things I KNOW I need to remember for the exam are:
- You need to be able to route to the IP address used for the router-id by LDP in order for an LDP session to establish (I keep reminding myself and forgetting when I lab something up)
- The different VPN types and overlay, peer-to-peer, extranet etc.
- BGP route selection process (really happy I know my stuff for this)
- Configuring VRFs and using multiple route-targets to allow overlapping and other types of VPNs.
- Using OSPF between the CE and PE routers (sham links are something I spent a while playing with on dynamips)
- Confederations, Route reflectors and how they impact BGP advertisements.
- BGP attributes and how to change them and what they REALLY do
- Multi-protocol BGP - address-family vpnv4 and address-family ipv4 vrf and what to put under each
I am sure there will be some general MPLS and LDP type questions (ie what tag would router x use to forward a packet, how does the icmp packet too big get delivered, how does LDP find neighbors etc). I am pretty happy I have that sorted.
I'd have to say once I had done an initial read of a few books I got the biggest value from using dynagen / GNS3 labbing things up and using wireshark to look at packets. I really understood HOW LDP worked once I saw the packets. The book didn't really say why LDP used a UDP stream and a TCP stream. After seeing it the UDP stream is just for hello packets and finding a neighbor via multicast. The TCP stream is for advertising labels (using the LDP router-ids for the source and destination). Why couldn't the Fundamentals book just say that?
The other thing I am always slipping up on is BGP neighbor establishment. I have a habit of mistyping IP addresses, mistyping AS numbers or forgetting eBGP multihop. I tend to struggle for a while and turn on debug ip bgp and then just recheck my configurations. I keep forgetting how powerful the show ip bgp neighbors command is.
Monday, August 25, 2008
Visio Icons
http://www.cisco.com/web/about/ac50/ac47/2.html
Tuesday, August 12, 2008
Re-focussing study
So it's back to the books looking at snippets of information like - unicast flooding being caused by asymmetric routing or flapping links and STP TCNs.
Tuesday, August 5, 2008
Baby Giants and Jumbo Frames
- Baby Giants have an MTU of up to 1600 bytes. Jumbo frames can be over 9000 bytes (the exact size depends on the switch platform and possibly IOS).
- Some Cisco switches and routers don't support baby giants or jumbo frames, usually because of ASIC limitations.
- If you just want baby giants so that you can put a single MPLS tag on a frame you can try changing the interface to use 802.1q trunking and then place your MPLS traffic in the native VLAN. This changes the MTU to 1504 (so it fits one tag) and is supported on most switches.
- The interface counters will count the baby giant or jumbo frame as being over-sized even if the interface can support it - this is cosmetic.
- Some devices allow you to set a separate MTU for 10/100 and Gigabit interfaces. One of these is the 3750. For the 10/100 interfaces you use the system mtu number command. For the Gig interfaces you use the system mtu jumbo number command. If you set the system mtu but not the system mtu jumbo then the Gig interfaces use the system mtu. The reason for the two commands is that the 10/100 interfaces only support a lower MTU than the Gig interfaces. Other than trying the commands or looking up on the Web there does not seem to be a way to find out what the maximum acceptable sizes are.
Sunday, August 3, 2008
CCIP MPLS and BGP combo exam
I'm half thinking i should book the combo exam for two weeks time to put a little pressure on myself (I'm easily distracted at the moment). Looking at the BGP exam outline I keep thinking how hard could it really be... and then I remember how hard it really can be.
Back to the books.
BGP Prefix-based outbound route filtering
BGP prefix-based outbound route filtering is one of those. If you only want to keep some of the routes from your neighbor this capability allows you to advertise the prefix list you are using to that neighbor. The neighbor then uses the prefix-list to filter the routes BEFORE it advertises them to you. This can significantly reduce the bandwidth and time taken to synchronise routes between two neighbors. The critical command is:
neighbor address capability prefixlist-orf [send | receive | both]
Once you have enterred that command (in the receive or both directions) if you enable a prefix-list to filter incoming routes your router will send the prefix list to your neighbor so that it can filter the routes for you.
The command has been around for a while (I stumbled on it when I was looking for something else and it was available in 12.2T). Some documentation is available in BGP Prefix-Based Outbound Route Filtering 12.2T
Friday, August 1, 2008
VTP (again)
The moral of the story - either manually configure which VLANs to forward on the trunk towards your routers OR enable VTP on the router, use VLAN interfaces and put the physical interface in switching mode.
Wednesday, July 30, 2008
FTP URLs including username and password
ftp://username:password@hostname/
That syntax is a standard and works in most web browsers, the Cisco CLI and others.
Tuesday, July 29, 2008
Variables in banners
I thought it would be handy to use those tokens in the name of the file for the archive command.... unfortunately it doesn't work. If you use:
archive
log config
hidekeys
path tftp://192.168.1.1/$(hostname)
write-memory
time-period 86400
All you end up with is a file called $(hostname)-0 on your tftp server. Hopefully it will be there in a future release.
Sunday, July 27, 2008
MPLS Fundamentals
Even after all of that I'd have to say I don't regret getting the book. It did cover most of the topics that are in the CCIP MPLS outline to a reasonable depth and covered a few extras that are useful. There were a few chapters that I could have skipped - but I read them anyway because the CCIP MPLS outline and the associated course differ so you can't be too sure what really is going to be on the exam. My recommendation would be to read the MPLS Fundamentals book cover to cover before you start writing notes. Then start again from page 1.
There is still a bit of a gap betweeen the book and the exam outline, so I am going to do a little more reading (not sure if I will grab another book or hit the DocCD and Cisco site). Either way I think I have about two weeks before I'll hit the exam - I'd like a week of solid GNS3 work at night as well as a while to go through my notes and flesh out the bits that the Fundamentals book didn't cover.
Friday, July 25, 2008
MPLS QoS
Saturday, July 19, 2008
MPLS TE
Friday, July 18, 2008
Using screen to view another ssh session
To attach to a screen session that is already running use screen -x
SSH port forwarding
ssh -R server:2222:localhost:22 username@server
What it is saying is redirect port 2222 on the server named server to port 22 on the localhost. The username@server is used to initiate the remote connection to the server that you want to do the redirection for. So to connect to your host the other party needs to ssh to the server and then ssh to localhost on that server using port 2222.
If you want to set up the port redirection from the server end you can use a -P instead of a -R.
Filter based on AS-path length
show ip bgp regexp ^[0-9]*_?[0-9]*$
I am sure some guru can write it much more consicely than that. Logically reading left to right it says start at the beginning of the AS path, then accept any set of numerals as an AS, then accept zero or one commas or spaces, then accept any set of numerals as an AS then match with the end of the AS path.
BGP neighbors and the remove-private-as command
ie.
R1(AS 123) -> R2 (AS65000) -> R3 (AS 456)
On the final router (R3) you want to peer with another router with a public AS number and you want to remove the private AS from all routes.
I've tinkered around and can't find a way to do it. If you configure BGP on R3 similar to this:
router bgp 456
neighbor R4 remote-as 789
neighbor R4 remove-private-as
The prefixes from router R2 are advertised to R4 with an AS path of 456. The prefixes from router R1 are still advertised with an AS path of 456 65000 123. The reason for this is that the remove-private-as command sees the AS path as already having both public and private AS numbers and considers it a configuration error. Therefore it does not remove the private AS number.
Tuesday, July 15, 2008
MPLS VPN
I'm planning on ramping up my study for the next two weeks so that I can polish off the exam late this month or very early next month. I'm already starting to look for a good BGP text. At the moment I think I am going to stick with Routing TCP/IP volume 2 plus a generous helping of the DocCD. Word from Cisco is that they are going to make more of the configuration guides into full book pdfs. I hope it happens before the end of the month (nothing annoys me more than having to download 8 or 9 PDFs to work offline with for one protocol).
ACL Object Groups
Friday, July 11, 2008
CEF and recursive routes
In another part of my brain (that wasn't talking to the don't ever use recursive routing part) I knew that CEF cached forwarding tables and layer 2 details so that packets could be forwarded quickly.
It was only today that I realised that the tables CEF uses actually uses the REAL next hop (the one that you get when you recurse through all the routes). This means that the router theoretically only has to recurse through all the routes ONCE - at the time it builds the initial CEF tables.
So - recursive routing is not so bad after all
Wednesday, July 9, 2008
CDP, VTP and Spanning-tree
If you are getting duplex mismatches reported by CDP when there really isn't one you can use no cdp advertise-v2 on the link to turn that detection off. You may get that reported if you have the following layout:
cisco device (full duplex) -> non-cisco switch -> cisco device (half duplex)
Most commonly either the half-duplex device will be an ATA that only supports half-duplex OR you may have a non-cisco wireless device at one end that only supports half-duplex on the ethernet on one side and another non-cisco wireless device at the other end that does support full-duplex.
All that you lose with that CDP command is duplex mismatch detection, VTP domain advertisement and native vlan detection.
The other thing is a bit about spanning-tree and VTP. I'd always noticed that in companies with large numbers of VLANs most devices have been in VTP transparent mode. I assumed it was so that adding a switch with a higher VTP revision number would not nuke the VLAN database. There may be another good reason. Each vlan in the vlan database will have an STP instance. Not an issue for MST, but for PVST it is a big issue. You have higher memory requirements and you may exhaust the number of STP instances your switch can run.
VTP pruning does not help - it only reduces the number of VLANs that run over a trunk (verified by using show int trunk to see which vlans are allowed on the trunks and not pruned and then using show spanning-tree summary to verify which vlans have a spanning-tree instance).
Manually reducing the vlans running on a link using switchport trunk vlan allow does reduce the spanning-tree instances (you need to limit it on all trunk links on the switch you want to reduce spanning-tree instances on). The command must be used on the switch that you want to reduce spanning-tree instances for, using it on the switch at the other end of the link does not help (it only stops the VLAN traffic at that switches port, it doesn't stop the other one from sending traffic before it gets discarded).
The only other ways to reduce the STP instances reliably is to either turn spanning-tree off for some of the VLANs (not advisable), run MST or use VTP transparent and manually add the VLANs required on each of your switches as needed.
Updated: verified in Dynamips using a 3745 with a 16 port switch module and running 12.3-8.T5
Friday, July 4, 2008
More MPLS
This week at work (first week in a new job) has been interesting. My brief for the week was to just "poke around" and see if I can find any issues in the network. I've cleaned up the world's worst Visio diagram (who in the world creates a text label for a router out of about 10 or 15 different text fields (one for each octet of the IP address, one for each of the dots, and one for each part of the router name). I've also spotted a wole heap of other issues. Spanning tree and VTP are a big issue - too many VLANs (more than the number of spanning-tree instances supported on most of the switches) and more than the number of VLANs that some of the switches support. It also appears that VTP pruning doesn't work as promised (most places I have worked haven't had that many VLANs, or have used transparent mode, so I haven't seen that before).
We've also been looking at using 31-bit masks on some of the links rather than the /30 masks we are currently using. Since we have a whole heap of those links it will make a considerable saving in the address space.
Well - it's off to do some GNS3 work on MPLS.
Sunday, June 29, 2008
Starting on MPLS
I've started my study for the CCIP MPLS exam. There's a lot of conflicting reports on which books to use if you are self studying. I've read a few that say to avoid the Sybex MPLS book. It's a bit disappointing - I've found them to be good in the past. Instead I have decided to go through the Cisco Press MPLS Fundamentals. After that I'll take a look through the MPLS and VPN Architectures books to clear up anything that the Fundamentals book misses. If there's still some holes I guess it is off to the documentation CD. I guess I will probably skim through some MPLS sections on the DocCD - I got caught last time I did my CCIE Written and now I'm a little gun shy on doing an exam based on just one or two books.
So far I'm about 10% of the way through noting the Fundamentals book.
Friday, June 20, 2008
Still sidetracked
I'm a little surprised at the content of the jncia-ex study guide. I would have thought there would be a whole lot on VLANs and other layer 2. Instead it seems to do broad brushstrokes over everything (switching, routing and firewalling). My 2 cents says that Juniper will launch a certification similar to the Cisco CCNP. It just makes sense that Juniper should have certifications that directly compete with Cisco's.
Thursday, June 12, 2008
Distractions
I'm hoping to polish off the Juniper exam very soon (I've half finished noting the study materials and I'm waiting on the Exam Voucher), but can't find a testing spot until early July. Once that's sorted I am planning on studying hard and fast for the MPLS exam from the CCIP. I may follow that up with the BGP exam from the CCIP. Both are going to be very important in my new job.
Unfortunately both will set my study for the CCIE written back some way - at least the MPLS is partially relevant to the written.