Cisco Networking Interview Questions

  1. As system administrator, you type “debug ipx sap” and receive the following lines as part of the IOS response: type 0×4, “HELLO2″, 199.0002.0003.0006 (451), 2 hops type 0×4, “HELLO1″, 199.0002.0003.0008 (451), 2 hops What does “0×4″ signify?
    * That is a Get Nearest Server response.
    * That it is a General query.
    * That it is a General response.
    * That it is a Get Nearest Server request.
    Correct answer: A
  2. To monitor IP igrp traffic, you can use “debug IP igrp transaction” or “debug IP igrp events”. How do you display information about IPX routing update packets?
    * debug routing
    * debug ipx transaction
    * debug ipx routing activity
    * debug ipx events
    Correct answer: C
  3. To monitor ipx traffic on a network, what command would you use?
    * debug ipx transaction
    * show ipx traffic
    * show ipx events
    * display ipx traffic
    Correct answer: B
  4. What command would you use to find out the names of Novell servers on a network?
    * show ipx servers
    * show ipx hosts
    * show ipx sap
    * show ipx nodes.
    Correct answer: A
  5. The “ipx delay number” command will allow an administrator to change the default settings. What are the default settings?
    * For LAN interfaces, one tick; for WAN interfaces, six ticks
    * For LAN interfaces, six ticks; for WAN interfaces, one tick
    * For LAN interfaces, zero ticks; for WAN interfaces, five ticks
    * For LAN interfaces, five ticks; for WAN interfaces, zero Ticks
    Correct answer: A
    The default is–for LAN interfaces, one tick; for WAN interfaces, six ticks
  6. As a system administrator, you need to set up one Ethernet interface on the Cisco router to allow for both sap and Novell-ether encapsulations. Which set of commands will accomplish this?
    * interface ethernet 0.1 ipx encapsulation Novell-ether ipx network 9e interface ethernet 0.2 ipx network 6c
    * interface ethernet 0 ipx encapsulation Novell-ether ipx network 9e interface ethernet 0 ipx encapsulation sap ipx network 6c
    * interface ethernet 0.1 ipx encapsulation Novell-ether interface ethernet 0.2 ipx encapsulation sap
    * interface ethernet 0.1ipx encapsulation Novell-ether ipx network 9e interface ethernet 0.2 ipx encapsulation sap ipx network 6c
    Correct answer: D
    The following commands setup the subinterfaces to allow for two types of encapsulation: interface ethernet 0.1 ipx encapsulation Novell-ether ipx network 9e interface ethernet 0.2 ipx encapsulation sap ipx network 6c
  7. What does the “IPX maximum-paths 2″ command accomplish?
    * It enables load sharing on 2 paths if the paths are equal metric paths.
    * It sets up routing to go to network 2.
    * It is the default for Cisco IPX load sharing.
    * It enables load sharing on 2 paths if the paths are unequal metric paths.
    Correct answer: A
    It enables load sharing on 2 paths if the paths are equal metric paths. The default is 1 path and the maximum is 512 paths.
  8. You want to enable both arpa and snap encapsulation on one router interface. How do you do this?
    * The interface can handle multiple encapsulation types with no extra configuration.
    * Assign two network numbers, one for each encapsulation type.
    * Enable Novell-ether to run multiple encapsulation types.
    * Both arpa and snap are enabled by default so you don’t have to configure anything.
    Correct answer: B
    To assign multiple network numbers, you usually use subinterfaces. A sample configuration follows: ipx ethernet 0.1 ipx encapsulation novell-ether ipx network 9e interface ethernet 0.2 ipx encapsulation sap ipx network 6c
    By default, Cisco routers forward GNS SAPs to remote networks.
    * False
    * True
    Correct answer: A
    GNS is Novell’s protocol to Get Nearest Server. If there is a server on the local network, that server will respond. If there isn’t, the Cisco router has to be configured to forward the GNS SAP.
  9. To prevent Service Advertisements (SAPs) from flooding a network, Cisco routers do not forward them. How are services advertised to other networks?
    * Each router builds its own SAP table and forwards that every 60 seconds.
    * Each router assigns a service number and broadcasts that.
    * SAPs aren’t necessary with Cisco routers.
    * Cisco routers filter out all SAPs.
    Correct answer: A
    Cisco routers build SAP tables and forward the table every 60 seconds. All SAPs can’t be filtered even with 4.x since NDS and time synchronization uses SAPs.
  10. Novell’s implementation of RIP updates routing tables every ____ seconds.
    * 60
    * 90
    * 10
    * 30
    Correct answer: A
    Novell’s RIP updates routing tables every 60 seconds, Apple’s RTMP is every 10 seconds, routers ARP every 60 seconds, IGRP signal every 90 seconds, and Banyan VINES signals every 90 seconds.
  11. In Novell’s use of RIP, there are two metrics used to make routing decisions. Select the two metrics.
    * Ticks.
    * Hops
    * Loops
    * Counts
    Correct answer: A &B
    It first uses ticks (which is about 1/18 sec.); if there is a tie, it uses hops; if hops are equal, then it uses an administratively assigned tiebreaker.
  12. What is the Cisco name for the encapsulation type used on a serial interface?
    * HDLC
    * SDLC
    * SAP
    * SNAP
    Correct answer: A
  13. “arpa” is used by the Cisco IOS for which encapsulation types?
    * Ethernet_II
    * Ethernet_802.3
    * Ethernet_802.2
    * Ethernet_SNAP
    Correct answer: A
  14. Novell’s IPX and Cisco’s IOS name their protocols differently. Cisco uses sap for Ethernet_802.2, Token-Ring, and Novell’s FDDI_802.2. Cisco uses snap for Ethernet_SNAP, Token-Ring_SNAP, and FDDI_SNAP. Cisco uses arpa for Ethernet_II and, finally the default is Novell-ether for Novell’s Ethernet_802.3. “snap” is used by the Cisco IOS for which encapsulation types?
    * Ethernet_SNAP
    * Token-Ring_SNAP
    * FDDI_SNAP
    * Novell-SNAP
    * Novell-FDDI.
    Correct answer: A,B &C
  15. Novell’s IPX and Cisco’s IOS name their protocols differently. Cisco uses sap for Ethernet_802.2, Token-Ring, and Novell’s FDDI_802.2. Cisco uses snap for Ethernet_SNAP, Token-Ring_SNAP, and FDDI_SNAP. Cisco uses arpa for Ethernet_II and, finally the default is Novell-ether for Novell’s Ethernet_802.3.15 “sap” is used by the Cisco IOS for which encapsulation types?
    * Ethernet_802.2
    * Token-Ring
    * FDDI_SNAP
    * Ethernet_802.3
    * FDDI_802.2
    Correct answer: A,B &E
  16. Novell’s IPX and Cisco’s IOS name their protocols differently. Cisco uses sap for Ethernet_802.2, Token-Ring, and Novell’s FDDI_802.2. Cisco uses snap for Ethernet_SNAP, Token-Ring_SNAP, and FDDI_SNAP. Cisco uses arpa for Ethernet_II and, finally the default is Novell-ether for Novell’s Ethernet_802.3. Which type of Ethernet framing is used for TCP/IP and AppleTalk?
    * Ethernet 802.3
    * Ethernet 802.2
    * Ethernet II
    * Ethernet SNAP
    Correct answer: D
    Ethernet 802.3 is used with NetWare versions 2 through 3.11, Ethernet 802.2 is used with NetWare 3.12 and later plus OSI routing, Ethernet II is used with TCP/IP and DECnet, and Ethernet SNAP is used with TCP/IP and AppleTalk.
  17. Which type of Ethernet framing is used for TCP/IP and DECnet?
    * Ethernet 802.3
    * Ethernet 802.2
    * Ethernet II
    * Ethernet SNAP
    Correct answer: C
    Ethernet 802.3 is used with NetWare versions 2 through 3.11, Ethernet 802.2 is used with NetWare 3.12 and later plus OSI routing, Ethernet II is used with TCP/IP and DECnet, and Ethernet SNAP is used with TCP/IP and AppleTalk.
  18. You are a system administrator on a NetWare network, you are running NetWare 4.11 and you cannot communicate with your router. What is the likely problem?
    * NetWare 4.11 defaults to 802.2 encapsulation.
    * NetWare 4.11 defaults to 802.3 encapsulation
    * Cisco routers only work with NetWare 3.11.
    * NetWare 3.11 defaults to 802.2 encapsulation.
    Correct answer: A
    The default encapsulation on Cisco routers is Novell Ethernet_802.3 and NetWare 3.12 and later defaults to 802.2 encapsulation, 3.11 and earlier defaults to 802.3.
  19. NetWare IPX addressing uses a network number and a node number. Which statements are true?
    * The network address is administratively assigned and can be up to 16 hexadecimal digits long.
    * The node address is always administratively assigned.
    * The node address is usually the MAC address.
    * If the MAC address is used as the node address, then IPX eliminates the use of ARP.
    Correct answer: A, C &D
    The network address can be up to 16 hexadecimal digits in length. The node number is 12 hexadecimal digits. The node address is usually the MAC address. An example IPX address is 4a1d.0000.0c56.de33. The network part is 4a1d. The node part is 0000.0c56.de33. The network number is assigned by the system administrator of the Novell network.
  20. Which NetWare protocol works on layer 3–network layer—of the OSI model?
    * IPX
    * NCP
    * SPX
    * NetBIOS
    Correct answer: A
    IPX (Internetwork Packet Exchange) is a NetWare network layer 3 protocol used for transferring information on LANs.
  21. Which NetWare protocol provides link-state routing?
    * NLSP
    * RIP
    * SAP
    * NCP
    Correct answer: A
    NetWare Link Services Protocol (NLSP) provides link-state routing. SAP (Service Advertisement Protocol) advertises network services. NCP (NetWare Core Protocol) provides client-to-server connections and applications. RIP is a distance vector routing protocol.
  22. As a system administrator, you want to debug igrp but are worried that the “debug IP igrp transaction” command will flood the console. What is the command that you should use?
    * debug IP igrp event
    * debug IP igrp-events
    * debug IP igrp summary
    * debug IP igrp events
    Correct answer: D
    The “debug IP igrp events” is used to only display a summary of IGRP routing information. You can append an IP address onto either command to see only the IGRP updates from a neighbor.
  23. What does the following series of commands accomplish? router igrp 71 network 10.0.0.0 router igrp 109 network 172.68.7.0
    * It isolates networks 10.0.0.0 and 172.68.7.0.
    * It loads igrp for networks 109 and 71.
    * It disables RIP.
    * It disables all routing protocols.
    Correct answer: A
    It isolates network 10.0.0.0 and 172.68.7.0 and associates autonomous systems 109 and 71 with IGRP. IGRP does not disable RIP, both can be used at the same time.
  24. In the command “router igrp 109″ what does 109 signify?
    * an autonomous system
    * any network number which the router is attached to
    * the allowable length of the routing table
    * the network socket number
    Correct answer: A
    The Cisco IOS global configuration command “router igrp xxx” is used to configure the Interior Gateway Routing Protocol. In this case, the 109 is called the process-id , which can also be used for an autonomous system number.
  25. IGRP supports a feature that allows traffic to be distributed among up to 6 (4 default) paths to provide greater overall throughput and reliability. What is this called?
    * unequal-cost load balancing
    * equal-cost load balancing
    * proportionate load balancing
    * low cost load balancing
    Correct answer: A
    An unequal-cost load balancing is used to provide alternate paths for data distribution on an internetwork. Cisco developed this method to use unused or under utilized links to increase bandwidth and network availability.
  26. IGRP uses flash updates, poison reverse updates, holddown times, and split horizon. How often does it broadcast its routing table updates?
    * 90 seconds
    * 10 seconds
    * 30 seconds
    * 45 seconds
    Correct answer: A
  27. The command “show IP protocol” displays which information?
    * routing timers
    * network information
    * contents of the IP routing table
    * information about all known network and subnetworks
    Correct answer: A & B
    “show IP protocol” displays routing timers and network information. “show IP route” displays the routing table with information about all known networks and subnetworks.
  28. When using RIP, routing updates are broadcast every ____ seconds.
    * 30
    * 10
    * 60
    * 90
    Correct answer: A
    Novell’s RIP updates routing tables every 60 seconds, Apple’s RTMP is every 10 seconds, routers ARP every 60 seconds, DECnet hosts and IGRP signal every 15 seconds, and Banyan VINES signals every 90 seconds.
  29. An autonomous system can only exist if all routers in that system meet which criteria?
    * interconnected
    * run the same routing protocol
    * assigned same autonomous system number
    * run IGRP only
    * run RIP only
    Correct answer: A,B &C
    An autonomous system is a set of routers and networks under the same administration. Each router must be interconnected, run the same routing protocol, and assigned the same autonomous system number. The network Information Center (NIC) assigns a unique autonomous system number to enterprises.
  30. A default route is analogous to a _________.
    * default gateway
    * static route
    * dynamic route
    * one-way route
    Correct answer: A
    A default route is analogous to a default gateway. It is used to reduce the length of routing tables and to provide complete routing capabilities when a router might not know the routes to all other networks.
  31. Routers can learn about destinations through static routes, default, or dynamic routing. By default, a router will use information derived from __________.
    * IGRP
    * RIP
    * IP
    * TCP
    Correct answer: A
    The quality of information is rated:
    Connected interface 0
    Static route 1
    IGRP 100
    RIP 120
    Unknown 255
    The lower the value, the more reliable the source with 255 signifying information that the router will ignore. So, the router will use IGRP, rated at 100, before RIP, rated at 120.
  32. You are logged into a router, what command would show you the IP addresses of routers connected to you?
    * show cdp neighbors detail
    * show run
    * show neighbors
    * show cdp
    Correct answer: A
  33. As a system administrator, you perform an extended ping at the privileged EXEC prompt. As part of the display, you see “Set DF bit in IP header? [yes] :” What would happen if you answered no at the prompt.
    * This lets the router fragment the packet.
    * It tells the router not to fragment the packet.
    * This lets the router direct the packet to the destination it finds in its routing table.
    * It tell the router to send the packet to the next hop router
    Correct answer: A
    “Set DF bit in IP header?” is a response to an extended ping at the router. If you answer yes (the default) the router will not fragment the packet. If you answer no, the router will fragment the packet.
  34. You have typed “ping” 172.16.101.1 and get the following display: Type escape sequence to abort. Sending 5, 100-byte ICMP Echoes to 172.16.101.1, timeout is 2 seconds:
    .!!!!
    What does the “.” signify?
    * That one message timed out.
    * That all messages were successful.
    * That one message was successful.
    * That one message completed in under the allotted timeframe.
    Correct answer: A
    The possible responses from the ping command are: ! Successful receipt of an echo reply. Timed out waiting for a reply U Destination unreachable C Congestion-experienced packet I Ping interrupted ? Packet type unknown & Packet TTL exceeded
  35. Which command, that is used to test address configuration, uses Time-To-Live (TTL) values to generate messages from each router.
    * trace
    * ping
    * telnet
    * bootp
    Correct answer: A
    The Cisco IOS EXEC command “trace [protocol] [destination]” is used to discover routes that packets will travel to their destination hosts. Trace uses TTL (Time to Live) values to report destination route information.
  36. What does the command “IP name-server 255.255.255.255″ accomplish?

    * It sets the domain name lookup to be a local broadcast.
    * This is an illegal command.
    * It disables domain name lookup.
    * The command is now defunct and has been replaced by “IP server-name ip any”
    Correct answer: A
    By default DNS is enabled on a router with a server address of 255.255.255.255, which provides for a local broadcast.

  37. As a system administrator, you need to provide your routers with a Domain Name System (DNS) server. How many DNS servers can you specify with one command?
    * 6
    * 1
    * 2
    * 4
    Correct answer: A
    You can only specify six name servers in one command. The syntax is “IP name-server server-address1 [[ server-address2 ]…server-address6]. You must also enable
    DNS.
  38. How would you configure one host name that points to two IP addresses?
    * IP host jacob 1.0.0.5 2.0.0.8
    * IP jacob 1.0.0.5 2.0.0.8
    * IP host jacob 1.0.0.5
    * IP host duplicate “all”
    Correct answer: A
    The correct syntax is IP host name [ TCP-port-number ] address [ address ]….. So, “IP host P1R1 1.0.0.5 2.0.0.8″ is the correct choice. “IP host jacob 1.0.0.5″ only points the host name jacob to one IP address–1.0.0.5.
  39. The following selections show the command prompt and the configuration of the IP network mask. Which two are correct?
    * Router#term IP netmask-format { bitcount | decimal | hexadecimal }
    * Router(config-if)#IP netmask-format { bitcount | decimal | hexadecimal }
    * Router(config-if)#netmask-format { bitcount | decimal | hexadecimal }
    * Router#ip netmask-format { bitcount | decimal | hexadecimal }
    Correct answer: A & B
    Router#term IP netmask-format { bitcount | decimal | hexadecimal } and Router(config-if)#IP netmask-format { bitcount | decimal | hexadecimal } are correct. You can configure the mask for the current session and you can configure it for a specific line.
  40. When configuring the subnet mask for an IP address, which formats can be used?
    * dotted-decimal.
    * Hexadecimal
    * Bit-count
    * Octal
    * Binary
    Correct answer: A, B &C
  41. You are given the following address: 153.50.6.27/25. Determine the subnet mask, address class, subnet address, and broadcast address.
    * 255.255.255.128, B,153.50.6.0, 153.50.6.127
    * 255.255.255.128, C,153.50.6.0, 153.50.6.127
    * 255.255.255.128, C,153.50.6.127, 153.50.6.0
    * 255.255.255.224, C,153.50.6.0, 153.50.6.127
    Correct answer: A
  42. You are given the following address: 128.16.32.13/30. Determine the subnet mask, address class, subnet address,
    and broadcast address.
    * 255.255.255.252, B,128.16.32.12, 128.16.32.15
    * 255.255.255.252, C,128.16.32.12, 128.16.32.15
    * 255.255.255.252, B,128.16.32.15, 128.16.32.12
    * 255.255.255.248, B,128.16.32.12, 128.16.32.15
    Correct answer: A
  43. You are given the following address: 15.16.193.6/21. Determine the subnet mask, address class, subnet address,
    and broadcast address.
    * 255.255.248.0, A, 15.16.192.0, 15.16.199.255
    * 255.255.248.0, B, 15.16.192.0, 15.16.199.255
    * 255.255.248.0, A, 15.16.199.255, 14.15.192.0
    * 255.255.242.0, A, 15.16.192.0, 15.16.199.255
    Correct answer: A
  44. You have an IP host address of 201.222.5.121 and a subnet mask of 255.255.255.248. What is the broadcast address?
    * 201.222.5.127
    * 201.222.5.120
    * 201.222.5.121
    * 201.222.5.122
    Correct answer: A
    The easiest way to calculate this is to subtract 255.255.255.248 (subnet mask) from 255.255.255.255, this
    equals 7. Convert the address 201.222.5.121 to binary–11001001 11011110 00000101 01111001. Convert the
    mask 255.255.255.248 to binary–11111111 11111111 11111111 11111000. AND them together to get: 11001001 11011110
  45. 01111000 or 201.222.5.120. 201.222.5.120 is the subnet address, add 7 to this address for 201.222.5.127 or
    the broadcast address. 201.222.5.121 through 201.222.5.126 are the valid host addresses.
  46. Given the address 172.16.2.120 and the subnet mask of 255.255.255.0. How many hosts are available?
    * 254
    * 510
    * 126
    * 16,372
    Correct answer: A
    172.16.2 120 is a standard Class B address with a subnet mask that allows 254 hosts. You are a network administrator and have been assigned the IP address of 201.222.5.0. You need to have 20 subnets with 5 hosts per subnet. The subnet mask is 255.255.255.248.
  47. Which addresses are valid host addresses?
    * 201.222.5.17
    * 201.222.5.18
    * 201.222.5.16
    * 201.222.5.19
    * 201.222.5.31
    Correct answer: A,B & D
    Subnet addresses in this situation are all in multiples of 8. In this example, 201.222.5.16 is the subnet, 201.22.5.31 is the broadcast address. The rest are valid host IDs on subnet 201.222.5.16.
  48. You are a network administrator and have been assigned the IP address of 201.222.5.0. You need to have 20 subnets with
  49. hosts per subnet. What subnet mask will you use?
    * 255.255.255.248
    * 255.255.255.128
    * 255.255.255.192
    * 255.255.255.240
    Correct answer: A
    By borrowing 5 bits from the last octet, you can. have 30 subnets. If you borrowed only 4 bits you could only have 14 subnets. The formula is (2 to the power of n)-2. By borrowing 4 bits, you have (2×2x2×2)-2=14. By borrowing 5 bits, you have (2×2x2×2x2)-2=30. To get 20 subnets, you would need to borrow 5 bits so the subnet mask would be 255.255.255.248.
  50. You are given the IP address of 172.16.2.160 with a subnet mask of 255.255.0.0. What is the network address in binary?
    * 10101100 00010000
    * 00000010 10100000
    * 10101100 00000000
    * 11100000 11110000
    Correct answer: A
    To find the network address, convert the IP address to binary–10101100 000100000 00000010 10100000–then ANDed it with the subnet mask–11111111 11111111 00000000 00000000. The rest is 10101100 00010000 00000000 00000000, which is 172.16.0.0 in decimal.
    The first octet rule states that the class of an address can be determined by the numerical value of the first octet.
  51. Which addresses are INCORRECTLY paired with their class?
    * 128 to 191, Class B
    * 192 to 223 Class B
    * 128 to 191, Class C
    * 192 to 223, Class C
    Correct answer: B & C
    Address classes are: 1 to 126, Class A; 128 to 191, Class B, 192 to 223, Class C; 224 to 239, Class D; and
  52. to 255, Class E. The first octet rule states that the class of an address can be determined by the numerical value of the first octet.
  53. Which addresses are INCORRECTLY paired with their class?
    * 1 to 126, Class A
    * 128 to 191, Class A
    * 1 to 126, Class B
    * 128 to 191, Class B
    Correct answer: B & C.
    Address classes are: 1 to 126, Class A; 128 to 191, Class B, 192 to 223, Class C; 224 to 239, Class D; and
  54. to 255, Class E. The first octet rule states that the class of an address can be determined by the numerical value of the first octet.
  55. Which addresses are INCORRECTLY paired with their class?
    * 240 - 255, Class D
    * 240 - 255, Class E
    * 224 - 239, Class D
    * 224 - 239, Class E
    Correct answer: A & D
    Address classes are: 1 to 126, Class A; 128 to 191, Class B, 192 to 223, Class C; 224 to 239, Class D; and 240 to 255, Class E.
  56. Which IP Address Class is INCORRECTLY paired with its range of network numbers?
    * Class A addresses include 192.0.0.0 through 223.255.255.0
    * Class A addresses include 1.0.0.0 through 126.0.0.0
    * Class B addresses include 128.0.0.0 through 191.255.0.0
    * Class C addresses include 192.0.0.0 through 223.255.255.0
    * Class D addresses include 224.0.0.0 through 239.255.255.0
    Correct answer: A
    Class A addresses include 1.0.0.0 through 126.0.0.0
    Class B addresses include 128.0.0.0 through 191.255.0.0
    Class C addresses include 192.0.0.0 through 223.255.255.0
    Class D addresses include 224.0.0.0 through 239.255.255.0
  57. Which IP Address Class can have 16 million subnets but support 254 hosts?
    * Class C
    * Class A
    * Class B
    * Class D
    Correct answer: A
    Possible Subnets IP Address Class Possible Hosts
  58. A 16M.
    64K B 64K
    16M C 254
  59. Which IP Address Class can have 64,000 subnets with 64,000 hosts per subnet?
    * Class B
    * Class A
    * Class C
    * Class D
    Correct answer: A
    IP Address Class Possible Subnets Possible Hosts
  60. A 16M
    64K B 64K
    16M C 254
  61. There are two processes to pair MAC address with IP addresses. Which process finds an IP address from a MAC address?
    * RARP
    * ARP
    * RIP
    * IGRP
    Correct answer: A
    ARP (Address Resolution Protocol) maps an IP address to the MAC address, RARP (Reverse Address Resolution Protocol) maps the MAC address to the IP address. ARP and RARP work at the internet layer of the Internet Model or the network layer of the OSI model.
  62. When the router runs out of buffer space, this is called ________.
    * Source Quench
    * Redirect
    * Information Request
    * Low Memory
    Correct answer: A
    Source quench is the process where the destination router, or end internetworking device will “quench” the date from the “source”, or the source router. This usually happens when the destination router runs out of buffer space to process packets.
  63. Which protocol carries messages such as destination Unreachable, Time Exceeded, Parameter Problem, Source Quench, Redirect, Echo, Echo Reply, Timestamp, Information Request, Information Reply, Address Request, and Address Reply?
    * ICMP
    * UDP
    * TCP
    * TFTP
    * FTP
    Correct answer: A
    ICMP (Internet Control Message Protocol) is a network layer internet protocol described in RFC # 792. ICMP reports IP packet information such as destination Unreachable, Time Exceeded, Parameter Problem, Source Quench, Redirect, Echo, Echo Reply, Timestamp, Information Request, Information Reply, Address Request, and Address Reply.
  64. Two of the protocols that can be carried in the Protocol field of an IP packet are?
    * TCP
    * UDP
    * FTP
    * TFTP
    Correct answer: A & B
    The following are the fields in an IP segment,
    their length, and their definitions:
    VERS (Version number - 16 bits)
    HLEN (Number of 32-bit words in the header - 4 bits)
    Type of Server (How the datagram should be handled - 32 bits)
    Total Length (Total length of header and data - 32 bits)
    Identification (Provide fragmentation of datagrams to allow different MTUs in the internet - 4 bits)
    Flags (Provide fragmentation of datagrams to allow different MTUs in the internet - 4 bits)
    Frag Offset (Provide fragmentation of datagrams to allow different MTUs in the internet - 6 bits)
    TTL (Time-To-Live - 6 bits)
    Protocol (Upperlayer protocol sending the datagram - 16 bits)
    Header Checksum )Integrity check on the header - 16 bits)
    Source IP Address (32 bits)
    Destination IP Address (32 bits)
    IP Options (network testing, debugging, security and others - 4 bits)
    Data (4 bits).
  65. Where would network testing be included in an IP packet?
    * IP Options field
    * Identification field
    * Type of Service field
    * Reservation field
    Correct answer: A
    The following are the fields in an IP segment, their length, and their definitions:
    VERS (Version number - 16 bits)
    HLEN (Number of 32-bit words in the header - 4 bits)
    Type of Server (How the datagram should be handled - 32 bits)
    Total Length (Total length of header and data - 32 bits)
    Identification (Provide fragmentation of datagrams to allow different MTUs in the internet - 4 bits)
    Flags (Provide fragmentation of datagrams to allow different MTUs in the internet - 4 bits)
    Frag Offset (Provide fragmentation of datagrams to allow different MTUs in the internet - 6 bits)
    TTL (Time-To-Live - 6 bits)
    Protocol (Upperlayer protocol sending the datagram - 16 bits)
    Header Checksum )Integrity check on the header - 16 bits)
    Source IP Address (32 bits)
    Destination IP Address (32 bits)
    IP Options (network testing, debugging, security and others - 4 bits)
    Data (4 bits).
  66. What field tells the Internet layer how to handle an IP packet?
    * Type of Service
    * Identification
    * Flags
    * Frag Offset
    Correct answer: A
    The following are the fields in an IP segment, their length, and their definitions:
    VERS (Version number - 16 bits)
    HLEN (Number of 32-bit words in the header - 4 bits)
    Type of Server (How the datagram should be handled - 32 bits)
    Total Length (Total length of header and data - 32 bits)
    Identification (Provide fragmentation of datagrams to allow different MTUs in the internet - 4 bits)
    Flags (Provide fragmentation of datagrams to allow different MTUs in the internet - 4 bits)
    Frag Offset (Provide fragmentation of datagrams to allow different MTUs in the internet - 6 bits)
    TTL (Time-To-Live - 6 bits)
    Protocol (Upperlayer protocol sending the datagram - 16 bits)
    Header Checksum )Integrity check on the header - 16 bits)
    Source IP Address (32 bits)
    Destination IP Address (32 bits)
    IP Options (network testing, debugging, security and others - 4 bits) Data (4 bits).
  67. Which fields of an IP packet provide for fragmentation of datagrams to allow differing MTUs in the internet?
    * Identification
    * Flags
    * Frag Offset
    * Type of Service
    * Total Length
    Correct answer: A, B & C
    The following are the fields in an IP segment, their length, and their definitions:
    VERS (Version number - 16 bits)
    HLEN (Number of 32-bit words in the header - 4 bits)
    Type of Server (How the datagram should be handled - 32 bits)
    Total Length (Total length of header and data - 32 bits)
    Identification (Provide fragmentation of datagrams to allow different MTUs in the internet - 4 bits)
    Flags (Provide fragmentation of datagrams to allow different MTUs in the internet - 4 bits)
    Frag Offset (Provide fragmentation of datagrams to allow different MTUs in the internet - 6 bits)
    TTL (Time-To-Live - 6 bits)
    Protocol (Upperlayer protocol sending the datagram - 16 bits)
    Header Checksum )Integrity check on the header - 16 bits)
    Source IP Address (32 bits)
    Destination IP Address (32 bits)
    IP Options (network testing, debugging, security and others - 4 bits)
    Data (4 bits).
  68. Which processes does TCP, but not UDP, use?
    * Windowing
    * Acknowledgements
    * Source Port
    * Destination Port
    Correct answer: A & B
    UDP (User Datagram Protocol) does not use sequence or acknowledgement fields in transmission.
    UDP is a connectionless and unreliable protocol, since there is no delivery checking mechanism in the UDP data format.
  69. What is the UDP datagram format?
    * Source Port - 16 bits, Destination Port - 16 bits, Length - 16 Bits, Checksum - 16 bits, Data
    * Destination Port - 16 bits, Source Port - 16 bits, Length - 16 Bits, Checksum - 16 bits, Data
    * Source Port - 16 bits, Destination Port - 16 bits, Checksum - 16 Bits, Length - 16 bits, Data
    * Source Port - 8 bits, Destination Port - 8 bits, Length -8 Bits, Checksum - 8 bits, Data
    Correct answer: A
    The UDP format for a segment is as follows:
    Source Port 16 bits
    Destination Port 16 bits
    Length 16 bits
    Checksum 16 bits
    Data xx bits
  70. What is the function of DDR on Cisco routers?
    * DDR is dial–on-demand routing. It provides a continuous LAN only connection.
    * DDR is dial-on-demand routing. It provides routing for high volume traffic.
    * DDR is dial–on-demand routing. It provides a continuous WAN connection.
    * DDR is dial-on-demand routing. It provides routing for low volume and periodic traffic.
    Correct answer: D
    DDR is dial-on-demand routing. It provides routing for low volume and periodic traffic. It initiates a call to a remote site when there is traffic to transmit.
  71. What are the two types of access lists that can be configured on a Cisco router?
    * Standard
    * Extended
    * Filtering
    * Packet
    Correct answer: A & B
    The access lists are standard and extended. Standard access lists for IP check the source address of packets that could be routed. Extended access lists can check the source and destination packet plus check for specific protocols, port numbers, etc.
  72. When using access lists, what does a Cisco router check first?
    * To see if the packet is routable or bridgeable
    * The destination address
    * The source address
    * The packet contents
    Correct answer: A
    The first thing checked is to see if the packet is routable or bridgeable. If it is not, the packet will be dropped.
  73. How many access lists are allowed per interface?
    * One per port, per protocol
    * Two per port, per protocol
    * Unlimited
    * Router interface +1 per port.
    Correct answer: A
    Only one access list is allowed per interface. An access list must have conditions that test true for all packets that use the access list.
  74. What do the following commands accomplish?
    access-list 1 deny 172.16.4.0 0.0.0.255
    access-list 1 permit any interface ethernet 0
    IP access-group 1 out
    * This will block traffic from subnet 172.16.4.0 and allow all other traffic.
    * This will allow traffic from subnet 172.16.4.0 and block all other traffic.
    * All traffic is allowed.
    * All traffic is blocked.
    Correct answer: A
    This will block traffic from subnet 172.16.4.0 and allow all other traffic. The first statement “access-list 1 deny 172.16.4.0 0.0.0.255″ will deny access to the subnet 172.16.4.0.
  75. What do the following statements in an extended access list accomplish?
    access-list 101 deny TCP 172.16.4.0 0.0.0.255 172.16.3.0 0.0.0.255 eq 21
    access-list 101 deny TCP 172.16.4.0 0.0.0.255 172.16.3.0 0.0.0.255 eq 20
    access-list 101 permit TCP 172.16.4.0 0.0.0.255 0.0.0.0 255.255.255.255
    * This will block ftp traffic.
    * This will block http traffic.
    * This will permit ftp traffic.
    * This will permit tftp traffic.
    Correct answer: A
    This will block ftp traffic since ftp uses ports 20 and 21.
  76. Access lists are numbered. Which of the following ranges could be used for an IP access list?
    * 600 - 699
    * 100 - 199
    * 1 - 99
    * 800 - 899
    * 1000 - 1099
    Correct answer: wer: B & C
    AppleTalk access lists use numbers in the 600 - 699 range. IP uses 1 - 99 for standard access lists or 100-199 for extended access lists. IPX uses 800 - 899 or 900 - 999 for extended access lists. IPX SAP filters use 1000 - 1099.
  77. Cisco routers use wildcard masking to identify how to check or ignore corresponding IP address bits. What does setting a wildcard mask bit to 0 cause the router to do?
    * It tells the router to check the corresponding bit value.
    * It tells the router to ignore the corresponding bit value.
    * It tells the router to check its alternate routing list.
    * It tells the router to use its primary routing list.
    Correct answer: A
    It tells the router to check the corresponding bit value.
  78. You are a system administrator and you want to deny access to a group of computers with addresses 172.30.16.0 to 172.30.31.0. Which wildcard mask would you use?
    * 0.0.15.255
    * 0.0.255.255
    * 0.0.31.255
    * 0.0.127.255
    * 0.0.255.255
    Correct answer: A
    0.0.15.255 will check the last 13 bits of an address so that computers 172.30.16.0 to 172.30.31.0 will be denied access. 0.0.31.255 would check the last 6 binary digits and deny access to addresses 172.30.32.0 to 172.30.63.0. 0.0.127.255 would check the last 7 binary digits and deny access to addresses 172.30.64.0 to 172.30.127.0. 0.0.255.255 would deny 172.30.0.0 to 172.30.254.0. If you write decimal 15 in binary, you have 0001111, the 1’s tell the router to ignore address with these bits set; 0’s tell the router to check the bits. The third octet for 172.30.16.0 is 00010000. The third octet for 172.30.31.0 would be 00011111. So, traffic from these addresses would be denied.
  79. In order to limit the quantity of numbers that a system administrator has to enter, Cisco can use which abbreviation to indicate 0.0.0.0?
    * host
    * any
    * all
    * include
    Correct answer: A
    Cisco uses host to specify 0.0.0.0. This tells the router to check all. Cisco uses any to specify 255.255.255.255. This tells the router to ignore all and permit any address to use an access list test.
  80. What do the following commands accomplish?
    access-list 1 permit 172.16.0.0 0.0.255.255
    interface ethernet 0
    IP access-group 1 out
    interface ethernet 1
    IP access-group 1 out
    * Only traffic from the source network 172.16.0.0 will be blocked.
    * Only traffic from the source network 172.16.0.0 will be forwarded. Non-172.16.0.0 network traffic is blocked.
    * Non-172.16.0.0 traffic will be forwarded.
    * All traffic will be forwarded.
    Correct answer: B
    Only traffic from the source network 172.16.0.0 will be forwarded. Non-172.16.0.0 network traffic is blocked. The wildcard mask 0.0.255.255 tells the router to check the first 2 octets and to ignore the last 2 octets.
  81. When using access lists, it is important where those access lists are placed. Which statement best describes access list placement?
    * Put standard access lists as near the destination as possible. Put extended access lists as close to the source as possible.
    * Put extended access lists as near the destination as possible. Put standard access lists as close to the source as possible.
    * It isn’t import where access lists are placed since the router will read and cache the whole list.
    * Put access lists as close to corporate headquarters as possible.
    Correct answer: A
    Put standard access lists as near the destination as possible. Put extended access lists as close to the source as possible. Standard access lists don’t specify the destination address.
  82. As the system administrator, you enter the following commands at the command prompt:
    ipx routing
    access-list 800 permit 2b 4d
    int e0
    ipx network 4d
    ipx access-group 800 out
    int e1
    ipx network 2b
    int e2
    ipx network 3c
    What did these command accomplish?
    * Traffic from network 4c destined for network 4d will be forwarded out Ethernet0.
    * Traffic from network 3c destined for network 4d will be forwarded out Ethernet0.
    * Traffic from network 2b destined for network 4d will be forwarded out Ethernet0.
    * Traffic from network 4d destined for network 2d will be forwarded out Ethernet0.
    Correct answer: C
    Traffic from network 2b destined for network 4d will be forwarded out Ethernet0. The other interfaces E1 and E2 are not subject to the access list since they lack the access group statement to link them to access list 800.
  83. The following commands were entered at the command prompt of a Cisco router. What do they accomplish?
    access-list 1000 deny 9e.1234.5678.1212 4
    access-list 1000 permit -1
    interface ethernet 0
    ipx network 9e
    interface ethernet 1
    ipx network 4a
    interface serial 0
    ipx network 1
    ipx output-sap-filter 1000
    * File server advertisements from server 9e.1234.5678.1212 will not be forwarded on interface S0.
    * All other SAP services, other than file server, from any source will be forwarded on S0.
    * All other SAP services, other than print server, from any source will be forwarded on S0.
    * Print server advertisements from server 9e.1234.5678.1212 will not be forwarded on interface S0.
    Correct answer: A & B
    File server advertisements from server 9e.1234.5678.1212 will not be forwarded on interface S0. All other SAP services, other than file server, from any source will be forwarded on S0.
  84. You receive “input filter list is 800 and output filter list is 801″ as part of the output from a show interfaces command. What kind of traffic are you filtering?
    * IPX/SPX
    * TCP/IP
    * LocalTalk
    * DDR
    Correct answer: A
    Because the access list is numbered in the 800 range, you are filtering IPX/SPX traffic.
  85. Which service uses telephone control messages and signals between the transfer points along the way to the called destination?
    * Signaling System 7 (SS7)
    * Time-division Multiplexing (TDM)
    * X.25
    * Frame relay
    Correct answer: A
    Signaling System 7 (SS7) uses telephone control messages and signals between the transfer points along the way to the called destination. Time-division Multiplexing (TDM) has information from multiple sources and allocates bandwidth on a single media. Circuit switching uses signaling to determine the call route, which is a dedicated path between the sender and the receiver. Basic telephone service and Integrated Services Digital Network (ISDN) use TDM circuits. X.25 and Frame Relay services have information contained in packets or frames to share non-dedicated bandwidth. X.25 avoids delays for call setup. Frame Relay uses permanent virtual circuits (PVCs).
  86. Which service takes information from multiple sources and allocates bandwidth on a single media?
    * Time-division Multiplexing (TDM)
    * Signaling System 7 (SS7)
    * X.25
    * Frame relay
    Correct answer: A
  87. Which three devices can be used to convert the user data from the DTE into a form acceptable to the WAN service’s facility?
    * Modem
    * CSU/DSU
    * TA/NT1
    * CO
    * SS7
    Correct answer: A, B & C
    A modem, CSU/DSU (Channel Service Unit/Data Service Unit), or TA/NT1 (Terminal Adapter/Network Termination 1) can be used to convert the user data from the DTE into a form acceptable to the WAN service’s facility.
  88. What is the juncture at which the CPE ends and the local loop portion of the service begins?
    * Demarc
    * CO
    * Local loop
    * Last-mile
    Correct answer: A
    The demarcation or demarc is the juncture at which the CPE ends and the local loop portion of the service begins. The CO (Central Office) is the nearest point of presence for the provider’s WAN service. The local loop or “last-mile” is the cabling that extends from the demarc into the WAN service provider’s central office.
  89. You can access three forms of WAN services with Cisco routers. Select the three forms:
    * Switched or relayed services
    * Interface front end to IBM enterprise data center computers
    * Using protocols that connect peer-to-peer devices like HDLC or PPP encapsulation.
    * IPX/SPX
    * NetBEUI
    Correct answer: A, B & C
    You can access three forms of WAN services with Cisco routers. Switched or relayed services include X.25, Frame Relay, and ISDN. An interface front end to IBM enterprise data center computers includes SDLC. And, you can access the services of WAN providers using protocols that connect peer devices such as HDLC and PPP encapsulation. IPX/SPX and NetBEUI are LAN protocols.
  90. Select the fields for the Cisco HDLC protocol:
    * Flag, Address, Control
    * Flag, Address, Control, Protocol, LCP (Code, Identifier, Length, Data), FCS, Flag
    * Flag, Address, Control, Data, FCS, Flag
    * Flag, Address, Control, Proprietary, Data, FCS, Flag
    Correct answer: D
    The Cisco HDLC frame format is Flag, Address, Control Proprietary, Data, FCS, Flag. The PPP frame format is Flag, Address, Control, Protocol, LCP (Code, Identifier, Length, Data), FCS, Flag. The SDLC and LAPB format is Flag, Address, Control, Data, FCS, Flag.
    85: Select the physical interfaces that PPP can be configured on a Cisco router:
    * Asynchronous serial
    * HSSI
    * ISDN
    * Synchronous serial
    Correct answer: A, B, C & D
    All four of them can carry PPP traffic. HSSI is High Speed Serial Interface.
  91. Select the correct statements about PPP and SLIP for WAN communications?
    * PPP uses its Network Control Programs (NCPs) component to encapsulate multiple protocols.
    * PPP can only transport TCP/IP
    * SLIP can only transport TCP/IP.
    * SLIP uses its Network Control Programs (NCPs) component to encapsulate multiple protocols.
    Correct answer: A & C
    87a Which protocol for PPP LCP (Link Control Protocol) performs a challenge handshake?
    * CHAP
    * PAP
    * UDP
    * IPX
    Correct answer: A
    87b Which form of PPP error detection on Cisco routers monitors data dropped on a link?
    * Quality
    * Magic Number
    * Error Monitor
    * Droplink
    Correct answer: A
    The Quality protocol monitors data dropped on a link. Magic Number avoids frame looping.
  92. Which protocol for PPP provides load balancing across multiple links?
    * Multilink Protocol (MP)
    * Quality
    * Magic Number
    * Stacker
    * Predictor
    Correct answer: A
  93. As the system administrator, you type “ppp authentication chap pap secret”. Which authentication method is used first in setting up a session?
    * secret
    * PAP
    * CHAP
    * PPP/SLIP
    Correct answer: C
  94. Select the compression protocols for PPP?
    * Stac
    * Predictor
    * Quality
    * Magic Number
    Correct answer: A & B
  95. What are the three phases of PPP session establishment?
    * Link establishment phase
    * Authentication phase
    * Network layer protocol phase
    * Handshake phase
    * Dial-in phase
    Correct answer: A, B & C
  96. What is the default IPX Ethernet encapsulation?
    * SNAP
    * Arpa
    * 802.2
    * Novell-Ether
    * SAP
    Correct answer: D
  97. What must be true for two Routers running IGRP to communicate their routes?
    * Same autonomous system number
    * Connected using Ethernet only
    * Use composite metric
    D)Configured for PPP
    Correct answer: A
  98. The following is partial output from a routing table, identify the 2 numbers in the square brackets; ‘192.168.10.0 [100/1300] via 10.1.0.1, 00:00:23, Ethernet1′
    * 100 = metric, 1300 = administrative distance
    * 100 = administrative distance, 1300 = hop count
    * 100 = administrative distance, 1300 = metric
    * 100 = hop count, 1300 = metric
    Correct answer: C
  99. Identify 3 methods used to prevent routing loops?
    * Split horizon
    * Holddown timers
    * Poison reverse
    * SPF algorithm
    * LSP’s
    Correct answer: A B C
  100. Which statement is true regarding full duplex?
    * Allows for transmission and receiving of data simultaneously
    * Only works in a multipoint configuration
    * Does not affect the bandwidth
    * Allows for transmission and receiving of data but not a the same time
    Correct answer: A
    Full duplex is just the opposite of half duplex. It handles traffic in both directions simultaneously.
  101. Identify the switching method that receives the entire frame then dispatches it?
    * Cut-through
    * Receive and forward
    * Store and forward
    * Fast forward
    Correct answer: C
    Store and forward switching receives the entire frame before dispatching it.
    98Identify the purpose of ICMP?
    * Avoiding routing loops
    * Send error and control messages
    * Transporting routing updates
    * Collision detection
    Correct answer: B
    ICMP is used to send error and control messages. Ping uses ICMP to carry the echo-request and echo-reply.
    99Which statement is true regarding the user exec and privileged exec mode?
    * The ‘?’ only works in Privileged exec
    * They are identical
    * They both require the enable password
    * User exec is a subset of the privileged exec
    Correct answer: D
    The user exec mode is a subset of the privileged exec mode. Only a certain number of commands are available at the user exec mode.
  102. Which OSI layer end to end communication, segmentation and re-assembly?
    * Network
    * Transport
    * Physical
    * Application
    * Data-Link
    * Presentation
    Correct answer: B
    Layer 4 the Transport layer performs this function.
  103. What IP command would you use to test the entire IP stack?
    * Stack-test
    * Arp
    * Telnet
    * Ping
    * Trace
    Correct answer: C
    Because Telnet is an application and it resides at the top of the stack it traverses down the stack and up the stack at the receiving end.
  104. Identify the 2 hardware components used to manage and/or configure a router?
    * Auxiliary port
    * ROM port
    * Management port
    * Console port
    Correct answer: A D
    The 2 hardware ports used to configure the router are the console and auxiliary ports.
  105. What is the default bandwidth of a serial connection?
    * 1200 baud
    * 1.544 Mbps (T1)
    * 10 Mbps
    * 96Kpbs
    Correct answer: B
    The default bandwidth is T1.
  106. Identify 2 functions of IPX access-lists?
    * Control SAP traffic
    * Limit number of Novell servers on a network
    * Limit number of workstations on a network
    * Block IPX traffic
    Correct answer: A D
    IPX access lists are used to restrict IPX traffic and SAP broadcasts.
  107. Identify 2 HDLC characteristics?
    * Default serial encapsulation
    * Open standard
    * Supports Stacker compression
    * Supports point-to-point and multipoint
    Correct answer: A D
    HDLC is the default serial encapsulation and supports point-to-point and multipoint. It is not an open standard and does not support compression.
  108. Identify 3 IP applications?
    * AURP
    * ARP
    * Telnet
    * SMTP
    * DNS
    * RARP
    Correct answer: C D E
    ARP and AURP are not part the application layer of the TCP/IP stack. SMTP - Simple Mail Transfer Protocol, Telnet, DNS - Domain Name Services (name to IP resolution).
  109. Identify 3 LAN technologies?
    * FDDI
    * HDLC
    * HSSI
    * X.25
    * 802.3
    * 802.5
    Correct answer: A E F
    The question is asking for 3 LAN technologies, HDLC, HSSI and X.25 are all WAN technologies.
  110. Identify the 4 that are not LAN technologies?
    * HDLC
    * FDDI
    * 802.5
    * HSSI
    * SDLC
    * Frame Relay
    Correct answer: A D E F
    802.5 and FDDI are LAN technologies
  111. Which OSI layer supports the communication component of an application?
    * Data-Link
    * Physical
    * Session
    * Presentation
    * Application
    * Transport
    Correct answer: E
    Layer 7 the Application layer performs this function.
  112. Identify the length of an IPX address and it’s components?
    * 80 bits, 48 bits network and 32 bits node
    * 32 bits, 16 bits network and 16 bits node
    * None of the above
    * 80 bits, 32 bits network and 48 bits node
    Correct answer: D
    IPX address has 2 components; network and node. The network address is 32 bits and the node is 48 bits, total of 80 bits.
  113. Identify the administrative distance and appropriate routing protocol?
    * RIP = 255, IGRP = 100
    * RIP = 100, IGRP = 120
    * RIP = 1, IGRP = 0
    * RIP = 120, IGRP = 100
    Correct answer: D
    The administrative distance for RIP is 120 and IGRP is 100. The lower the AD the better the routing information.
  114. Which OSI layer incorporates the MAC address and the LLC?
    * Data link
    * Network
    * Physcial
    * Transport
    Correct answer: ): A
    Layer 2 the Data-Link layer incorporates the MAC and LLC sublayers
  115. If configuring a Cisco router to connect to a non-Cisco router across a Frame Relay network, which encapsulation type would you select?
    * Q933a
    * ISDN
    * IETF
    * CISCO
    * ANSI
    Correct answer: C
    There are two types of Frame Relay encapsulations; Cisco and IETF. IETF is required when connecting a Cisco to a non-Cisco router.
  116. Identify the 2 items that TCP and UDP share in common?
    * Both use port numbers to identify upper level applications
    * Operate at the Network layer
    * Both are Transport protocols
    * Both are reliable communications
    Correct answer: A C
    TCP and UPD are both layer 4 Transport protocols and both use port number to identify upper level applications.
  117. Identify 3 characteristics of IP RIP?
    * Distance vector
    * Administrative distance is 120
    * Periodic updates every 60 seconds
    * Uses a composite metric
    * Can load balance
    Correct answer: A B E
    IP RIP is a distance vector protocol, it can load balance up to 4 equal cost paths and it’s rating of trustworthiness is 120.
  118. Which of the following is a layer 2 device?
    * Switch
    * Router
    * Repeater
    * Hub
    Correct answer: A
    A Hub and Repeater are layer 1 devices. A Router is a layer 3 device.
  119. Identify the definition of demarcation?
    * Date in which the WAN service contract expires
    * Cabling which extends from the WAN service provider to the customer
    * Division of responsibility, where the CPE ends and the local loop begins
    * Equipment which is located at the customer premises
    Correct answer: C
    Demarcation is the point in which responsibility changes hands.
  120. Identify the 3 key features of the Cisco Discovery Protocol?
    * Off by default
    * Will allow for the discovery of layer 3 addresses on neighbor routers
    * Verify connectivity
    * Open standard
    * Does not require any layer 3 protocols to be configured
    Correct answer: B C E
    CDP is used for 2 basic reasons; neighbor connectivity and layer 3 discovery if configured. It is proprietary and is on by default.
  121. Identify the 3 characteristics of IPX RIP?
    * Distance vector
    * Does not support multiple paths
    * 60 second updates
    * Default encapsulation is SAP
    * Uses ticks and hop count as a metric
    Correct answer: A C E
    IPX RIP is a distance vector routing protocol, it does support multiple paths, the default encapsulation is ‘novell-ether’, it uses tick count as a primary metric and hop count as a tie breaker and it sends it’s updates every 60 seconds.
  122. Identify the access-list range for an extended IP access-list?
    * 800 - 899
    * 1 - 99
    * 1000 - 1099
    * 100 - 199
    Correct answer: D
    IP extended access-lists use the number range of 100-199.
  123. Identify the X.25 addressing standard?
    * X.121
    * X.25a
    * ITU-1
    * Q933a
    Correct answer: A
    The X.25 layer 3 addressing standards is X.121.
  124. Identify 3 features of IGRP?
    * Composite metric
    * New horizon
    * Flash updates
    * 60 periodic updates
    * Poison reverse
    Correct answer: A C E
    IGRP uses a composite metric made up of bandwidth and delay by default, it updates every 60 seconds and will trigger an update if the topology changes.
  125. Where is the backup configuration file stored?
    * RAM
    * ROM
    * Console
    * NVRAM
    Correct answer: D
    One location to store the backup configuration is NVRAM.
  126. Identify the correct pair of Novell Ethernet encapsulation and Cisco terminology?
    * Ethernet II, Snap
    * Ethernet 802.3, Novell-Ether
    * Ethernet SNAP, Arpa
    * Ethernet 802.2, Snap
    Correct answer: B
    The default IPX LAN encapsulation is Novell-Ether which is 802.3
  127. Identify 3 characteristics regarding IP access-lists?
    * Can be configured as a standard access-list
    * Can be run from another router running IP
    * Can be configured as a named access-list
    * Are the same as IPX access-lists
    * Can be configured as an extended access-list
    Correct answer: A C E
    There are 3 types of IP access-lists; standard, extended and named. Named access-lists can be either standard or extended depending on how they are configured.
  128. Identify 3 ways in which a router can be configured?
    * TFTP
    * Nvram
    * Ping
    * Console
    * Trace
    Correct answer: A B D
    Changes to the configuration can be entered via the console, a config stored in NVRAM or on a TFTP server. Trace and ping are tools to verify connectivity.
  129. A traffic light is an example of what type of mechanism?
    * Collision detection
    * Flow control
    * Sequence numbering
    * Network management
    Correct answer: B
    A Traffic light is an example of flow control.
  130. Windowing is a type of?
    * Negative acknowledgement
    * Address resolution
    * Layer transition mechanism
    * Flow control
    Correct answer: D
    Windowing allow the sender and receiver to dictate how much information that can be received prior to an acknowledgement. It is a form of flow control.
  131. Identify the 2 types of access-list filters that control SAP traffic?
    * Novell-ether
    * Arpa
    * Input-sap-filter
    * Round-robin
    * Output-sap-filter
    Correct answer: C E
    SAP’s can be blocked by 2 methods; inbound and outbound.
  132. Identify the 3 guidelines for routers in the same autonomous system?
    * Must be configured for IGRP or RIP
    * Interconnected
    * Assigned the same autonomous system number
    * Configured for the same routing protocol
    * Must be same model of router
    Correct answer: B C D
    Autonomous system must be interconnected, assigned the same AS # and configured with the same routing protocol.
  133. Identify the hardware component used to store buffers, tables, running-configuration etc?
    * NVRAM
    * ROM
    * RAM
    * Flash
    Correct answer: C
    RAM is the dynamic memory area. ROM contains the boot strap code, NVRAM contains the startup-config and Flash contains the IOS.
  134. Identify 3 UDP characteristics?
    * Reliable communication protocol
    * Applications that use UDP must incorporate reliability
    * Connection-less oriented
    * Incorporates no handshaking
    Correct answer: B C D
    UPD is a layer 4 Transport protocol. It is connection-less because it does establish a connection therefore the 3 step handshake is not needed, it does NOT implement any flow control or acknowledgments. Any application that uses UDP must incorporate any needed reliability.
  135. Identify the IPX standard access-list number range?
    * 600 - 699
    * 1000 - 1099
    * 1 - 99
    * 100 - 199
    * 800 - 899
    Correct answer: E
    IPX standard access-list range is 800-899.
  136. Which OSI layer provides best effort end to end packet delivery?
    * Data-Link
    * Presentation
    * Network
    * Transport
    * Physical
    * Application
    Correct answer: C
    Layer 3 the Network layer performs this function.
  137. Identify the 2 methods to modify the routers boot sequence?
    * Setup program
    * Boot system commands
    * RXBoot
    * Config-register
    Correct answer: B D
    ‘Boot system’ command the ‘config-register’ are used to manipulate the boot sequence.
  138. Identify the 3 pieces of hardware you would not install to prevent broadcasts?
    * Switch
    * Repeater
    * Bridge
    * Router
    Correct answer: A B C
    Router are implemented not only to break up networks into smaller segments but they are used to block broadcasts.
  139. Identify 2 features of PPP PAP authentication?
    * Username and password is sent in clear text
    * Authentication messages are sent periodically during the connection
    * More secure than CHAP
    * Remote node is control of authentication process
    Correct answer: A D
    PPP PAP authentication sends the username and passwords in clear text and the remote node initiates the authentication process.
  140. Identify the switching method that examines the destination MAC address as the frame is being received then begins forwarding the frame prior to receiving the entire frame?
    * Fragment-free
    * Store and Forward
    * Cut-through
    * Fast forward
    Correct answer: C
    Cut through examines the destination MAC address and begins forwarding the frame prior to receiving the entire frame.
  141. Identify 1 characteristic of RARP?
    * IP to MAC address translation
    * Connectionless delivery of packets
    * Can be used to initiate remote O/S load sequence
    * Generates error and control messages
    Correct answer: C
    Reverse Address Resolution Protocol is used to obtain a layer 3 address if the MAC address is known which then facilitates the loading of the O/S.
  142. Identify the protocol to test connectivity without configuring any layer 3 protocols?
    * TCP
    * Ping
    * IP
    * CDP
    * Telnet
    Correct answer: D
    CDP can be used to verify connectivity prior to any layer 3 protocols being configured.
  143. LMI operates between the Frame Switch and what other device?
    * CPE device
    * Another Frame Switch
    * X.25 switch
    * Novell File Server
    Correct answer: A
    LMI stands for local management interface. It operates between the Frame Relay switch and the customer equipment.
  144. Identify IPX SAP and it’s purpose?
    * Sonet Access Pipe - interface to Sonet ring
    * Service Advertising Protocol - advertise services
    * Server Appletalk Protocol - appletalk directory services
    * Service Access Point - identify upper layer protocols
    Correct answer: B
    SAP is an Novell protocol to advertise services.
  145. Identify the default values that make up IGRP’s composite metric?
    * Bandwidth
    * Load
    * Reliability
    * MTU
    * Delay
    Correct answer: A E
    IGRP can be configured to use all 5 within it’s metric. By default it uses bandwidth and delay.
  146. Identify the default serial encapsulation?
    * ISDN
    * HDLC
    * SDLC
    * Frame Relay
    * PPP
    Correct answer: B
    The default serial encapsulation is HDLC.
  147. Identify the purpose of ARP?
    * Avoiding routing loops
    * Determining a workstation’s IP address
    * Sending a directed broadcast
    * Determining a workstation’s MAC address
    Correct answer: D
    ARP is used to find a devices MAC address given an IP address.
  148. What is the purpose of the DLCI?
    * Identifies the remote routers
    * Contained with a 802.2 frame for routing purposes
    * Used with PPP during authentication
    * Identifies the PVC in a Frame Relay network
    Correct answer: D
    DLCI stands for Data Link Connection Identifier. It identifies the local PVC.
  149. Identify 3 characteristics of the Network layer (OSI layer 3)?
    * Connection oriented
    * Path determination
    * Supports multiplexing
    * Manages sessions
    * Packet forwarding
    Correct answer: B C E
    The network layer is responsible for routing which entails learning the paths, selecting the best path and forwarding the packet. Because it services multiple layer 4 protocols it multiplexes.
  150. Identify 3 characteristics of switches?
    * Increase available bandwidth
    * Decrease broadcast traffic
    * Support full duplex in a multipoint topology
    * Make forwarding decision using MAC address
    * Create collision domains
    Correct answer: A D E
    Switches operate at layer 2. They increase bandwidth by reducing the number of devices sharing the media. They isolate collisions. Like a bridge they forward traffic based upon layer 2 address/ MAC address.
  151. Which OSI layer handles physical address, network topology?
    * Presentation
    * Physical
    * Transport
    * Application
    * Data-Link
    * Network
    Correct answer: E
    Layer 2 the Data-Link layer performs this function.
  152. Identify 2 reasons for disabling CDP?
    * If the router is not configured for RIP
    * Save bandwidth by eliminating overhead
    * If the router is configured for Appletalk
    * When connected to a non-Cisco router
    Correct answer: B D
    CDP can be disabled here are a couple of reasons. Connecting a Cisco router to a non-Cisco router. Don’t want to exchange CDP information to save bandwidth.
  153. Identify 3 characteristics of ISDN?
    * Transports voice and data
    * Transports voice only
    * Support both BRI and PRI
    * Runs over existing phone lines
    * Same as X.25
    Correct answer: A C D
    ISDN supports voice, data, and video. It runs over existing phone lines and supports 128K (BRI) and T1 (PRI).
  154. Identify the 3 characteristics of IGRP?
    * Uses hop count as a metric
    * Supports multiple unequal paths
    * Administrative distance is 100
    * Configured with an Autonomous system number
    * Link state
    Correct answer: B C D
    IGRP is a distance vector routing protocol, it’s degree of trustworthiness is 100, it can support up to 6 un-equal paths and must be configured with an autonomous system number.
  155. Identify 2 features of PPP CHAP authentication?
    * Username and password is sent in clear text
    * Authentication messages are sent periodically during the connection
    * Less secure then PAP
    * Local router ‘challenges’ the remote router
    Correct answer: B D
    PPP CHAP authentication message are sent periodically during the connection by challenging the other end of the connection.
    It is more secure than PAP and passwords and username are encrypted.
  156. Identify the default IPX serial encapsulation?
    * Novell-Ether
    * SDLC
    * SNAP
    * HDLC
    Correct answer: D
    The default IPX serial encapsulation is HDLC.
  157. Identify the hardware component that stores the backup configuration?
    * RAM
    * NVRAM
    * Flash
    * ROM
    Correct answer: B
    NVRAM contains the backup config. RAM is the dynamic memory area, ROM contains the boot strap code and Flash contains the IOS.
  158. Identify the extended IP access-list number range?
    * 600 - 699
    * 1 - 99
    * 900 - 999
    * 100 - 199
    Correct answer: D
    The extended IP access-list range is 100-199.
  159. Identify 3 Fast Ethernet technologies?
    * 100 Base FastEther
    * 100 Base FX
    * 100 Base T4
    * 100 Base TX
    Correct answer: B C D
  160. BaseFastEther is false. 100 Base FX, TX and T4 are all valid.
  161. Identify the OSI layer which is responsible for end-to-end connections?
    * Network
    * Transport
    * Session
    * Data link
    * TCP
    Correct answer: B
    Layer 4 is the Transport layer and is responsible for end-to-end connections.
  162. Identify the 2 characteristics regarding MAC addresses?
    * Contains a network portion and host portion
    * Always assigned by System Administrator
    * 48 bits long
    * Contains a vendor code and serial number
    Correct answer: C D
    MAC addresses are assigned by the vendor. Each MAC address is 48 bits long and made up of 24 bits vendor code and 24 bits serial number.
  163. Identify the number range for IPX SAP filters?
    * 900 - 999
    * 1000 - 1099
    * 800 -899
    * 100 - 199
    Correct answer: B
    The IPX SAP filtering range is 1000-1099.
  164. What is the purpose of ARP?
    * IP to host name resolution
    * Host name to IP address resolution
    * Mac to IP address resolution
    * IP to Mac address resolution
    Correct answer: D
    Address Resolution Protocol resolves the MAC address if the IP address is known. It is a layer 3 protocol.
  165. Which OSI layer establishes, maintains and terminates sessions between hosts?
    * Application
    * Physical
    * Data-Link
    * Presentation
    * Network
    * Session
    Correct answer: F
    Layer 5 the Session layer performs this function.
  166. Which statement is true regarding Administrative distance?
    * It is a metric
    * Number of hops between two routers
    * Trustworthiness of the routing information
    * RIP Administrative distance is 100
    Correct answer: C
    Administrative distance is rating of trustworthiness of the routing information. The lower the AD the better the information.
  167. Identify the purpose of the Ping command?
    * Share routing information with a neighbor router
    * Transmit user data when buffers are full
    * Test connectivity at layer 3
    * Test entire protocol stack
    Correct answer: C
    The ping command tests layer 3 connectivity.
  168. Identify the order of the 5 step encapsulation?
    1. Create the segment
    2. Convert the frame to bits
    3. Create the packet
    4. Create the frame
    5. User creates the data
    * 1,2,4,2,5
    * 2,1,3,4,5
    * 5,1,3,4,2
    * 5,3,4,1,2
    Correct answer: C
    Cisco 5 step encapsulation.
    1) User creates Data
    2) Data is converted into a segment at layer 4
    3) The segment is converted to packet at layer 3
    4) The packet it converted into a frame at layer 2
    5) The frame is converted into bits at layer 1
  169. The Cisco IOS is stored where?
    * ROM
    * CD
    * Flash
    * NVRAM
    Correct answer: C
    By default the Cisco IOS is stored in flash.
  170. Sequence and acknowledgement numbers are used for?
    * Layer transitioning
    * Flow control
    * Port number addressing
    * Reliability
    Correct answer: D
    TCP uses sequence numbers and acknowledgements to implement reliability.
  171. Identify IPX GNS and it’s purpose?
    * Go Network Server - sends a print job to a network server
    * Get Nearest Server - locate the nearest server
    * Guaranteed Network Services - allocates resources to users
    * Get Notes Server - locates Domino Server
    Correct answer: B
    GNS stands for Get Nearest Server, initiated by a workstation.
  172. Identify the true statement regarding subnetting?
    * Allows for more host address
    * Borrow bits from the network portion of the address
    * Allows for unlimited number of networks
    * Borrow bits from the host portion of the address
    Correct answer: D
    Subnetting involves borrowing bits for the host portion of the address to be used to subnet addressing.
  173. Inverse ARP serves what purpose?
    * Method for a local router to introduce itself to the remote end of the connection
    * Broadcast a routing table update
    * Identify MAC addresses if the IP address is known
    * Sent every 10 seconds used to verify the Frame Switch is still active
    Correct answer: A
    Inverse ARP operates in a Frame Relay network so the two end points can identify themselves to each other.
  174. Identify 3 characteristics of a MAC address?
    * Burned into the NIC
    * 48 bits long
    * Length is 32 bits
    * Used to deliver the frame to the end device
    * Contains a network portion and a host portion
    Correct answer: A B D
    The MAC address is 48 bits long not 32. It does NOT contain a network and host portion with the address. It is used to deliver the frame to the destination device.
  175. Identify 3 IP routing protocols?
    * RIP
    * AURP
    * OSPF
    * IGRP
    * ARP
    * ICMP
    Correct answer: A C D
    AURP and ICMP are not routing protocols.
  176. Identify the type of routing protocol that exchanges entire routing tables at regular intervals?
    * Link state
    * Interior gateway protocols
    * Appletalk routing
    * Distance vector
    Correct answer: D
    Distance Vector routing protocols exchange entire routing tables with it’s neighbors. Link State routing protocols exchange LSP’s to share information regarding the networks they know.
  177. Identify the type of hardware required to connect a Token ring network to an Ethernet network?
    * Repeater
    * TR-Enet
    * Router
    * Token Ring to Ethernet translation hub
    Correct answer: C
    Routers are used to connect dissimilar networks with different access-methods, like connecting Token Ring to Ethernet.
  178. Identify 3 characteristics regarding CDP?
    * On by default
    * Shows only directly connected neighbors
    * Requires IP or IPX
    * 60 second update interval by default
    * 30 second updates interval by default
    Correct answer: A B D
    CDP stands for Cisco Discovery Protocol. It is used to discover directly connected neighbors, it is on by default and has a 60 second update interval by default.
  179. Identify 2 transport layer protocols?
    * IP
    * TCP
    * CDP
    * ARP
    * UDP
    Correct answer: B E
    TPC and UDP are 2 layer4 Transport protocols.
  180. Identify 2 features of X.25?
    * Supports only IP
    * Utilizes switched and permanent virtual circuits
    * Contains minimal flow control and error recovery
    * Utilizes LAPB as it’s data-link protocol
    Correct answer: B D
    X.25 utilizes LAPB and uses switched and permanent VC’s. It supports multiple layer protocols and is heavy laden with error detection and correction mechanisms.
  181. Identify the purpose of the Trace command?
    * Explorer packet transmitting routing information
    * Test connectivity
    * Determine the path a packet is taking through the network
    * Transmits user data when buffers are full
    Correct answer: C
    The trace command is used to determine the path a packet has taken through the network.
  182. Identify the purpose of the TCP 3 step handshake?
    * Setup a un-reliable connection
    * Initialize routing tables
    * Synchronize sequence numbers between hosts
    * Connection tear down process
    Correct answer: C
    The 3 step handshake establishes the parameters required for a TCP connection. During the handshake process sequence numbers are synchronized allowing for the end points to properly acknowledge and re-assemble the segments.
  183. Identify 2 PPP characteristics?
    * Is proprietary to Cisco
    * Supports authentication
    * Support compression
    * Run on a multi-access network
    Correct answer: B C
    PPP supports authentication; PAP and CHAP. It also supports compression; Stacker and Predictor.
  184. Which statement is true regarding half duplex?
    * Only works in a point-to-point configuration
    * Allows for transmitting and receiving but not a the same time
    * Allow for transmitting and receiving of data simultaneously
    * Doubles the bandwidth
    Correct answer: B
    Half duplex is analogous to a single a lane bridge, it can handle traffic in both directions but no at the same time.
  185. Identify the purpose of the wildcard mask?
    * Match a certain portion of the IP address while ignoring the rest of the address
    * Determine the class of the IP address
    * Determine the network portion of an IP address
    * Hide the host portion of an IP address
    Correct answer: A
    The purpose of the wildcard mask to match a certain portion of the IP address while ignoring the rest.
  186. Identify the OSI layer associated with bits?
    * Physical
    * Network
    * Binary
    * Data link
    Correct answer: A
    The Physical layer converts the frames to bits.
  187. Identify the type of routing protocol that maintains a topological database of the network?
    * Topological state
    * Shortest Path First
    * Link state
    * Distance vector
    Correct answer: C
    Link State routing protocols maintain a database that lists all the networks in the internetwork.
  188. Identify the 3 major functions at layer 3 of the OSI model?
    * Forwarding process
    * Logical addressing
    * End-to-end connections
    * Path selection
    * MAC address examination
    * Network monitoring
    Correct answer: A B D
    Layer 3 determines the path, forwards the packet and implements software or logical addressing.
  189. Identify the 2 rules used when configuring a Distance Vector routing protocol?
    * Physically connected network(s)
    * Configure the classful address, no subnets
    * Enable CDP so neighbors can be detected
    * Configure all networks in Area0
    Correct answer: A B
    When configuring a Distance Vector routing protocol only assign the physically connected networks with the classful address only.
  190. Identify 3 characteristics of an IP address?
    * Contains a network portion and a host portion
    * 32 bits long
    * Unique to each network
    * Part of the default Cisco configuration
    * Referred to as the hardware address
    Correct answer: A B C
    An IP address is 32 bits long, it is referred as the logical or software address. It contains a network and host portion. Each IP address is unique.
  191. Identify 3 feature of access-lists?
    * Implicit deny will deny any packets not matched
    * Processed sequentially from bottom to top
    * Processed sequentially from top to bottom
    * If a packet is denied it would be tested against the remaining statements in the access-list
    * Once a match is made the packet is either denied or permitted
    * Enabled on all interfaces by default
    Correct answer: A C E
    Access-list are processed from top to bottom, once a match occurs the packet is either denied or permitted and is no longer tested and if no match occurs the packet is denied via the implicit deny.
  192. Which OSI layer performs code conversion, code formatting and encryption?
    * Physical
    * Data-Link
    * Application
    * Transport
    * Presentation
    * Network
    Correct answer: E
    Layer 6 the Presentation layers performs this function.
  193. Identify the 3 methods routers learn paths to destinations?
    * Dynamic routing
    * None of the above, configured by default
    * Default routes
    * Administrative distance
    * Static routes
    Correct answer: A C E
    Routers can learn paths via 3 different sources; static routes, dynamic routing protocols (i.e. RIP) and default routes.
  194. Identify the purpose of the following command ‘ip route 192.168.100.0 255.255.255.0 10.1.0.1′
    * Enabling a dynamic routing protocol
    * Creating a static route to the 10.1.0.0 network
    * Teaches the router about the distant network 192.168.100.0 and how it can be reached via 10.1.0.1
    * Assigning the IP address 192.168.100.0 to an interface
    Correct answer: C
    A static routes teaches the router about a distant network and the next hop to reach that network. Command syntax:
    ip route network-address subnet-mask next-hop-address
  195. Based upon the 1st octet rule identify the range for a Class A address?
    * 1 - 126
    * 192 - 223
    * 128 - 191
    * 1 - 191
    Correct answer: A
    Class A address has the 1st octet between 1 - 126. Class B between 128 - 191 and Class C between 192 - 223.
  196. What does a Standard IP Access-list use as test criteria?
    * IP source address
    * IP source and destination address, protocol numbers and port numbers
    * IPX source and destination address
    * Source MAC address
    Correct answer: A
    Standard IP access list use only source address.
  197. What is the function of the Transport layer and which protocols reside there?
    * MAC addressing - IP
    * Interhost communication - SQL, NFS
    * Best effort Packet delivery - TCP, UDP
    * End-to-end connections - TCP, UDP
    Correct answer: D
    Layer 4, the Transport layer, is responsible for end-to-end connections. The two TCP/IP protocols that reside there are TCP and UDP.
  198. Identify the 3 Internet layer IP protocols?
    * NetBios
    * IPX
    * ARP
    * IP
    * RARP
    Correct answer: C D E
    NetBios and IPX are not layer 3 IP protocols. IP - Internet Protocol, ARP - Address Resolution Protocol and RARP - Reverse Address Resolution Protocol.
  199. IPX routing updates occur how often?
    * Every 30 seconds
    * Every 60 seconds
    * Only as needed
    * When the remote router asks for an update
    Correct answer: B
    IPX RIP updates are exchanged every 60 seconds.
  200. Identify 3 methods not used to prevent routing loops?
    * Holddown timers
    * Sequence numbers
    * Triggered updates
    * Split horizon
    * Area hierarchies
    * Order of router startup
    Correct answer: B E F
    Area hierarchies, sequence numbers and order of router startup all relate to Link State routing protocols which do NOT incur routing loops.
  201. Identify the hardware component that stores the bootstrap program?
    * ROM
    * NVRAM
    * Booter load
    * RAM
    * Flash
    Correct answer: A
    ROM contains the boot strap code.
  202. Which OSI layer provides mechanical, electrical, procedural for activating, maintaining physical link?
    * Presentation
    * Network
    * Application
    * Physical
    * Transport
    * Data-Link
    Correct answer: D
    Layer 1 the Physical layer performs this function.
  203. Identify 2 characteristics of PPP?
    * Uses LLC to establish the link
    * Default serial encapsulation
    * Support multiple layer 3 protocols
    * Offers two types of authentication; PAP and CHAP
    Correct answer: C D
    PPP is not the default encapsulation and uses LCP not LLC to establish the link. It support multiple layer 3 protocols and supports authentication.
  204. Identify 3 characteristics of a connection oriented protocol?
    * Path determination
    * Flow control
    * Acknowledgements
    * Uses hop count as metric
    * 3 step handshake
    Correct answer: B C E
    Connection oriented protocols must first establish the connection (3 step handshake), employ methods to acknowledge the receipt of data (acknowledgements) and slow down the flow of data if required (flow control).
  205. What is the maximum hop count for IP RIP?
    * Infinity
    * 16
    * 15
    * 1
    Correct answer: C
  206. is the maximum hop count, underscoring the size limitation of RIP.
  207. What is Cisco’s default encapsulation method on serial interfaces?
    * ANSI
    * Cisco
    * Q933a
    * HDLC
    Correct answer: D
    Cisco’s implementation of HDLC is only compatible with Cisco routers. It is the default encapsulation type for serial interfaces.
  208. Which of the following is a characteristic of a switch, but not of a repeater?
    * Switches forward packets based on the IPX or IP address in the frame
    * Switches forward packets based on the IP address in the frame
    * Switches forward packets based on the MAC address in the frame
    * Switches forward packets based only on the IP address in the packet
    Correct answer: C
    A repeater regenerates the signal it receives, a switch makes decisions based upon MAC addresses to determine whether a frame should be forwarded. Repeaters forward all packets.
  209. Ping uses which Internet layer protocol?
    * RARP
    * ICMP
    * ARP
    * FTP
    Correct answer: B
    Internet Control Message Protocol - ICMP is a management protocol and messaging service provider for IP. Its messages are carried as IP datagrams.
    ICMP is used in the following events:
    Destination Unreachable - If a router cannot send an IP packet any further, it uses an ICMP echo to send a message back to the sender notifying it that the remote node is unreachable.
    Buffer Full - If a routers memory buffer is full ICMP will send out a message to the originator.
    Hops - Each IP datagram is assigned a path. This consists of hops. If it goes through the maximum number of hops, the packet is discarded and the discarding router sends an ICMP echo to the host.
    Ping - Ping use ICMP echo message to check connectivity.
  210. Which is true regarding store-and-forward switching method?
    * Latency varies depending on frame-length
    * Latency is constant
    * It is default for all Cisco switches
    * It only reads the destination hardware address before forwarding the frame
    Correct answer: A
    Store-and-Forward switching copies the entire frame into its buffer and computes the CRC. If a CRC error is detected, the frame is discarded, or if the frame is a runt (less than 64 bytes including the CRC) or a giant (more than 1518 bytes including the CRC). The LAN switch then looks up the destination address in its switching table and determines the outgoing interface. The frame is then forwarded to the outgoing interface. Cisco Catalyst 5000 switches uses the Store-and-Forward method. The problem with Store-and-Forward switching is latency is increased. Latency also varies with the size of the frame. The larger the frame, the more latency associated. This of course is due to the fact that the entire frame is copied into its buffer before being forwarded.
  211. Which three of the following are true statements about connection-oriented sessions?
    * The segments delivered are acknowledged back to the sender upon their reception
    * Any segments not acknowledged the are retransmitted by the receiver
    * A manageable data flow is maintained in order to avoid congestion, overloading and loss of any data
    * Segments are sequenced back into their proper order upon arrival at their destination
    Correct answer: A C D
    Connection-oriented services are useful for transmitting data from applications that are intolerant of delays and packet re-sequencing. FTP and Telnet applications are based on connection-oriented services as well as some voice and video programs. Any segment that is not acknowledged by the received is retransmitted by the sender.
  212. What does a metric of 16 hops represent when using RIP?
    * Number of hops to the destination
    * Destination unreachable
    * Number of routers
    * Bandwidth
    Correct answer: B
    Routing Information Protocol (RIP) is a distance vector routing protocol that used hop count as its metric. The maximum hop count is 15, 16 hops is considered unreachable. RIP updates are broadcast every 30 seconds by default. RIP has an administrative distance of 120.
  213. You need to come up with a TCP/IP addressing scheme for your company. Which two factors must you consider when you define the subnet mask for the network?
    * The location of DHCP servers
    * The volume of traffic on each subnet
    * The number of subnets on the network
    * The location of the default gateway
    * The number of host IDs on each subnet

    Correct answer: C E
    When determining which subnet mask to use, you must determine how many hosts and how many subnets are required.

  214. What is the difference between TCP and UDP?
    * TCP is connection-oriented; UDP uses acknowledgements only
    * TCP is connection-oriented; UDP is connectionless
    * Both TCP and UDP are connection-oriented, but only TCP uses windowing
    * TCP and UDP both have sequencing, but UDP is connectionless
    The correct answer(s): B
    TCP provides guaranteed connection oriented delivery of packets, UDP does not.
  215. What does the ‘S’ mean when looking at the routing table?
    * Statically connected
    * Directly connected
    * Dynamically attached
    * Shutdown route
    Correct answer: A
    Statically connected routes are those that an administrator has manually entered into the routing table.
  216. Why would you use static routing instead of dynamic routing?
    * When you want automatic updates of the routing tables
    * All the time
    * When you have very few routes and want to conserve bandwidth
    * When you have a gateway of last resort
    Correct answer: C
    Static routes are typically used when there are very few routes and you want to conserve bandwidth. Since routing protocols are constantly sending their updates across the wire, it can cause a great deal of congestion.
  217. On Cisco catalyst 5000 how would you set the second port on the controller in the first slot to full duplex?
    * Set port duplex 1/1 full
    * Set port duplex 1/2 full
    * Set port duplex 0/1 full
    * Set port duplex 0/2 full
    Correct answer: B
    The syntax is: set type duplex slot/port
  218. What does the acronym ARP stand for?
    * Address Resolution Phase
    * ARP Resolution Protocol
    * Address Resolution Protocol
    * Address Recall Protocol
    Correct answer: C
    The Address Resolution Protocol (ARP) resolved IP addresses to MAC addresses.
  219. What is the default encapsulation of Netware 3.12?
    * Ethernet_II
    * 802.5
    * 802.2
    * 802.3
    Correct answer: C
    The 802.2 Frame Type is the default frame-type for Netware 3.12.
  220. Regarding frame relay, which of the following statements are true?
    * You must use ANSI encapsulation if connecting to non-Cisco equipment
    * You must use IETF encapsulation if connecting to non-Cisco equipment
    * You must use Q.933a encapsulation if connecting to non-Cisco equipment
    * You must use Cisco encapsulation if connecting to non-Cisco equipment
    Correct answer: B
    Cisco’s encapsulation for Frame relay is proprietary. To communicate with non-Cisco equipment when using frame-relay encapsulation, the IETF method must be used.
  221. What is required to support full-duplex Ethernet?
    * Multiple paths between multiple stations on a link
    * Automatic sensing operation by all connected stations
    * Loopback and collision detection disabled
    * Full-duplex NIC cards
    Correct answer: C D
    Full duplex ethernet requires that the NIC supports full-duplex, and loopback and collision detection are disabled.
  222. Which layer is responsible for determining if sufficient resources for the intended communication exists?
    * Application
    * Network
    * Session
    * Presentation
    * Transport
    Correct answer: A
    The Application layer is responsible for determining if sufficient resources for the intended communication exists.
  223. What are the 2 functions of the Data Link Mac layer?
    * Handles access to shared media
    * Manages protocol access to the physical network medium
    * Provides SAPs for higher level protocols
    * Allows multiple devices to uniquely identify one another on the data link layer
    Correct answer: B D
    Media Access Control (MAC) -The MAC sublayer manages protocol access to the physical network medium. The IEEE MAC specification defines MAC addresses, which allow multiple devices to uniquely identify one another at the data link layer.
  224. Describe End to End network services: (Choose all that apply)
    * Best Route selection
    * Accomplished Segment by Segment, each segment is autonomous
    * Flow Control & Data Integrity
    * Best efforts packet delivery
    Correct answer: A B C D
    All of the above End to End network services.
  225. Which of the following provide correct information about a protocol at the transport layer of the OSI model?
    * UDP - Provides Connectionless datagrams service
    * TCP - Provides Connection Oriented Services
    * SMTP - Provides Mail Exchange
    * IP - Route determination
    * TCP - Provides Flow Control and Error Checking
    * FTP - Transfers of Files
    Correct answer: A B E
    Only TCP and UDP work at the Transport layer of the above choices. IP is a Network layer protocol. SMTP and FTP are application layer protocols.
  226. Which protocol works at the Internet layer and is responsible for making routing decisions?
    * UDP
    * IP
    * TCP
    * ARP
    Correct answer: B
    Internet Protocol - IP provides routing and a single interface to the upper layers. No upper layer protocol and now lower layer protocol have any functions relating to routing. IP receives segments from the transport layer and fragments them into packets including the hosts IP address.
  227. Which layer is responsible for providing mechanisms for multiplexing upper-layer application, session establishment, and tear down of virtual circuits?
    * Session
    * Network
    * Physical
    * Transport
    * Application
    * Presentation
    Correct answer: D
    The Transport layer does the following: Responsible for end-to-end integrity of data transmission. Handles multiplexing upper-layer application, session establishment and tear down of virtual circuits. Hides details of network dependent info from the higher layers by providing transparent data transfer. The ‘windows’ works at this level to control how much information is transferred before an acknowledgement is required.
  228. Which of the following are logged when IP access list logging is enabled?
    * source address
    * protocol
    * source port
    * destination address
    * access list number
    * destination port
    Correct answer: A B C D E F
    All of the above are logged when IP access list logging is enabled.
  229. What’s the default CDP holdtime in seconds for Cisco routers?
    * 30 seconds
    * 180 seconds
    * 90 seconds
    * 60 seconds
    Correct answer: B
    Cisco Discovery Protocol is a proprietary protocol to allow you to access configuration information on other routers and switches with a single command. It uses SNAP at the Data-Link Layer. By default CDP sends out a broadcast every 60 seconds and it holds this information for 180 seconds. CDP is enabled by default.
  230. Which two of the following protocols are used at the Transport layer?
    * ARP
    * UDP
    * ICMP
    * RARP
    * TCP
    * BootP
    Correct answer: B E
    TCP and UDP operate at the Transport layer.
  231. LAN stands for which of the following?
    * Local Area Network
    * Local Arena Network
    * Local Area News
    * Logical Area Network
    Correct answer: A
    LAN stands for Local Area Network
  232. Choose three reasons why the networking industry uses a layered model:
    * It facilitates systematic troubleshooting
    * It allows changes in one layer to occur without changing other layers
    * It allows changes to occur in all layers when changing one protocol
    * It clarifies how to do it rather than what general function to be done
    * It clarifies what general function is to be done rather than how to do it
    Correct answer: A B E
    Why do we have a Layered Model?
    1) It reduces complexity
    2) Allows for a standardized interface
    3) Facilitates modular engineering
    4) Ensures interoperable technology
    5) Accelerates evolution
    6) Simplifies teaching and learning
  233. Which layer is responsible for identifying and establishing the availability of the intended communication partner?
    * Application
    * Presentation
    * Transport
    * Session
    * Network
    Correct answer: A
    The Application layer performs the following: Synchronizing sending and receiving applications. Program-to program communication. Identify and establish the availability of the intended communication partner, and determine if sufficient resources exist for the communication. Popular application protocols include WWW, SMTP, EDI, FTP, Telnet, and SNMP

