Pete's Packet

Limitless

Archive for June, 2009

Day 90 notes Eigrp lab

Posted by Peter Kurdziel on June 15, 2009

EIGRP notes

  1. ip summary-address – liek RIP it summerizes and supress the more specific routes.
  2. EIGRP stub is only needed on the remote router. When you type in EIGRP stub and do a show run you will see EIGRP stub connected summary (this is the default)
  3. To manipulate or favor one path over another you can change one of EIGRP’s default metrics, bandwidth or delay.
  4. Copy and pasting in the configs caused some ports to go errordisabled. Note to self to add recovery to the switches.
  5. Eigrp by default uses 50 % of the interface bandwidth.
  6. task: used 43% of the interface bandwidth but do no use the ip bandwidth command.
    • Solution:bw x .43 x2 = 1328
    • int s0/0
    • band1328
  7. Secure means add authentication
  8. Prevent EIGRP from sending multicast updates: neighbor x.x.x.x (sends unicast in RIP, OSFP and EIGRP) remember passive-int (stops hell0s) behaves diferently with EIGRP & OSPF

Posted in EIGRP, Routing & Switching Lab | Leave a Comment »

eigrp stub connected summary

Posted by Peter Kurdziel on June 15, 2009

router eigrp 1

network 10.0.0.0
eigrp stub = this will show up as eigrp stub connected summary when you do a show run.

http://www.cisco.com/en/US/docs/ios/iproute/configuration/guide/irp_cfg_eigrp_ps6350_TSD_Products_Configuration_Guide_Chapter.html#wp1055047

A router that is configured as a stub with the eigrp stub command shares connected and summary routing information with all neighbor routers by default. Four optional keywords can be used with the eigrp stub command to modify this behavior:

receive-only

connected

static

summary

This section provides configuration examples for all forms of the eigrp stub command. The eigrp stub command can be modified with several options, and these options can be used in any combination except for the receive-only keyword. The receive-only keyword will restrict the router from sharing any of its routes with any other router in that EIGRP autonomous system, and the receive-only keyword will not permit any other option to be specified because it prevents any type of route from being sent. The three other optional keywords (connected, static, and summary) can be used in any combination but cannot be used with the receive-only keyword. If any of these three keywords is used individually with the eigrp stub command, connected and summary routes will not be sent automatically.

The connected keyword will permit the EIGRP Stub Routing feature to send connected routes. If the connected routes are not covered by a network statement, it may be necessary to redistribute connected routes with the redistribute connected command under the EIGRP process. This option is enabled by default.

The static keyword will permit the EIGRP Stub Routing feature to send static routes. Without this option, EIGRP will not send any static routes, including internal static routes that normally would be automatically redistributed. It will still be necessary to redistribute static routes with the redistribute static command.

The summary keyword will permit the EIGRP Stub Routing feature to send summary routes. Summary routes can be created manually with the summary address command or automatically at a major network border router with the auto-summary command enabled. This option is enabled by default.

http://www.cisco.com/en/US/docs/ios/iproute/configuration/guide/irp_cfg_eigrp_ps6350_TSD_Products_Configuration_Guide_Chapter.html#wp1055047

Posted in Routing & Switching Lab | 1 Comment »

Free CCIE “Core Knowledge” Preparation Quizzer

Posted by Peter Kurdziel on June 15, 2009

Find it here: http://www.imakenews.com/ipexpert/e_article001395689.cfm?x=bfmNhjM,b9K7mjTq

Posted in Routing & Switching Lab | Leave a Comment »

Ospf lab notes

Posted by Peter Kurdziel on June 12, 2009

Working on OSPF. I think it’s going to be an OSPF weekend.

FYI my notes are not meant to make sense to anyone but me :) These are random notes, scriblings and stuff I missed.

  1. ppp authentication – CHAP passwords have to match. PAP passwords do not have to match. ie (glogblal) username R3 pass cisco & s0/0.1 ppp pap sent-username R1 password cisco13 – you can find more info in the doc cd > dial technologies
  2. tcl script = “tclsh foreach address {” ” 1.1.1.1″ “} { ping $address rep 3}” MINUS the quotes
  3. router should not see type 4/5 lsa’s = stub or nssa (use nssa where there is an ASBR)
  4. OSPF authentication you can turn it on under the process and configure under the interface or you can enable and config on the inerface.
  5. Use summary-address in ASBR
  6. Use area-range on ABR – say r4 wants to advertise a summary but it’s not an ABR – config on the ABR and it will advertise the summary.
  7. Use area X filter-list  IN to filter prefixes that are going into the area.
  8. To set a maximun number of routes to that can be redistributed use redistribute maximum-prefix 60
  9. Do not share any routes but maintain connectivity  – ip ospf database-filter all out