Windows Administrator Interview Questions

  1. What is Active Directory?
  2. What is LDAP?
  3. Can you connect Active Directory to other 3rd-party Directory Services? Name a few options.
  4. Where is the AD database held? What other folders are related to AD?
  5. What is the SYSVOL folder?
  6. Name the AD NCs and replication issues for each NC
  7. What are application partitions? When do I use them
  8. How do you create a new application partition
  9. How do you view replication properties for AD partitions and DCs?
  10. What is the Global Catalog?
  11. How do you view all the GCs in the forest?
  12. Why not make all DCs in a large forest as GCs?
  13. Trying to look at the Schema, how can I do that?
  14. What are the Support Tools? Why do I need them?
  15. What is LDP? What is REPLMON? What is ADSIEDIT? What is NETDOM? What is REPADMIN?
  16. What are sites? What are they used for?
  17. What’s the difference between a site link’s schedule and interval?
  18. What is the KCC?
  19. What is the ISTG? Who has that role by default?
  20. What are the requirements for installing AD on a new server?
  21. What can you do to promote a server to DC if you’re in a remote location with slow WAN link?
  22. How can you forcibly remove AD from a server, and what do you do later? • Can I get user passwords from the AD database?
  23. What tool would I use to try to grab security related packets from the wire?
  24. Name some OU design considerations.
  25. What is tombstone lifetime attribute?
  26. What do you do to install a new Windows 2003 DC in a Windows 2000 AD?
  27. What do you do to install a new Windows 2003 R2 DC in a Windows 2003 AD?
  28. How would you find all users that have not logged on since last month?
  29. What are the DS* commands?
  30. What’s the difference between LDIFDE and CSVDE? Usage considerations?
  31. What are the FSMO roles? Who has them by default? What happens when each one fails?
  32. What FSMO placement considerations do you know of?
  33. I want to look at the RID allocation table for a DC. What do I do?
  34. What’s the difference between transferring a FSMO role and seizing one? Which one should you NOT seize? Why?
  35. How do you configure a “stand-by operation master” for any of the roles?
  36. How do you backup AD?
  37. How do you restore AD?
  38. How do you change the DS Restore admin password?
  39. Why can’t you restore a DC that was backed up 4 months ago?
  40. What are GPOs?
  41. What is the order in which GPOs are applied?
  42. Name a few benefits of using GPMC.
  43. What are the GPC and the GPT? Where can I find them?
  44. What are GPO links? What special things can I do to them?
  45. What can I do to prevent inheritance from above?
  46. How can I override blocking of inheritance?
  47. How can you determine what GPO was and was not applied for a user? Name a few ways to do that.
  48. A user claims he did not receive a GPO, yet his user and computer accounts are in the right OU, and everyone else there gets the GPO. What will you look for?
  49. Name a few differences in Vista GPOs
  50. Name some GPO settings in the computer and user parts.
  51. What are administrative templates?
  52. What’s the difference between software publishing and assigning?
  53. Can I deploy non-MSI software with GPO?
  54. You want to standardize the desktop environments (wallpaper, My Documents, Start menu, printers etc.) on the computers in one department. How would you do that?
  55. Explain hidden shares. Hidden or administrative shares are share names with a dollar sign ($) appended to their names. Administrative shares are usually created automatically for the root of each drive letter. They do not display in the network browse list.
  56. How do the permissions work in Windows 2000? What permissions does folder inherit from the parent? When you combine NTFS permissions based on users and their group memberships, the least restrictive permissions take precedence. However, explicit Deny entries always override Allow entries.
  57. Why can’t I encrypt a compressed file on Windows 2000? You can either compress it or encrypt it, but not both.
  58. If I rename an account, what must I do to make sure the renamed account has the same permissions as the original one? Nothing, it’s all maintained automatically.
  59. What’s the most powerful group on a Windows system? Administrators.
  60. What are the accessibility features in Windows 2000? StickyKeys, FilterKeys Narrator, Magnifier, and On-Screen Keyboard.
  61. Why can’t I get to the Fax Service Management console? You can only see it if a fax had been installed.
  62. What do I need to ensure before deploying an application via a Group Policy? Make sure it’s either an MSI file, or contains a ZAP file for Group Policy.
  63. How do you configure mandatory profiles? Rename ntuser.dat to ntuser.man
  64. I can’t get multiple displays to work in Windows 2000. Multiple displays have to use peripheral connection interface (PCI) or Accelerated Graphics Port (AGP) port devices to work properly with Windows 2000.
  65. What’s a maximum number of processors Win2k supports? 2
  66. I had some NTFS volumes under my Windows NT installation. What happened to NTFS after Win 2k installation? It got upgraded to NTFS 5.
  67. How do you convert a drive from FAT/FAT32 to NTFS from the command line? convert c: /fs:ntfs
  68. Explain APIPA. Auto Private IP Addressing (APIPA) takes effect on Windows 2000 Professional computers if no DHCP server can be contacted. APIPA assigns the computer an IP address within the range of 169.254.0.0 through 169.254.255.254 with a subnet mask of 255.255.0.0.
  69. How does Internet Connection Sharing work on Windows 2000? Internet Connection Sharing (ICS) uses the DHCP Allocator service to assign dynamic IP addresses to clients on the LAN within the range of 192.168.0.2 through 192.168.0.254. In addition, the DNS Proxy service becomes enabled when you implement ICS.
  70. Describe how the DHCP lease is obtained. It’s a four-step process consisting of (a) IP request, (b) IP offer, © IP selection and (d) acknowledgement.
  71. I can’t seem to access the Internet, don’t have any access to the corporate network and on ipconfig my address is 169.254.*.*. What happened? The 169.254.*.* netmask is assigned to Windows machines running 98/2000/XP if the DHCP server is not available. The name for the technology is APIPA (Automatic Private Internet Protocol Addressing).
  72. We’ve installed a new Windows-based DHCP server, however, the users do not seem to be getting DHCP leases off of it. The server must be authorized first with the Active Directory.
  73. How can you force the client to give up the dhcp lease if you have access to the client PC? ipconfig /release
  74. What authentication options do Windows 2000 Servers have for remote clients? PAP, SPAP, CHAP, MS-CHAP and EAP.
  75. What are the networking protocol options for the Windows clients if for some reason you do not want to use TCP/IP? NWLink (Novell), NetBEUI, AppleTalk (Apple).
  76. What is data link layer in the OSI reference model responsible for? Data link layer is located above the physical layer, but below the network layer. Taking raw data bits and packaging them into frames. The network layer will be responsible for addressing the frames, while the physical layer is reponsible for retrieving and sending raw data bits.
  77. What is binding order? The order by which the network protocols are used for client-server communications. The most frequently used protocols should be at the top.
  78. How do cryptography-based keys ensure the validity of data transferred across the network? Each IP packet is assigned a checksum, so if the checksums do not match on both receiving and transmitting ends, the data was modified or corrupted.
  79. Should we deploy IPSEC-based security or certificate-based security? They are really two different technologies. IPSec secures the TCP/IP communication and protects the integrity of the packets. Certificate-based security ensures the validity of authenticated clients and servers.
  80. What is LMHOSTS file? It’s a file stored on a host machine that is used to resolve NetBIOS to specific IP addresses.
  81. What’s the difference between forward lookup and reverse lookup in DNS? Forward lookup is name-to-address, the reverse lookup is address-to-name.
  82. How can you recover a file encrypted using EFS? Use the domain recovery agent.

Unix Administrator Interview Questions

Unix & Linux admin questions

  1. How do you list the files in an UNIX directory while also showing hidden files?
  2. How do you execute a UNIX command in the background?
  3. What UNIX command will control the default file permissions when files are created?
  4. Explain the read, write, and execute permissions on a UNIX directory.
  5. What is the difference between a soft link and a hard link?
  6. Give the command to display space usage on the UNIX file system.
  7. Explain iostat, vmstat and netstat.
  8. How would you change all occurrences of a value using VI?
  9. Give two UNIX kernel parameters that effect an Oracle install
  10. Briefly, how do you install Oracle software on UNIX.
  11. What are the main differences between Apache 1.x and 2.x?
  12. What does the “route” command do?
  13. What are the read/write/execute bits on a directory mean?
  14. What does iostat do?
  15. what does vmstat do?
  16. What does netstat do?
  17. What is the most graceful way to bring a system into single user mode?
  18. How do you determine disk usage?
  19. What is AWK?
  20. What is SED?
  21. What is the difference between binaries in /bin, and /usr/bin?
  22. What is a dynamically linked file?
  23. What is a statically linked file?
  24. How do you list the files in an UNIX directory while also showing hidden files? ls -ltra
  25. How do you execute a UNIX command in the background? Use the “&”.
  26. What UNIX command will control the default file permissions when files are created? umask
  27. Explain the read, write, and execute permissions on a UNIX directory. Read allows you to see and list the directory contents. Write allows you to create, edit and delete files and subdirectories in the directory. Execute gives you the permissions to run programs or shells from the directory.
  28. What is the difference between a soft link and a hard link? A symbolic (soft) linked file and the targeted file can be located on the same or different file system while for a hard link they must be located on the same file system.
  29. Give the command to display space usage on the UNIX file system. df -lk
  30. Explain iostat, vmstat and netstat. iostat reports on terminal, disk and tape I/O activity. vmstat reports on virtual memory statistics for processes, disk, tape and CPU activity. netstat reports on the contents of network data structures.
  31. How would you change all occurrences of a value using VI? %s/(old value)/(new value)/g
  32. Give two UNIX kernel parameters that effect an Oracle install. SHMMAX & SHMMNI
  33. Briefly, how do you install Oracle software on UNIX? Basically, set up disks, kernel parameters, and run orainst.
  34. Job Scheduling; mainly crontab, at, batch command
  35. Backup stetegy; incremental, full system back up; diff between tar & ufsdump
  36. diff between hard link & softlink
  37. How to list only the directories inside a directory (Ans. ls -l|grep "^d")
  38. RAID levels; pros & cons of diffrent levels; what is RAID 1+0
  39. How to recover a system whose root password has lost?
  40. What is a daemon?
  41. How to put a job in background & bring it to foreground?
  42. What is default permissions for others in a file?
  43. Questions on shell initialization scripts?
  44. Questions on restricted shell
  45. What is diff betwn grep & find?
  46. What is egrep?
  47. Questions on shell programming
  48. What is a pipe?
  49. Questions on Solaris patch management like pkgadd etc
  50. Questions on file system creation; actually what happens when we create a file system?
  51. Questions on RBAC? what is a role accound & what is a profile?
  52. From command line how will you add a user account? the full command will all arguments.
  53. Fs it advisable to put a swap partion in RAID1 (mirroring?) pros & cons?