Posted in Routing & Switching Lab | Leave a Comment »

OSPF stub notes

Posted by Peter Kurdziel on June 12, 2009

Stub area’s block type 5 LSA’s making type 4 LSA’s unnecessary; these LSA’s are also blocked. ref: Routing TCP/IP vol I second editon, page 386.
Totally Stubby also block type 3 lsa’s.
NSSA – allows external routes to be advertised into OSPF while retaining the characteristics of a stub area.

ASBR’s are not allowed in stub area’s.  They are allowed in NSSA areas.
stub – blocks 4,5
stub no-summ blocks 3,4,5
nssa – blocks 4,5 – originates type 7 LSA’s to advertise to external destinations. An ABR will block type 7 LSA’s ( will not advertise outside of the area) UNLESS the the P-bit is set to 1 = nssa translate type7 – YOU NEED TO ADD default-info originate for a default route.
nssa no-sum = blocks 3,4,5

With a stub area, no external routes can be propagated into it. You could use a stub area, for example, for a branch office that has no connection other than to head office. In that case, you might make it totally stubby, that is, give it only a default route.

An NSSA is a bit like a stub as far as the internal OSPF topology is concerned, but it is allowed to connect to the outside world. In other words, it is allowed to have an ASBR border router. Imagine you had a branch office that had an external link, say, to the Internet. You could run that as an NSSA, but not as a stub.

allowed LSA’a
area type 1&2 3 4 5 7
Backdone -Area 0 Yes Yes Yes Yes No
Non-Backdone, non-stub Yes Yes Yes Yes No
Stub Yes Yes No No No
Totally Stubby Yes No*& No No No
Not so stubby Yes Yes No No Yes
*single type3 per ABR, advertising a default route.

More info on nssa translate type7
The following example causes OSPF to translate Type-7 LSAs from area 1 to Type-5 LSAs, but not place the Type-7 forwarding address into the Type-5 LSAs. OSPF places 0.0.0.0 as the forwarding address in the Type-5 LSAs.

router ospf 2
network 172.19.92.0 0.0.0.255 area 1
area 1 nssa translate type7 suppress-fa

Posted in OSPF, Routing & Switching Lab | 3 Comments »

Get IT Done: 10 ways to mitigate problems using Cisco IOS debug

Posted by Peter Kurdziel on June 12, 2009

http://articles.techrepublic.com.com/5100-10878_11-1053788.html

Get IT Done: 10 ways to mitigate problems using Cisco IOS debug

by David “Davis CCIE, MCSE+I, SCSA” | Jan 07, 2003 8:00:00 AM

We’ll start with number 10 and work our way up to the most useful debug command.

10. Debug all
By far, the most dangerous debug command is debug all. This command will most likely crash a production router. The Cisco IOS is nice enough to ask, “Are you sure?” before doing it. Only use this command if you are desperate, you know you are on a test router, and/or you are having trouble isolating the proper subcommand to debug. To satisfy your curiosity of what it looks like to run it, Listing C shows the output from executing the command and then issuing show debug to see what it turned on.

9. Debug with ISDN and dialer
Debugging is helpful when troubleshooting Cisco router dialup configurations. In my experience, these technologies rarely seem to work the first time. The best way to configure IOS dialup technologies (or any networking technologies) is layer by layer, testing each layer after configuring it. I try to think of a multilayer cake, where the icing is the successful testing of each OSI layer after each configuration. When something doesn’t work, debug is usually a must. Useful debug commands for ISDN and dialup networking appear below:

  • ·        debug isdn events debugs all ISDN events. Start with this one first before trying q921 or q931, as those are very verbose and events may tell you all you need to know.
  • ·        debug isdn q921 is Layer 2.
  • ·        debug isdn q931 is Layer 3.
  • ·        debug dialer events will tell you about the calls (i.e., the reason the call was initiated and/or disconnected). Here is some sample output:

00:18:52: BRI0/0 DDR: Dialing cause ip (s=1.1.1.2, d=1.1.1.1)
00:18:52: BRI0/0 DDR: Attempting to dial 8358661
00:19:22: BRI0/0:2 DDR: disconnecting call

This can be especially helpful if you have a router that keeps calling when you don’t want it to.

  • ·        debug dialer packet will tell you what packets are doing across your dialer interfaces, where they are going to and coming from, and whether they were permitted (as interesting traffic) or denied (as uninteresting traffic) by the dialer-list configured on that interface. Here’s some sample output of permitted and denied packets:
  • 00:39:24: BRI0/0 DDR: ip (s=1.1.1.2, d=1.1.1.1), 100 bytes, outgoing interesting (ip PERMIT)
    00:39:24: BRI0/0 DDR: ip (s=1.1.1.2, d=1.1.1.1), 100 bytes, outgoing interesting (ip PERMIT)
    00:39:24: BRI0/0 DDR: ip (s=1.1.1.2, d=1.1.1.1), 100 bytes, outgoing interesting (ip PERMIT)
    00:39:24: BRI0/0 DDR: ip (s=1.1.1.2, d=1.1.1.1), 100 bytes, outgoing interesting (ip PERMIT)
    00:41:09: BRI0/0 DDR: cdp, 273 bytes, outgoing uninteresting (no list matched)

    8. PPP authentication
    If you configured PPP authentication on your dialup lines (which you should, for security reasons), you could end up with username/password mismatches on each side. Finding out that this is the reason that the line won’t come up can be impossible without using debug ppp authentication.

    Here’s some sample output of missing username/password information on one router:
    00:32:30: BR0/0:1 CHAP: O CHALLENGE id 13 len 23 from “r2″
    00:32:31: BR0/0:1 CHAP: I CHALLENGE id 2 len 23 from “r1″
    00:32:31: BR0/0:1 CHAP: O RESPONSE id 2 len 23 from “r2″
    00:32:31: BR0/0:1 CHAP: I FAILURE id 2 len 26 msg is “Authentication failure”

    This is sample output of an incorrect password on one router:
    00:47:05: BR0/0:1 CHAP: O CHALLENGE id 25 len 23 from “r2″
    00:47:05: BR0/0:1 CHAP: I CHALLENGE id 19 len 23 from “r1″
    00:47:05: BR0/0:1 CHAP: O RESPONSE id 19 len 23 from “r2″
    00:47:05: BR0/0:1 CHAP: I FAILURE id 19 len 25 msg is “MD/DES compare failed”

    7. Debug {topology} packet
    As I mentioned above, it is best to troubleshoot networking technologies using a layered approach, working your way up the OSI model from Layer 1. (I give credit to Bruce Caslow and his book Cisco Certification: Bridges, Routers, and Switches for CCIEs for carefully documenting this approach.)

    Using that model, for whatever network topology you are working with, you can use the debug command to see that your Layer 2 packets are being encapsulated properly. (Of course, I’m assuming that all the cables are connected at Layer 1.) For instance, let’s say that you work with frame-relay and you’re having trouble getting packets across a link. You’ve verified that the link is up, but there is still no data passing on it. You could try
    debug frame-relay packet

    Then, you could attempt to ping the interface on the remote router. If the ping passes, you will get the following:
    01:03:22: Serial0/0:Encaps failed–no map entry link 7(IP)

    This tells you that encapsulation failed for the IP packet into the frame-relay protocol. It even tells you that it failed because there is no frame-relay map statement. If you fix that and try it again, you might find that you get no frame-relay errors. But then the packet still may not pass. Thus, you’ll need to go up to Layer 3 and try:
    debug ip packet

    You might get this output:
    01:06:46: IP: s=1.1.1.2 (local), d=11.11.11.11, len 100, unroutable

    This tells you that there is no IP route for your packet to traverse. Thus, you know you need to add a route.

    You can insert whatever networking topology you are working with on the debug {topology} line. Some other possibilities are:

    • ·        debug atm packet
    • ·        debug serial packet
    • ·        debug ppp packet
    • ·        debug dialer packet
    • ·        debug fastethernet packet

    6. Debug crypto (IPSec and VPN features)
    I won’t go into a lot of detail and examples here since IPSec and VPN are huge topics that can get very complex. But I do want to point out that you can troubleshoot IPSec connections with debugging commands. Because of the popularity of VPN and IPSec, it is important to know how to use debug commands for these technologies. Some of the possibilities are:

    • ·        debug crypto isakmp
    • ·        debug crypto ipsec
    • ·        debug crypto engine
    • ·        debug ip security
    • ·        debug tunnel

    In addition, debug ip packet, as mentioned below, is useful in troubleshooting IPsec connections.

    If you want to learn more on this topic, I recommend going to Cisco’s IP Security Protocols Section, choosing the protocol you are interested in (IPSec, IKE, etc.), and looking at the different configurations along with their recommended troubleshooting methods.

    5. Debug IP routing
    Using debug with IP routing protocols can be useful as well. For example, to know if you have a route flapping (a route being added and removed frequently), you can use debug ip routing.

    If you had a flapping route, you might see something like:
    01:30:56: RT: add 111.111.111.111/32 via 12.12.12.11, ospf metric [110/65]
    01:31:13: RT: del 111.111.111.111/32 via 12.12.12.11, ospf metric [110/65]
    01:31:13: RT: delete subnet route to 111.111.111.111/32
    01:31:13: RT: delete network route to 111.0.0.0
    01:32:56: RT: add 111.111.111.111/32 via 12.12.12.11, ospf metric [110/65]
    01:33:13: RT: del 111.111.111.111/32 via 12.12.12.11, ospf metric [110/65]
    01:33:13: RT: delete subnet route to 111.111.111.111/32
    01:33:13: RT: delete network route to 111.0.0.0

    This could indicate a routing loop in your network. On the other hand, it could indicate a link going up and down, perhaps a bouncing dialup interface or frame-relay interface.

    4. Debug ip {routing protocol}
    You can insert many options with debug ip. Issuing the debug ip ? command will display them. We’ve included the options in Listing D.

    Most routing protocols (e.g., OSPF, EIGRP, IGRP, and BGP) are included in this list. Each has its own extensive options that can be debugged. (You can see all the options for a particular protocol by issuing the debug ip {routing protocol} ? command.) For instance, the only way to know that your two OSPF routers are not forming an adjacency due to mismatched authentication types is to issue debug ip ospf adjacency.

    You might see the following output, telling you that the authentication types are mismatched:
    01:39:46: OSPF: Rcv pkt from 12.12.12.11, Serial0/0 : Mismatch Authentication type. Input packet specified type 0, we use type 2

    In this case, if it weren’t for debug, you could be scratching your head for a while.

    3. Debug list
    An interesting debug command that isn’t widely known is debug list. This command doesn’t actually debug anything. Instead, it sets an interface and/or access list for the next debug you enter. So if you are going to issue some command that you know will produce a lot of output but that doesn’t have an option to limit that output with an access command, you can first issue the debug list XXX command (where XXX is an access list number you have already created) and then run the command you want to debug on. An example would be:
    debug list 1
    debug dhcp detail
    DHCP client activity debugging is on for access list: 1 (detailed)

    2. Log an access list to system or syslog
    You can use the log option at the end of an access list to log packets that are permitted or denied. This could enable you to log packets that are denied on a router being used as a firewall or to control access at an important network point. Remember that a firewall doesn’t have to just protect you from the Internet; it can protect higher security departments (such as accounting), be placed between two business partners, or just keep some traffic (like P2P traffic) off your network. While this isn’t technically a debug command, it can certainly be used for debugging and troubleshooting. Let’s look at a couple of examples.

    First, suppose that you want to allow only BGP traffic in your network and keep track of all other traffic that attempts to enter a link. Here’s a sample configuration:
    Interface Serial 0/0
    Access-group 100 in

    access-list 100 remark Begin — Allow BGP IN and OUT
    access-list 100 permit tcp host 1.1.1.1 host 2.2.2.2 eq bgp
    access-list 100 permit udp any host 2.2.2.2 gt 33000
    access-list 100 remark End
    access-list 100 deny   ip any any log

    All traffic will go to your Cisco router’s log if you have “logging buffered” turned on or to a syslog server if you configured one.

    For the second example, let’s say you are trying to nail down an access list to permit only the proper traffic to go over your dialup link. You use an access list and log the existing traffic to get an idea of what is being carried so that you can configure the correct access list. Here’s a sample configuration:
    Interface BRI 0/0
    Access-group 100 in
    Access-group 100 out

    access-list 100 permit ip any any log

    If you look at the output in the router’s log, you will see that an ICMP packet and a TCP packet went across your link:
    02:03:43: %SEC-6-IPACCESSLOGDP: list 100 permitted icmp 1.1.1.2 -> 1.1.1.1 (0/0), 1 packet
    02:06:25: %SEC-6-IPACCESSLOGP: list 100 permitted tcp 1.1.1.2(0) -> 1.1.1.1(0), 1 packet

    1. Debug IP packet detail XXX (access list number)
    My number-one debug technique is using an access list to see all the traffic going to and from some destination, just like a basic sniffer/protocol analyzer. The limitation to this one is that you can’t see the packet payload and can see almost nothing of the headers.

    Since you can do this with an access list, you can nail it down to a particular host, protocol, port, or network range, as well as using a uni- or bi-directional access list. I know it isn’t a real protocol analyzer, but it could still come in handy—and it’s already built into the IOS. The sample configuration below shows the logging of all Telnet packets to your router. (These could just as well be a host on one of your router’s networks.)
    access-list 101 permit tcp any any eq telnet
    debug ip packet detail 101
    IP packet debugging is on (detailed) for access list 101

    Listing E shows the sample output of what the debug output would look like.

    You can see from the output that you get the IP source, destination, interfaces, source and destination port numbers, sequence numbers, acknowledgement numbers, window sizes, and TCP communication flags (SYN, ACK, FIN).

    Summary
    I have covered 10 of the many uses of Cisco IOS debug, which I hope will help you in future troubleshooting. Cisco IOS debug isn’t just for Cisco TAC engineers; all Cisco administrators can use it to troubleshoot just about any configuration that’s put into a Cisco router.

    , Cisco IOS, Cisco Systems Inc., subcommand, router

    Posted in Real World, Routing & Switching Lab | Leave a Comment »

    Day 94 RIP notes

    Posted by Peter Kurdziel on June 11, 2009

    RIP notes

    1. ip summary-address will suppress more specific routes in RIP. So you do not have to configure an distribute-list.
    2. watch the tasks wording.
    3. configure RIP for unicast ONLY you need a neighbor statement (to enable unicast) and you need to disable broadcast / multicast by using passive-interface.
    4. ran into an issue with authentication failed after changing from md5 to text authentication. I removed the authentication config under the interface and readded it and it started working.
    5. req: send updates out necessary interfaces only, loop0 sneaked in there for me. Found it by change by using debug ip rip events. solution: config passive for the loopbacks.
    6. when changing metrics with an offset-list config the offset-list close to the source. I got it to work on the closest router with in/out and on the router that needed to see the metric with offset in. All solutuions worked no restrictions based on the task.
    7. req: prepare for a futute vlan (secondary address on an interface) solution: disable ip split-horizon or no validate update source on the other router.
    8. when connecting to non-cisco devices you need to disable to holddown. timers basic 30 180 0 240

    Q. How is IP split horizon handled on Frame Relay interfaces?


    A. IP split horizon checking is disabled by default for Frame Relay encapsulation to allow routing updates to go in and out of the same interface. An exception is the Enhanced Interior Gateway Routing Protocol (EIGRP) for which split horizon must be explicitly disabled.

    Configuring Frame Relay subinterfaces ensures that a single physical interface is treated as multiple virtual interfaces. This capability allows you to overcome split horizon rules so packets received on one virtual interface can be forwarded to another virtual interface, even if they are configured on the same physical interface.

    Posted in FRAME-RELAY, RIP, Routing & Switching Lab | Leave a Comment »

    day 95 frame notes

    Posted by Peter Kurdziel on June 10, 2009

    I started on a frame relay lab but got side tracked with the “broadcast” keyword.

    gotchas:

    1. PVC deleted means that frame switch does not have the dlci configured
    2. PVC inactive means you have a typo in your config
    3. use debug frame packet
    4. point-to-point <> physical use map statements with the broadcast keyword. Broadcast enables the dlci to forward both broadcast and multicast traffic. (think RIP, OSPF, mcast, etc..)
    5. set the DE bit on packets greater then 1024 bytes on dlci 502 = (global) frame-relay de-list 1 protocol ip gt 1024 (int) frame-relay de-group  1 502
    6. chap = ppp over frame-relay. (virtual int, ppp authen chap, (global) username R1 password xx) ( don’t forget to remove the pertinent frame config from the serial interface and move it to the virtual-template along with the ip address!).
    7. req: send full status updates of dlci’s every 180 seconds solution: doc cd = frame-relay lmi-n391dte 18
    8. I went the wrong way the last question. The solution was to search the doc cd with the keywords in the question ” bytes per second & packets per second” frame-relay broadcast-queue 50 36000 90
    9. DO NOT mix DR and NON-DR network types. Even though you can tweak the hello’s to form an adjacency the neighbors will not be functioning. ie sho ip route ospf = nothing
    10. Ospf is not running right – check your frame-relay map statements and add broadcast where needed.
    11. If your lab scenerio forbids you from using the broadcast keyword you will have to use ip ospf net non-broadcast or ip ospf net point-to-multi non-broadcast.
    12. IOS will not permit OSPF neighbor statements for network types broadcast or point-to-point – only for non-broadcast and for point-to-multipoint

    Broadcast keyword

    Physical / multipoint interfaces = add the broadcast keyword

    hub to spoke = add the broadcast keyword

    spoke to hub = add the broadcast keyword

    spoke to spoke = do not add the broadcast keyword

    ip ospf net non-broadcast – sends unicast. You need the neighbor command.  Adding the broadcast keyword is not necessary.

    side note: make sure your timers match for different ip ospf network types.

    Here network types work together:

    Broadcast to Broadcast
    Non-Broadcast to Non-Broadcast
    Point-to-Point to Point-to-Point
    Point-to-Multipoint to Point-to-Multipoint
    Broadcast to Non-Broadcast (adjust hello/dead timers)
    Point-to-Point to Point-to-Multipoint (adjust hello/dead timers)

    broadcast = 10 hello 40 dead

    non-broadcast = 30 hello 120 dead

    You can tweak the hello/dead with ip ospf hello-interval or ip ospf dead commands.
    * An adjacency will be formed with routers running OSPF, as long as the authentication is the same, the stub flag is the same, the area is the same, and the timers are the same.

    * If you mix and match network types we might need to modify the timers so we can form an adjacency. This is done with the ip ospf hello-interval and ip ospf dead-interval commands.

    * You can mix and match network types as long as the network types involved have the same DR relationship. You can’t mix network types that require a DR with those that don’t require a DR.

    Dont Need a DR:
    Point-to-Point and Point-to-Multipoint (if you adjust timers)
    Point-to-Point and Point-to-Multipoint non-broadcast (if you adjust timers)
    Point-to-Multipoint and Point-to-Multipoint non-broadcast

    Need a DR:
    Broadcast and Non-Broadcast (if you adjust timers)

    Frame relay interfaces..

    1- broadcast network: no need for neighbor command, if given under the frame relay interface Broadcast keyword should be enabled on the frame relay map statements

    2- non broadcast network u have to specify the neighbors statically under the ospf process… on frame relay mapping it doesn’t cares about the broadcast keyword (because the updates are going as unicast)

    but it is mostly used if in frame relay due to a restriction u r not allowed to use the the broadcast keyword

    3- p2mp: this network type is specially used for NBMA networks, so this is best suitable for the hub and spoke networks on frame relay…

    u don’t have to give the neighbor command in ospf process, for the neighbor to come up…

    u NEED BROADCAST keyword on the frame relay map statements for this to work

    4- p2mp non broadcast (cisco propriety)  u need to specify the neighbor command in ospf process and on frame relay mappings u don’t need broadcast keyword.

    Posted in FRAME-RELAY, Routing & Switching Lab | Leave a Comment »

    QOS doc cd shaping examples

    Posted by Peter Kurdziel on June 9, 2009

    The following example configures a shape entity with CIR of 128 kbps and sets the lower bound CIR to 64 kbps when BECNs are received:

    policy-map dts-p2p-all-action
    class class-p2p-all
    shape average 128000
    shape adaptive 64000

    If the traffic being sent to the network must strictly conform to the configured network provisioned CIR, then you should use average traffic shaping.

    The following example sets the uses average rate

    shaping to ensure a bandwidth of 256 kbps:

    shape average 256000

    The following example uses peak rate shaping to ensure a bandwidth of 300 kbps but allow throughput up to 512 kbps if enough bandwidth is available on the interface:

    bandwidth 300

    shape peak 512000

    The following example configures traffic shaping using an average shaping rate on the basis of a percentage of bandwidth. In this example, 25 percent of the bandwidth has been specified.  Additionally, an optional be value and bc value (100 ms and 400 ms, respectively) have been specified.

    Router> enable
    Router# configure terminal
    Router(config)# policy-map policy1
    Router(config-pmap)# class-map class1
    Router(config-pmap-c)# shape average percent 25 20 ms
    be 100 ms bc 400 ms
    Router(config-pmap-c)# end

    Posted in Routing & Switching Lab | Leave a Comment »

    day 96 notes cat notes

    Posted by Peter Kurdziel on June 9, 2009

    Lab 1 & 2 notes.

    I put in about 10 hours of study time today. I came across a few commands I have not seen/used before.

    useful commands
    do sh inter status | in err
    show errdisable recovery
    do sho int | in is up, line protocol is up |Internet address is
    ***
    debug sw-vlan vtp events
    debug sw-vlan vtp packets

    switchcore wirespeed-store = “to reserve bandwidth for buffer storage to accommodate broadcast and multicast storms.”

    This example shows how to enable the recovery timer for the BPDU guard
    error-disabled cause:
    Switch(config)# errdisable recovery cause bpduguard
    This example shows how to set the timer to 500 seconds:
    Switch(config)# errdisable recovery interval 500

    *** The spanning-tree portfast bpdufilter command enables BPDU filtering globally on PortFast ports.  BPDU filtering prevents a port from sending or receiving any BPDUs. ( if a port is configured for portfast and it receives a BPDU portfast will be removed.)

    You can override the effects of the portfast bpdufilter default command by configuring BPDU filtering at the interface level.

    Note Be careful when enabling BPDU filtering. The feature’s functionality is different when you enable it on a per-port basis or globally. When enabled globally, BPDU filtering is applied only on ports that are in an operational PortFast state. Ports send a few BPDUs at linkup before they effectively filter outbound BPDUs. If a BPDU is received on an edge port, it immediately loses its operational PortFast status and BPDU filtering is disabled.

    When enabled locally on a port, BPDU filtering prevents the Catalyst 6500 series switch from receiving or sending BPDUs on this port.


    Caution Be careful when using this command. Using this command incorrectly can cause bridging loops.

    vlan dot1q tag native = To enable dot1q (802.1Q) tagging for all VLANs in a trunk, use the vlan dot1q tag native command in global configuration mode ( send the VLAN ID across trunks)

    My first marco, lol.

    macro name create
    vlan 8
    name TAX_DEPT
    interface fa0/24
    sw acc vlan 8
    spann portfast
    interface fa0/25
    sw acc vlan 8
    spann portfast
    interface fa0/26
    sw acc vlan 8
    spann portfast
    interface fa0/27
    sw acc vlan 8
    spann portfast
    exit
    @

    dot1x port-control force-authorized < — needed globally

    gotchas:

    1. when setting up etherchannels shut the interfaces down, config and then enable the interfaces.
    2. troubleshooting in the lab: do a show run and look for stuff that does not belong there, like VALC’s!
    3. all vtps passwords are md5
    4. with some ios’s port-channels must match
    5. req: every packet that traverses the trunk must have the VLAN ID. solution: vlan dot1q tag native.
    6. spanning-tree portfast bpdufilter enable (global) if a port is configured for portfast and it receives a BPDU it will lose its portfast status.

    Posted in Routing & Switching Lab | Leave a Comment »

     
    Follow

    Get every new post delivered to your Inbox.