Linux Interview Questions

What is LILO?

LILO stands for Linux boot loader. It will load the MBR, master boot record, into the memory, and tell the system which partition and hard drive to boot from.

What is the main advantage of creating links to a file instead of copies of the file?

A: The main advantage is not really that it saves disk space (though it does that too) but, rather, that a change of permissions on the file is applied to all the link access points. The link will show permissions of lrwxrwxrwx but that is for the link itself and not the access to the file to which the link points. Thus if you want to change the permissions for a command, such as su, you only have to do it on the original. With copies you have to find all of the copies and change permission on each of the copies.

Write a command to find all of the files which have been accessed within the last 30 days.

find / -type f -atime -30 > December.files

This command will find all the files under root, which is ‘/’, with file type is file. ‘-atime -30′ will give all the files accessed less than 30 days ago. And the output will put into a file call December.files.

What is the most graceful way to get to run level single user mode?

A: The most graceful way is to use the command init s.
If you want to shut everything down before going to single user mode then do init 0 first and from the ok prompt do a boot -s.

What does the following command line produce? Explain each aspect of this line.

$ (date ; ps -ef | awk ‘{print $1}’ | sort | uniq | wc -l ) >> Activity.log

A: First let’s dissect the line: The date gives the date and time as the first command of the line, this is followed by the a list of all running processes in long form with UIDs listed first, this is the ps -ef. These are fed into the awk which filters out all but the UIDs; these UIDs are piped into sort for no discernible reason and then onto uniq (now we see the reason for the sort - uniq only works on sorted data - if the list is A, B, A, then A, B, A will be the output of uniq, but if it’s A, A, B then A, B is the output) which produces only one copy of each UID.

These UIDs are fed into wc -l which counts the lines - in this case the number of distinct UIDs running processes on the system. Finally the results of these two commands, the date and the wc -l, are appended to the file "Activity.log". Now to answer the question as to what this command line produces. This writes the date and time into the file Activity.log together with the number of distinct users who have processes running on the system at that time. If the file already exists, then these items are appended to the file, otherwise the file is created.


  • Give an example of set of shell commands that will give you the number of files in a directory
  • How do you tell what process has a TCP port open in Linux
  • On a Red Hat Linux Variant how do you control whether a service starts when the system boots
  • How do you tell the amount of free disk space left on a volume
  • Give an example of a set of shell commands to tell how many times “bob” has logged on to the system this month
  • Give an example of a recursively copying a directory from one location to another.
  • How do you modify the IP and Net mask of a system running a Red Hat Variant of Linux
  • Give an example of a set of shell commands that will give you the number of “httpd” processes running on a Linux box.
  • On CentOS or Fedora based system using the package management application, how do you tell what package provided the file “libnss_ldap.so”
  • What is the difference between VTP client, server, and transparent
  • What is the maximum length of CAT6
  • How does one set up a layer two link to share VLANs
  • How does one implement redundant links at Layer 2
  • What is the difference between a hub, switch, and a router? What are the security advantages of switch vs. hub?
  • Show an example of using telnet to learn the headers of an http server.
  • In what OSI layer does PPP exist
  • What’s the difference between TCP and UDP
  • Given a DNS server that has just started (with an empty cache) and host contacting this DNS server (using it’s OS setting) to learn an address for google.com, list the steps the DNS server will take to learn it with IP addresses (each step will have multiple possible IP addresses – you need choose only one per step).
  • Why are layer 2 loops bad, and what protocol was designed to prevent them
  • Given a radius server at 10.0.0.2 and a shared key of ‘abc123′ show the IOS commands necessary to authenticate switch users against the radius server, while still allowing the use of local username / password pairs

Howto Linux Compiling

Introduction

Why Rebuild?

Why rebuild the kernel? The main reason was once to optimize the kernel to your environment (hardware and usage patterns). With modern hardware there is rarely a need to recompile unless there is a particular feature of a new kernel that you must have. The performance gains are probably not noticeable unless specific benchmarks are being run.

This said, the newest Linux kernel (2.6.5 as of this writing) has noticeable improvements for the typical desktop user as a result of the improved scheduling system in the new kernel. Even for older kernels, rebuilding is often necessary for low memory situations, esoteric hardware, and in cases where every ounce of performance must be extracted.

This guide covers the steps necessary to build both the 2.4.x and 2.6.x series of kernels. Because the process is quite different from one version to the next, the two kernel versions are described in separate chapters.


What is the kernel?

The Linux kernel is often likened to the conductor in an orchestra. Among other things, it makes sure that all other processes in the system work together coherently. Though it is only a small part of the operating system, the kernel has the most important job of keeping everything else synchronized.


Preparation

Hardware Requirements

Hardware requirements can differ greatly between kernel versions, and indeed, within versions depending upon the configuration. Though the Linux 2.4.x kernel can boot with as little as 8M of RAM, a more realistic number is about 64M. As of this writing, the published minimum hardware required for the typical distribution is about 128M RAM, 2G of hard drive space, and 200MhZ Pentium or equivalent CPU. To actually build the kernel, however, requires a little extra hardware. The kernel sources themselves will occupy anywhere from 40M to 80M of filesystem space. To build them requires a minimum of 400M of drive space for all the interim files. The actual kernel and included modules will require anywhere from 4M for an almost useless, bare minimum kernel to about 40M fully loaded. [1] Luckily, the kernel does not need to be built on the same machine on which it will be deployed. This means that you can compile and package your kernel on a more robust machine and then install on the minimal system.


Software Requirements

The minimum software versions for a kernel build are found in the ./Documentation/Changes file of the installed sources. They are as follows: 2.4.x series

  o  Gnu C                  2.91.66     # gcc --version
o Gnu make 3.77 # make --version
o binutils 2.9.1.0.25 # ld -v
o util-linux 2.10o # fdformat --version
o modutils 2.4.2 # insmod -V
o e2fsprogs 1.19 # tune2fs
o reiserfsprogs 3.x.0b # reiserfsck 2>&1|grep reiserfsprogs
o pcmcia-cs 3.1.21 # cardmgr -V
o PPP 2.4.0 # pppd --version
o isdn4k-utils 3.1pre1 # isdnctrl 2>&1|grep version

2.6.x series
  o  Gnu C                  2.95.3       # gcc --version
o Gnu make 3.78 # make --version
o binutils 2.12 # ld -v
o util-linux 2.10o # fdformat --version
o module-init-tools 0.9.10 # depmod -V
o e2fsprogs 1.29 # tune2fs
o jfsutils 1.1.3 # fsck.jfs -V
o reiserfsprogs 3.6.3 # reiserfsck -V 2>&1|grep reiserfsprogs
o xfsprogs 2.1.0 # xfs_db -V
o pcmcia-cs 3.1.21 # cardmgr -V
o quota-tools 3.09 # quota -V
o PPP 2.4.0 # pppd --version
o isdn4k-utils 3.1pre1 # isdnctrl 2>&1|grep version
o nfs-utils 1.0.5 # showmount --version
o procps 3.1.13 # ps --version
o oprofile 0.5.3 # oprofiled --version
A common sticking point on distributions transitioning between 2.4.x and 2.6.x kernels is the module-init-tools package which must be updated to work with the 2.6.x kernel. Also, be aware that the underlying version of glibc, the GNU libc package, is implied. If you are upgrading from particularly old distributions then you will likely need to upgrade glibc itself. [2]

Determine Current Hardware

Once you have determined that your hardware and software meet the minimum requirements for the kernel build, we will need to collect more detailed information about the system. This is needed during the configuration process when we decide which hardware will be supported under our new kernel. Among the information we will gather include: Processor, Drive type and Controller (SCSI, IDE), Ethernet devices, Graphics and Sound Cards, USB HUB.

We start by running the /sbin/lspci utility to print information about our hardware:

   $ /sbin/lspci
  00:00.0 Host bridge: Silicon Integrated Systems [SiS] 735 Host (rev 01)
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] 5591/5592 AGP
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] 85C503/5513
00:02.2 USB Controller: Silicon Integrated Systems [SiS] 7001 (rev 07)
00:02.3 USB Controller: Silicon Integrated Systems [SiS] 7001 (rev 07)
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev d0)
00:02.7 Multimedia audio controller: SiS7012 PCI Audio Accelerator (rev a0)
00:03.0 Ethernet controller: [SiS] SiS900 10/100 Ethernet (rev 90)
01:00.0 VGA compatible controller: ATI Technologies Inc Rage 128 RF/SG AGP
Next, we must determine our processor type if not known. Some Linux systems contain a /proc filesystem that allows a user to view raw information about the system. If /proc exists you can issue the following command to get CPU information:
   $ cat /proc/cpuinfo
  processor       : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 6
model name : AMD Athlon(tm) XP 1800+
stepping : 2
cpu MHz : 1526.870
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge
bogomips : 3047.42

Acquiring the Sources

There are many ways to acquire the Linux kernel sources. If you are using a packaged distribution then most likely the distributor will bundle a kernel source package. These are installable via the package installation method, whether RPM, apt, YAST, portage, etc.. If you decide to go this route, please consult your distribution's documentation for specifics.

The other option is to use the "pristine" sources, either the "official" sources from Linus Torvalds himself, or one of the regularly maintained trees from people such as Alan Cox, Robert Love, Andrew Morton, et al.. These sources are often on the bleeding-edge of kernel development, full of new features and untested code.

Untested code? This is a feature of the distributed development model of Linux and Open Source (??) in general. The traditional model of a software release is somewhat antithetical to this model, as new code must be released to allow all developers to test and improve the code. However, because Linux is used in production environments throughout world it is necessary to separate the unstable development tree from the tested, stable tree. This is done through the version number of the kernel. There are three main numbers associated with the kernel -- the Major, Minor, and PatchLevel fields. The Major number rarely changes, and then only when/if the entire architecture is revamped. The Minor number changes more frequently, perhaps once every couple years. Kernels with an odd Minor number are considered unstable, testing branches. Kernels with an even Minor number are generally rock solid. The PatchLevel is updated frequently, sometimes more than once a week in extreme cases.

To recap, you can build either from your distribution's modified kernel sources or from the stable or unstable branch of the offical sources. If you are making minor modifications to the configuration, it is perhaps safest to install your distributor's version. These kernels usually include stability and feature patches that may be missing from the stock kernels. For example, some distributors will include low-latency or security patches and do the more difficult work of integrating these into their system. The downside is that the distributors tend to lag behind the bleeding-edge kernels. If you would like to test features that are available in the newest tree then you will likely need to build from the "pristine" source from Linus or the tree maintainer of your choice.. FIXME: NO LONGER really true -- 2.6 based distributions are out there / will be (e.g., SuSE 9.1) by the end of April 2004.


Download the Source

Though the latest sources are always available from http://kernel.org, to be kind to the Internet, always use one of the mirrors listed at http://kernel.org/mirrors. In general, geographically close mirrors will tend to be fastest. You can either browse the sites with an Internet browser or with a dedicated FTP client.

You will see several links to /pub/linux on the mirror site. Select the kernel directory, then the kernel version that you would like to install. As of this writing, 2.4.22 is the latest stable version and 2.6.0 is in pre-release state. Once you select a kernel version you will see several files.

  ChangeLog-2.6.0-test9          25-Oct-2003 14:51    41k 
LATEST-IS-2.6.0-test9 25-Oct-2003 14:51 0k
linux-2.6.0-test9.tar.bz2.sign 25-Oct-2003 15:14 1k
linux-2.6.0-test9.tar.gz 25-Oct-2003 15:14 39.7M
linux-2.6.0-test9.tar.gz.sign 25-Oct-2003 15:14 1k
linux-2.6.0-test9.tar.sign 25-Oct-2003 15:14 1k
patch-2.6.0-test9.bz2.sign 25-Oct-2003 15:14 1k
patch-2.6.0-test9.gz 25-Oct-2003 15:14 123k
patch-2.6.0-test9.gz.sign 25-Oct-2003 15:14 1k
patch-2.6.0-test9.sign 25-Oct-2003 15:14 1k
The Changelog files detail the differences between versions. The linux- files are the compressed sources for the entire Linux kernel. Most sites will contain both gzip and bzip packages. The bzip packages tend to be about 20% smaller than the GZIP versions, so they are usually the best option since all modern Linux distributions contain BZIP utilities.

The patch files are a list of differences between versions of the kernel. If you have previously downloaded an earlier source package, you will only need to download the much smaller patch file to bring those up to date. We will discuss patch application in the next section.

There are also some .sign files that contain GPG checksum information which are useful for verifying that the sources you downloaded have not been corrupted or maliciously modified. For more information on verifying the GPG signature, see http://www.kernel.org/signature.html .

The http://kernel.org website is not the only place to retrieve patches. Many other vendors and individuals have developed patches to improve aspects of the kernel's performance, support new hardware, or introduce features that are too esoteric or experimental to make it to the stock kernel. For example, kernel hacker Robert Love had developed the pre-emptible kernel modifications that made dramatic improvements to the responsiveness of a Linux system. These patches were not part of the standard 2.4.x kernel but were of such usefulness that they were officially adopted into the 2.6.0 series. For the most part these third-party patches are stable but do use your judgment when downloading and applying them.


Extract and Patch

Once you have retrieved the kernel sources and patches, you will need to extract them and apply the patches. The pristine 2.4.x and 2.6.x sources can be built as a regular, unprivileged user and this is recommended. [3]

We will begin by creating a directory to hold all the source tarballs and patches, then proceed to extract the sources. For these examples we will assume that you have previously downloaded an earlier release of the kernel and will now need to patch to bring it up to the current version.

   $ mkdir src
$ cd src
If your Linux sources are in BZIP compressed format (that is, end with a .bz2 extenstion, then use the following command:
   $ tar xfvj /path/to/linux-2.6.0-test7.tar.bz2
Otherwise, use the options for GZIP compressed data:
   $ tar xfvz /path/to/linux-2.6.0-test7.tar.gz
You should see a list of filenames scroll by as they are being extracted. Verify that the new kernel source directory is created:
   $ ls -l
  total 4
drwxr-xr-x 18 kwan users 4096 Oct 8 15:24 linux-2.6.0-test7
-rw-r--r-- 1 kwan users 276260 Nov 15 02:05 patch-2.6.0-test8.gz
-rw-r--r-- 1 kwan users 126184 Nov 15 02:07 patch-2.6.0-test9.gz
Next we must apply the patches in order. Patch files are created by the diff program, and can selectively modify one or more files by adding, deleting, or modifying lines in the source code. Because they contain only the differences between files it is usually a lot faster (and better for the Internet in general) if you patch to the current release. (TBF unclear). Appendix TBF shows a typical patch file. Like the kernel sources, the patch files are also compressed.
   $ gunzip patch-2.6.0-test8.gz
$ gunzip patch-2.6.0-test9.gz
$ ls -l
  -rw-r--r--    1 kwan  users  1072806 Nov 15 02:05 patch-2.6.0-test8
-rw-r--r-- 1 kwan users 486902 Nov 15 02:07 patch-2.6.0-test9
Once the patches are uncompressed we can apply them to the kernel sources. Remember that it is important to apply them in order.
   $ cd linux-2.6.0-test7
$ patch -p1 <../patch-2.6.0.test8
$ patch -p1 <../patch-2.6.0.test9
If it is successful you will see messages similar to the following scroll by:
  patching file Documentation/filesystems/jfs.txt
patching file Documentation/filesystems/xfs.txt
patching file Documentation/ia64/fsys.txt
patching file Documentation/ide.txt
patching file Documentation/x86_64/boot-options.txt
patching file Makefile
If unsuccessful you will get a warning and be prompted for a file to patch. If this occurs, press Ctrl-C to break out of the patch utility and verify that you are using the correct patch and applying them in the correct order.

Once all the patches are applied you might consider backing up the directory.

   $ cd ..
$ mv linux-2.6.0-test7 linux-2.6.0-test9
$ tar cfvj linux-2.6.0-test9.tar.bz2 linux-2.6.0-test9

Configuration

The Configuration Process

The configuration process is the most strenous portion of the kernel rebuild process. In this step you are deciding which features will be included in the final kernel and it can require lots of hardware knowledge. In truth, it is not too onerous. The current kernels have graphical configuration programs and though not perfect, provide help screens for most of the configuration options.

Many changes were made to the configuration subsystem in the 2.6.x kernel series. It is easier to add modules and much more robust than before. It has also changed dramatically in appearance especially when using the X-based configuration tool, xconfig. For this reason the configuration steps for the different branches have been split into two sections in this chapter.

As mentioned, both configuration tools provide context sensitive help screens for the different options. Because this help is readily available to the user (and more importantly, because there are several hundred options) this guide will only cover a fraction of the choices.


Compile Modules or Static

One of the first choices you will make is whether or not to build device support directly into the kernel or as a module. In the early days of Linux, when module support was in its infancy, it was possible that static (i.e., compiled in) drivers were faster. With any modern CPU, the time to load and unload the modules and the memory required for the module loader subsystem is negligible even to benchmarking utilities. Some devices, notably the disk controller, can be built directly into the kernel in order to simplify the boot process. [4]

You may also choose to disable some options entirely. Though you will not have any performance increases, there are advantages to disabling features that are not required. For one, the compile times will be drastically reduced depending on which subsystem is disabled. For another, the final kernel and installed modules will require less space. On modern hard drives of 40G, 60G, and even 250G, an extra 20M or so is negligible but is significant on embedded or older systems. The disadvantage is that you will not have support for those features until you recompile the kernel. One other thing to keep in mind, as noted in KERNELTRAP.ORG (http://www.kerneltrap.org/node/view/799):

Having unnecessary drivers will make the kernel bigger, and can under some
circumstances lead to problems: probing for a nonexistent controller card may
confuse your other controllers.

--kerneltrap.org

Assign Unique Name

We have so far extracted and patched the Linux sources. During our preparation we also determined what hardware is installed in the system so that we will know which modules will need compilation. Before we proceed to actually configuring the kernel there are a couple minor but important details to complete.

Inside the Linux source directory is the default Makefile. This file is used by the make utility to compile the Linux sources. The first few lines of the Makefile contains some versioning information:

  VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 22
EXTRAVERSION = -1
Note that there is an additional EXTRAVERSION field. To prevent overwriting any existing kernel modules on the system we will change this EXTRAVERSION to something unique. When the final installation steps are run, kernel module files will then get written to /lib/modules/$VERSION.$PATCHLEVEL.$SUBLEVEL-$EXTRAVERSION.

Backup .config

Finally, before we begin, please note that the configuration choices are kept in the ../linux/.config file. If you have not already run any configurations, this file will not exist. If you have, and would like to save your configuration, copy the .config to another file:

   $ cd linux
$ cp .config config.save
If you are using the sources from a vendor, then the default configuration files are usually included in the configs or in the ./arch/i386/defconfig (for i386 machines) file. You can use these configurations as a starting point for your customizations. The .config will be overwritten in the next step, so do make a backup before proceeding!

We begin the configuration by wiping out all previous configurations and resetting the source directory to a pristine state. The main reason for doing this is that some files do not automatically get rebuilt, which can lead to failed builds, or at worst, a buggy kernel.

   $ make mrproper
In the 2.4.x series, a few dozen lines of rm -f commands will appear as all generated files get removed. The 2.6.x process is less noisy and returns only a few CLEAN messages. Please note that it is generally safe to omit the make mrproper step during subsequent rebuilds.

As of this writing (December 15, 2003), the 2.4.x kernel is in wide deployment. The 2.6.0 has just been released to the world. FIXME -- the previous sentence needs to be updated Though the configuration and build procedures are quite similar, there are enough differences to warrant separate sections for each kernel. If you are building a 2.6.x series kernel, skip to the Section called Configuring the 2.6.x kernels. Otherwise, proceed to the next section, the Section called Configuring the 2.4.x kernels.


Configuring the 2.4.x kernels

Our next step is to run the configuration utility. In the 2.4.x kernels there are four main frontends: config, oldconfig, menuconfig, xconfig. We choose one configuration method and run it, for example:

   $ make config

config is the least user-friendly option as it merely presents a series of questions that must be answered sequentially. Alas, if an error is made you must begin the process from the top. Pressing Enter will accept the default entry, which is in upper case.

oldconfig will read the defaults from an existing .config and rewrite necessary links and files. Use this option if you've made minor changes to source files or need to script the rebuild process. Note that oldconfig will only work within the same major version of the kernel. You cannot, for example, use a 2.4.x .config with the 2.6.x kernel.

menuconfig is an ncurses-based frontend. Your system must have the ncurses-devel libraries installed in order to use this utility. As the help text at the top of the screen indicates, use the arrow keys to navigate the menu. Press Enter to select sub-menus. Press the highlighted letter on each option to jump directly to that option. To build an option directly into the kernel, press Y. To disable an option entirely, press N. To build an option as a loadable module, press M. You can also access content-specific help screens by pressing ? on each page or selecting HELP from the lower menu. Figure 1 shows an example screen. [5]

Figure 1. make menuconfig

xconfig, as the name suggests, is an X Window based frontend. It requires the Tcl/Tk and X libraries to work, and of course, an X server. Figure 2 shows an example screen.

Figure 2. make xconfig

For the purposes of this next section we will assume that make xconfig is used. The options are identical otherwise. As mentioned, there are literally hundreds of configuration options and this precludes us from listing every one of them. If you are unsure of an option use the online help or consult the kernel documentation found in the ../linux/Documentation directory. We begin by typing:

   $ make xconfig
The main configuration menu will appear. Selecting an item will bring up another window with further options. These in turn can spawn other sub-menus.
Code Maturity Level Options

This option allows configuration of alpha-quality software. It is best to disable this option if the kernel is intended for a stable production system. If you require an experimental feature in the kernel, such as a driver for new hardware, then enable this option but be aware that it "may not meet the normal level of reliability" as tested code.

Loadable Module Support

You will almost certainly want to enable module support. If you will need third-party kernel modules you will also need to enable Set Version Information on All Module Symbols.

Processor Type and Features

This is perhaps the most important option to choose. In the Preparation section we determined our processor type by examining /proc/cpuinfo and we use that information here to select the appropriate processor. Included in this submenu are features such as Low Latency Scheduling which can improve desktop responsiveness, Symmetric Multi-processing Support for machines with multiple CPUs, and High Memory Support for machines with more than 1G of RAM. Laptop users can also benefit from the CPU Frequency Scaling feature.

General Setup

Choices for PCI, ISA, PCMCIA and other architectural support such as Advanced Power Management are found here.

Memory Technology Devices

MTD devices include Compact Flash devices. Some digital cameras will require this support.

Block Devices

The Block Device section contains options for floppy and hard drives, including parallel port devices, tape drives and RAID controllers. Important options include loopback device support, which allows mounting on disk images, and initrd support, which is needed to preload drivers necessary to boot the system.

Multi-Device support (RAID and LVM)

Important for servers, these options include RAID support for combining multiple disks. Note that this option is not needed for certain hardware RAID that function below the operating system level. LVM is a useful subsystem that allows, among other things, dynamic resizing of filesystems.

ATA/IDE/MFM/RLL support.

This section includes options for IDE/ATAPI chipsets, including performance tweaks such as DMA. Most systems will need this support.

Cryptography Support (CryptoAPI)

Useful options include Loopback Crypto Support, which allows encrypted filesystem images to be mounted. Even with full access to the PC, loopback encryption can help safeguard data.

Networking Options

Many choices are available for networking. TCP/IP, IP tunneling, packet filtering, IPv4 and IPv6, routing support and network QoS are among the most useful. If your kernel is intended for a dedicated firewall or router device, then the options here can significantly improve performance. Read the online and kernel documentation.

SCSI Support

SCSI support is needed for not only true SCSI devices, but also for IDE CDR/W drives in SCSI emulation mode. If your root filesystem is mounted on a SCSI disk, then you must build support directly into the kernel and not as a module.

Character Devices

Dozens of options are available here, including support for many serial and parallel devices, hardware sensors (for system monitors), mice, joysticks and DRM. Many of the options can be safely disabled without problem.

File Systems

It is a good idea to build support for your root filesystem directly into the kernel. Though the initrd utilities can get around the chicken-and-egg boot problem, it is generally safer and easier to just build the fs modules directly. Many options can also be safely disabled if you have no use for the feature.

Once all the configuration changes have been made, you can go ahead and save settings. By defaulti, the configuration is placed in the .config file in the topmost directory. Because this file is deleted by make mrproper and is also hidden, it is a good idea to use the Save to Alternate File before exiting. It will prompt for another save location. Enter something outside of the source tree and with a useful name such as kernel-2.4.22-lowlatency.config. Once this is done, exit the configuration menu. You will be prompted to save the configuration again. Select Yes and continue.

The configuration for the 2.4.x kernel is now complete. You may now skip to the chapter called Build.


Configuring the 2.6.x kernels

Our next step is to run the configuration utility. On the 2.6.x kernels there are four main frontend programs: config, menuconfig, and xconfig.

config is the least user-friendly option as it merely presents a series of questions that must be answered sequentially. Alas, if an error is made you must begin the process from the top. Pressing Enter will accept the default entry which is in upper case.

oldconfig will read the defaults from an existing .config and rewrite necessary links and files. Use this option if you've made minor changes to source files or need to script the rebuild process.

menuconfig is an ncurses based frontend. Your system must have the ncurses-devel libraries installed in order to use this utility. As the help text at the top of the screen indicates, use the arrow keys to navigate the menu. Press Enter to select sub-menus. Press the highlighted letter on each option to jump directly to that option. To build an option directly into the kernel, press Y. To disable an option entirely, press N. To build an option as a loadable module, press M. You can also access content-specific help screens by pressing ? on each page or selecting HELP from the lower menu. Figure 1 in the Section called Configuring the 2.4.x kernels shows an example screen from the 2.4.x kernel series.

xconfig is a graphical frontend using qconf by Roman Zippel. It requires the qt and X libraries to build and use. The interface is intuitive and customizable. Online help is automatically shown for each kernel configuration option. It also can show dependency information for each module which can help diagnose build errors. Figure 3 shows an example of the xconfig screen. From the online help:

For each option, a blank box indicates the feature is disabled, a check
indicates it is enabled, and a dot indicates that it is to be compiled
as a module. Clicking on the box will cycle through the three states.
If you do not see an option (e.g., a device driver) that you believe
should be present, try turning on Show All Options under the Options menu.
Although there is no cross reference yet to help you figure out what other
options must be enabled to support the option you are interested in, you can
still view the help of a grayed-out option.

--qconf help

Figure 3. make xconfig

Once you have decided which configuration option to use, start the process with make followed by either config, menuconfig, or xconfig. For example:

    $ make menuconfig
The system will take a few moments to build the configuration utility. Next you will be presented with the configuration menus. Though similar to the 2.4.x series, the 2.6.x menu is more logically organized with better grouping of sub-modules. Following are some of the top level configuration options in the 2.6 kernel.

Code Maturity Level Options

This option allows configuration of alpha-quality software or obsoleted drivers. It is best to disable this option if the kernel is intended for a stable production system. If you require an experimental feature in the kernel, such as a driver for new hardware, then enable this option but be aware that it "may not meet the normal level of reliability" as more rigorously tested code.

General Setup

This section contains options for sysctl support, a feature allowing run-time configuration of the kernel. A new feature, kernel .config support, allows the complete kernel configuration to be viewed during run-time. This addresses many requests to be able to see what features were compiled into the kernel.

Loadable Module Support

You will almost certainly want to enable module support. If you will need third-party kernel modules you will also need to enable Set Version Information on All Module Symbols.

Processor Type and Features

This is perhaps the most important configuration choice. In the Preparation section we determined our processor type by examining /proc/cpuinfo and we use that information here to select the appropriate processor. Included in this submenu are features such as Preemptible Kernel which can improve desktop responsiveness, Symmetric Multi-processing Support for machines with multiple CPUs, and High Memory Support for machines with more than 1G of RAM.

Power Management Options

Found here are options for ACPI and CPU Frequency Scaling which can dramatically improve laptop power usage. Read the Documentation/power file for more information.

Bus Options ( PCI, PCMCIA, EISA, MCA, ISA)

Here are found options for all system bus devices. On modern machines the ISA and MCA support can often be disabled.

Executable File Formats

Interesting features here include the kernel support for miscellaneous binaries, which can allow seamless operation of non-Linux binaries with a little userland help.

Device Drivers

All the device-driver configuration options that were previously scattered throughout the 2.4.x menus are now neatly organized under this option. Features such as SCSI support, graphic card optimizations, sound, USB and other hardware are configured here.

File Systems

Found here are options for filesystems which are supported by the kernel, such as EXT2 and ReiserFS. It is best to build support for the root filesystems directly into the kernel rather than as a module.

Security Options

Interesting options here include support for NSA Security Enhanced Linux and other, somewhat experimental, features to increase security.


Build

Dependencies

The next step is to create the necessary include files and generate dependency information. This step is only required for the 2.4.x kernel tree.

   $make dep
Lots of messages will scroll by. Depending on the speed of your machine and on what options you chose, this may take several minutes to complete. Once the dependency information is created we can clean up some miscellaneous object files. This step is required for all versions of the kernel.
   $make clean

Build the Kernel

We are now (finally) ready to start the actual kernel build. At the prompt type:

   $make bzImage
As the Kbuild documentation states:

Some computers won't work with 'make bzImage', either due to hardware
problems or very old versions of lilo or loadlin. If your kernel image
is small, you may use 'make zImage', 'make zdisk', or 'make zlilo'
on these systems.

--Kbuild 2.4 Documentation
[6] On an Athlon 1800XP, building the bzImage took approximately seven minutes for a moderately configured kernel. On a Pentium 100 used as a baseline, a similar configuration took almost 45 minutes. If you are not in a hurry you may want to start the build on a console while you continue to work. The main difference between the 2.4 and 2.6 trees is the amount of information presented on the screen. Much less information is displayed with 2.6.x, making errors and warnings easier to spot. If everything went correctly then the new kernel should exist in ./arch/$ARCH/boot. For example, on IA32 systems we can verify this with:
   $ls -l arch/i386/boot

Build the Modules

There is one more step needed for the build process, however. You have created the kernel, but now you need to create all the loadable modules if you have them configured. Be aware that typical distribution kernels tend to have almost every feature installed, plus a few others for good measure. These can typically take an hour or so to build on our Athlon XP1800. The stock kernels are somewhat leaner by default and take, on average, 25 minutes to compile. To build the modules we run:

   $ make modules
Again, lots of messages will scroll by on the screen. Here also the 2.6.x series is less talkative, outputting only summary information. Once the modules are built they can be installed. If you were building as a non-privileged user you will now need to switch to root to complete this next step:
   $ su
password:
$ make modules_install
The freshly baked modules will be copied into /lib/modules/KERNEL_VERSION.

Create Initial RAMDisk

If you have built your main boot drivers as modules (e.g., SCSI host adapter, filesystem, RAID drivers) then you will need to create an initial RAMdisk image. The initrd is a way of sidestepping the chicken and egg problem of booting -- drivers are needed to load the root filesystem but the filesystem cannot be loaded because the drivers are on the filesystem. As the manpage for mkinitrd states:

mkinitrd creates filesystem images which are suitable for use as Linux initial
ramdisk(initrd) images. Such images are often used for preloading the
block device modules (such as IDE, SCSI or RAID) which are needed to access the
root filesystem. mkinitrd automatically loads filesystem modules (such as
ext3 and jbd), IDE modules,all scsi_hostadapter entries in /etc/modules.conf,
and raid modules if the systems root partition is on raid, which makes it
simple to build and use kernels using modular device drivers.

--MKINITRD(8)
To create the initrd, do the following:
    $ mkinitrd /boot/initrd-2.6.0.img 2.6.0
Some versions of mkinitrd may require other options to specify the location of the new kernel. On SuSe 9.0, for example, the following syntax is required:
    $ mkinitrd -k vmlinux-VERSION -i initrd-VERSION
[7]

Troubleshooting Build Failures

If your build fails with a signal 11 error it is most likely because of hardware problems; often the culprit is failing memory. Unfortunately, the BIOS memory check is close to useless in detecting intermittent memory failures. Even dedicated memory checkers do not stress memory as much as gcc running a kernel build. One way to tell if hardware is at fault is to restart the 'make bzImage' process. If you can get a little further before failing again then it is a hardware error. There are several possible ways to try to correct these.

Try changing your memory settings in the BIOS to more conservative levels. For example, change to SLOW or NORMAL instead of FAST. Verify that all the fans are working correctly. [8] Swap out the memory. One trick is to specify less memory than is actually installed by passing values to the kernel on boot. This prevents the kernel from accessing all the memory in the machine, and could help diagnose bad SIMMs or SDRAMs.

If instead the 'make' fails at the same point each time, then it is a configuration error. These usually result from not enabling a feature that is required by another. For example, IP Firewalling requires TCP/IP. If the prerequisite is not enabled, the build will fail. You may also get errors if you select the wrong processor or are using either a very old or development compiler.

Also keep in mind that the kernel is highly sensitive to the versions of the build tools such as the compiler and linker. The versions listed are requirements, not suggested.


Installation

Copy the Kernel and System.map

Once your kernel is created, you can prepare it for use. From the ./linux directory, copy the kernel and System.map file to /boot. In the following examples change KERNEL_VERSION to the version of your kernel. [9]

   $ cp arch/i386/boot/bzImage /boot/bzImage-KERNEL_VERSION
$ cp System.map /boot/System.map-KERNEL_VERSION
$ ln -s /boot/System.map-KERNEL_VERSION /boot/System.map

The next step is to configure your bootloader. The bootloader is the first program that runs when a computer is booted. For this document it is assumed that you are running an IA32 system with a standard PC BIOS. If you are running the LiLO bootloader skip to the the Section called LiLO Configuration otherwise proceed to the Section called GrUB Configuration.

FIXME: Need information on non-IA32 bootloaders!!


GrUB Configuration

GrUB is beginning to supplant LiLO as the bootloader of choice in more recent Linux distributions. It is generally more flexible and a lot more forgiving of system errors. For example, LiLO generally requires that an alternate boot disk is used if the kernel configuration renders the system unbootable Grub allows "on-the-fly" modification of kernel location, boot parameters, kernel to boot, etc..

Once you have copied the bzImage and System.map to /boot, edit the grub configuration file located in /boot/grub/menu.lst. On some distributions /etc/grub.conf is a symbolic link to this file.

  # Note that you do not have to rerun grub after making changes to this file
#boot=/dev/hda
default=0
timeout=10
title Red Hat Linux (2.4.20-24.9)
root (hd0,1)
kernel /boot/vmlinuz-2.4.20-24.9 ro root=LABEL=/
initrd /boot/initrd-2.4.20-24.9.img
title Red Hat Linux (2.4.20-20.9)
root (hd0,1)
kernel /boot/vmlinuz-2.4.20-20.9 ro root=LABEL=/
initrd /boot/initrd-2.4.20-20.9.img
Edit the file to include your new kernel information. Keep in mind that GrUB counts starting from 0, so (hd0,1) references the first controller, second partition. If you have created an initial RAMdisk be sure to include it here too. A typical configuration may look something like this:
  title Test Kernel (2.6.0)
root (hd0,1)
kernel /boot/bzImage-2.6.0 ro root=LABEL=/
initrd /boot/initrd-2.6.0.img

LiLO Configuration

LiLO is an older bootloader. Its configuration file is located in /etc/lilo.conf on most systems. Unlike GrUB, any changes to lilo.conf will not be set until the lilo program is rerun.

  boot=/dev/hda
map=/boot/map
install=/boot/boot.b
default=test-2.6.0
keytable=/boot/us.klt
lba32
prompt
timeout=50
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label=linux
root=/dev/hda3
append=" ide1=autotune ide0=autotune"
read-only

image=/boot/bzImage-2.6.0
label=test-2.6.0
root=/dev/hda2
read-only
The important sections are the image=/boot/bzImage and the default=test-2.6.0 options. Notice that you can have several image sections in the lilo.conf, allowing multiple configurations. Install the new kernel by running the lilo program.
  $  /sbin/lilo
If you are installing and testing the kernel remotely, you can instead specify to LiLO that the new kernel is loaded only for the next boot by using the following syntax:
  $  /sbin/lilo -R test-2.6.0
Messages will appear showing the newly added kernel with an asterisk marking the default image. If you get errors, consult the lilo documentation for the correct syntax.