<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Internet Protocols</title>
	<atom:link href="http://ippoint.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ippoint.wordpress.com</link>
	<description>ippoint.wordpress.com</description>
	<lastBuildDate>Wed, 11 Jan 2012 10:25:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ippoint.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Internet Protocols</title>
		<link>http://ippoint.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ippoint.wordpress.com/osd.xml" title="Internet Protocols" />
	<atom:link rel='hub' href='http://ippoint.wordpress.com/?pushpress=hub'/>
		<item>
		<title>TSHOOT Notes</title>
		<link>http://ippoint.wordpress.com/2011/11/11/tshoot-notes/</link>
		<comments>http://ippoint.wordpress.com/2011/11/11/tshoot-notes/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 17:45:17 +0000</pubDate>
		<dc:creator>ippoint</dc:creator>
				<category><![CDATA[IOS]]></category>
		<category><![CDATA[tshoot]]></category>

		<guid isPermaLink="false">http://ippoint.wordpress.com/?p=569</guid>
		<description><![CDATA[Network Maintenance Models: ITIL &#8211; IT Infrastructure Library &#8211; Best practice for IT service management. FCAPS &#8211; Fault, Configuration, Accounting, Performance and security &#8211; ISO model for network maintenance. TMN &#8211; Telecommunication Management Network &#8211; ITU-T adapted model of FCAPS. PPDIOO &#8211; Cisco method. Prepare, plan, design, implement, operate, optimize. ********************************************************************************** - If we have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=569&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration:underline;">Network Maintenance Models:</span></p>
<p><strong>ITIL</strong> &#8211; IT Infrastructure Library &#8211; Best practice for IT service management.</p>
<p><strong>FCAPS</strong> &#8211; Fault, Configuration, Accounting, Performance and security &#8211; ISO model for network maintenance.</p>
<p><strong>TMN</strong> &#8211; Telecommunication Management Network &#8211; ITU-T adapted model of FCAPS.</p>
<p><strong>PPDIOO</strong> &#8211; Cisco method. Prepare, plan, design, implement, operate, optimize.<span id="more-569"></span></p>
<p>**********************************************************************************</p>
<p>- If we have already provided username/password for FTP connections in the configuration, (using &#8220;<strong><em>ip ftp username/password</em></strong>&#8221; or &#8220;<strong><em>ip http client {username | password}</em></strong>&#8220;) we don’t need to specify credentials in &#8220;copy start ftp&#8221; command.</p>
<p>- HTTPs and SCP are more secure than HTTP/FTP which sends password in clear text.</p>
<p>**********************************************************************************</p>
<p><span style="text-decoration:underline;">Archive</span> configuration:</p>
<p><strong><em>archive</em></strong></p>
<p><strong><em>                  path &lt;flash&gt;</em></strong></p>
<p><strong><em>                  write-memory</em></strong></p>
<p><strong><em>                  time-period &lt;minutes&gt;</em></strong></p>
<p>- Configuration Rollback: using &#8220;<strong><em>configure replace &lt;path which has new running-config&gt;  list</em></strong>&#8220;</p>
<p>**********************************************************************************</p>
<p><span style="text-decoration:underline;">NTP:</span> <strong><em>&#8220;ntp server &lt;ip&gt;&#8221; </em></strong></p>
<p>Daylight saving: <strong><em>&#8220;clock summer-time xxxx&#8221;</em></strong></p>
<p>Logging: <strong><em>&#8220;logging console &lt;&gt;&#8221;.</em></strong> By default level-7(debug) to level-0(emergency) are stored.</p>
<p><strong><em>&#8220;logging &lt;ip&gt;&#8221;.</em></strong> BY default all messages except level-7 are sent to Syslog server.</p>
<p>**********************************************************************************</p>
<p><span style="text-decoration:underline;">Structured troubleshooting</span>: Define problem, gather information, analyse, *eliminate*, propose hypothesis, test hypothesis, resolve problem.</p>
<p><span style="text-decoration:underline;">&#8220;Shoot from the Hip&#8221;:</span> Define problem, gather information, propose hypothesis, test hypothesis, resolve problem.</p>
<p><span style="text-decoration:underline;">Approaches:</span></p>
<ol>
<li>Top down</li>
<li>Bottom up</li>
<li>Divide and conquer</li>
<li>Follow the path</li>
<li>Spot the differences</li>
<li>Move the problem/components.</li>
</ol>
<p>**********************************************************************************</p>
<p><span style="text-decoration:underline;">Integrating Troubleshooting into Maintenance:</span></p>
<ul>
<li>Update-to-date documentation.</li>
<li>Creating baseline for network performance. How much CPU% is normal?</li>
<li>Has anything changed recently before the problem occurred</li>
</ul>
<p>**********************************************************************************</p>
<ul>
<li>Use output filtering to identify problem. Eg: use<strong><em> &#8220;show ip route 1.1.1.1&#8243; </em></strong>instead of &#8220;show ip route&#8221;. Note Default route is not displayed when using show ip route filtering. Or use &#8220;show ip route 1.1.1.0 255.255.255.0 longer-prefix&#8221; to see all routes above 1.1.1.0/24 networks.</li>
<li>Filter show command outputs using <strong><em>{begin|include|exclude| section}..</em></strong> Also we can use regular expression like &#8220;show ip route | include ^C&#8221; to show only connected routes.</li>
<li>To redirect output to a file in flash/tftp, use <strong><em>&#8220;| tee&#8221; or &#8220;|redirect&#8221;</em></strong> command. Tee will display the output in screen and copy the content to remote file. &#8216;Redirect&#8217; option will only copy the content to remote file.</li>
<li>To append outputs to an existing file,use <strong><em>&#8220;| append&#8221;</em></strong> keyword.</li>
<li>Extended ping for options like DF bit,repeat,source, size etc</li>
<li>To check whether a TCP port is open use <strong><em>&#8220;telnet &lt;IP&gt; &lt;port number&gt;&#8221;</em></strong>. Eg: &#8220;telnet 1.1.1.1 80&#8243; will check whether port 80(HTTP) is opened in 1.1.1.1</li>
<li>Hardware diag commands: show inventory, show controllers, show platform, show diag, GOLD (Generic OnLine Diag), TDR (Time Domain Reflectometer)</li>
</ul>
<p>**********************************************************************************</p>
<p>Following process in TS steps, will be benefited by the use of tool:</p>
<ul>
<li> <span style="text-decoration:underline;">Define problem:</span> syslog, event triggered via SNMP, EEM.</li>
<li><span style="text-decoration:underline;">Gather information:</span> SPAN/RSPAN/ERSPAN. RSPAN cannot cross L3 boundry. Only pass via trunks.</li>
<li><span style="text-decoration:underline;">Analyze:</span> by SNMP statistics or NetFlow usage. Netflow enabled via &#8220;ip flow ingress/egress&#8221; command. Replaces old &#8220;ip route-cache flow&#8221; command<strong><em>. &#8220;show ip cache flow&#8221;</em></strong> to check active flow pass via router. &#8220;ip flow-export&#8221; command to export the data from router to collector.</li>
<li> <span style="text-decoration:underline;">Test Hypothesis:</span> configuration replace or rollback.</li>
</ul>
<p>**********************************************************************************</p>
<p><span style="text-decoration:underline;">Layer-2 forwarding checks:</span></p>
<p>show mac-address-table</p>
<p>show vlan</p>
<p>show interfaces switchport</p>
<p>show interfaces trunk</p>
<p>show platform forward  &lt;&lt;&lt;&lt; Info from TCAM.</p>
<p>traceroute mac &lt;&lt;&lt;&lt; traceroute to an MAC address, provided CDP is enabled.</p>
<p>**********************************************************************************</p>
<p><span style="text-decoration:underline;">STP Check:</span></p>
<p>Note: Cost of the incoming interface is added, when forwarding the BPDU.</p>
<p>If there is any loop, only packets with DST MAC not available in the mac-address-table will be in loop.</p>
<p>show spanning-tree vlan xxx</p>
<p>show spanning-tree interface xxxxxxx</p>
<p>**********************************************************************************</p>
<ul>
<li>Difference between Router and Multilayer switches:
<ul>
<li>Routers support many interface/media types. Switches support almost only Ethernet.</li>
<li>Packet-switching throughput of router is less than MLS.</li>
<li>Routers support many features compared to MLS.</li>
</ul>
</li>
<li>Control plane troubleshooting is same for both routers and Multilayer switches.</li>
<li>Date plane troubleshooting differs<strong>. &#8220;show ip cef, show adjacency, show arp&#8221;</strong> on Router. <strong>&#8220;show platform, show mls cef&#8221;</strong> on Multilayer switch.</li>
<li>MLS can perform
<ul>
<li>Switching between VLANs&#8230; &#8220;vlan x&#8221; to create VLAN database.</li>
<li>Routing between VLANs&#8230; Using SVI. &#8220;int vlan x&#8221; and &#8220;ip routing&#8221; command required.</li>
<li>Routing between VLANs and Outer world:
<ul>
<li>Using SVI</li>
<li>Using &#8220;no switchport&#8221; on the interface and thereby making it as &#8220;Routing&#8221; port.</li>
</ul>
</li>
</ul>
</li>
<li>On the routers, subinterfaces are used to connect to the downstream switches via trunk interface. Make sure the native VLAN is matched on both ends.</li>
</ul>
<p>!</p>
<p>interface GigabitEthernet2/3.10</p>
<p>encapsulation dot1Q 10</p>
<p>ip address 10.10.10.254 255.255.255.0</p>
<p>no ip redirects</p>
<p>end</p>
<p>**********************************************************************************</p>
<p><span style="text-decoration:underline;">Troubleshooting FHRP:</span></p>
<p><span style="text-decoration:underline;">HSRP:</span></p>
<p>-  When the current active routers&#8217; failure is by administrative action (by shutting down interface/reload of router), it sends &#8216;resign&#8217; message that cause standby router to immediately take over the master ship. NO packet loss for 10 sec hold timer.</p>
<p>- If we add a router with priority greater than the current &#8216;active&#8217; router and if pre-empt if enabled, this router will send &#8220;coup&#8221; message and takes over the mastership.</p>
<p>- Always recommended to have some delay before taking mastership so that active router converge its routing protocol and loads its RIB.</p>
<p><span style="text-decoration:underline;">VRRP:</span></p>
<p>- Hello interval is 1 sec. Premption enabled by default. IETF standard. VIP can be same as interface IP.</p>
<p>-<strong>show {vrrp | glbp | hsrp } brief</strong></p>
<p>**********************************************************************************</p>
<p><span style="text-decoration:underline;">Troubleshooting Performance problems in MLS:</span></p>
<p>-User expectation, Business expectation and technical expectations are used as baseline to identify performance problem.</p>
<p>-Typical scenarios: Duplex mismatch, TCAM limitations, high CPU load.</p>
<p>**********************************************************************************</p>
<p>-To identify packet loss at interface level use: <strong>&#8220;show int xxx counters&#8221;</strong> and <strong>&#8220;show int xxxx counters errors&#8221;</strong></p>
<ul>
<li><strong>Align-Err:</strong>  Frames which do not have even number of octets and have CRC errors. Possible bad port, cable.</li>
<li><strong>FCS-Err:</strong>  Valid size but with Frame check sequence errors. Possible bad cable, NIC. Increases on the Full-duplex end, in case of duplex mismatch.</li>
<li><strong>Xmit-Err/Rcv-Err</strong>: Internal Tx and Rx buffers are full.</li>
<li><strong>UnderSize:</strong> Frames with less than 64 bytes but with Valid CRC.</li>
<li><strong>Single-Col/Multi-Col:</strong> Counters to indicate single/multiple collision occurs before transmitting a frame. Duplex-mismatch.</li>
<li><strong>Late-Col:</strong> Collision detected on a port late in transmission process. Possible Reasons: Duplex-mismatch or Ethernet cable that is too long. Increases on the half-duplex end, in case of duplex mismatch.</li>
<li><strong>Excess-Col:</strong> Packets dropped due to excessive collision. When a packet has collision for 16 times, this counter is incremented and the packet is dropped.</li>
<li><strong>Carri-Sen:</strong> Normal on half-duplex. When controller senses the wire and checks if it not busy.</li>
</ul>
<p>&#8211; <strong>Runts:</strong> Frames less than 64 bytes and with bad CRC. Because of Bad cable or port.</p>
<p>&#8211; <strong>Giants</strong>: Frames Frames greater than 1518 with bad CRC. Reason: Mostly by bad NIC.</p>
<p>&#8211; IEEE 802.3 Frame size: 64 bytes to 1518 for non-jumbo Ethernet.</p>
<p>&#8211; Running half-duplex is better than duplex-mismatch.</p>
<p>**********************************************************************************</p>
<p>-<strong>Auto-MDIX:</strong>  Automatic Media-dependent interface crossover. It used to automatically detect whether straight/cross-over cable is required and automatically configures the interface.</p>
<p>-If speed and duplex auto-negotiation is disabled, then MDIX will also be disabled<strong>.&#8221;mdix auto&#8221;</strong> to enable MDIX. <strong>&#8220;show interfaces xxx transceiver properties&#8221;</strong> to check the MDIX.</p>
<p>**********************************************************************************</p>
<p><span style="text-decoration:underline;">Troubleshooting TCAM problems:</span></p>
<ul>
<li>&#8216;Decision making logic&#8217; in &#8216;forwarding hardware&#8217; uses high-performance lookup memory called TCAM.</li>
<li>Control-plane information like MAC-address table, routing table, PBR, QOS and ACL are programmed in TCAM.</li>
<li>Frames cannot forward by TCAM, will be punt to CPU. If there is more packets punt to CPU, then it might affect throughput.</li>
<li>Reasons for TCAM to punt packets to CPU:
<ul>
<li>Packets destined to CPU like telnet/SSH/SNMP.</li>
<li>MC/BC protocol control packets which sent to CPU in-addition to flooding.</li>
<li>If a feature is not supported. Eg: GRE.</li>
</ul>
</li>
<li>Due to TCAM limitations, some entries may not be written and hence &#8216;soft-forwarding&#8217; is performed.</li>
<li>To verify TCAM space on Cat 3560, use <strong>&#8220;show platform tcam utilization&#8221;. </strong>Check used/max column.</li>
<li>TCAM space allocation depends on Switch database Manager (SDM) profile. [ Similar to CAM-profile in Force10]</li>
<li>To check TCAM allocation failures for prefixes of specific length, use <strong>&#8220;show platform ip unicast counts&#8221;</strong></li>
<li>&#8220;sw forwarding&#8221; count in the output of <strong>&#8220;show controllers cpu-interface&#8221;</strong> indicates the number of packets punt to CPU.</li>
<li>To avoid above problems: Perform Route summarization so that number of prefix fit the TCAM space. OR change SDM profile.</li>
</ul>
<p>**********************************************************************************</p>
<p><span style="text-decoration:underline;">Troubleshooting High CPU load:</span></p>
<ul>
<li>On switches, packets are switched by hardware. Hence CPU load and traffic load are not related. In low-range routers, there exists direct relationship.</li>
<li>Check CPU process using &#8220;show process cpu sorted&#8221;. &#8220;CPU utilization for five seconds: x%/%y&#8221;. X represents time spent on process &amp; interrupts. Y represents time spent on only interrupts.</li>
<li>On switches, if the cycles spent by CPU for interrupts are more than 10%, we may need to investigate the cause as this implies CPU does packet-forwarding. (Interrupts &#8211; punt by TCAM)</li>
</ul>
<p>**********************************************************************************</p>
<p><span style="text-decoration:underline;">Troubleshooting Layer-3 connectivity:</span></p>
<ul>
<li>HDLC does not require any L3-L2 mapping.</li>
<li>Data Structures used for Routing: RIB, FIB (doesnt have Protocol information), L3-L2 mapping table and Cisco Express Forwarding adjacency table.</li>
<li><strong>&#8220;show ip route&#8221;</strong> for RIB and <strong>&#8220;show ip cef {exact-route SRC DST}&#8221;</strong> for FIB table. <strong>&#8220;exact-route&#8221; </strong>option to identify which path the router will select in case of equal-cost load-balancing.</li>
<li><strong>&#8220;show ip arp / show frame map&#8221;</strong> for L3-L2 mapping table and <strong>&#8220;show adjacency detail&#8221;</strong> for adjacency table.</li>
</ul>
<p>**********************************************************************************</p>
<p><span style="text-decoration:underline;">Troubleshooting EIGRP:</span></p>
<ul>
<li>Data Structures has interface table (active interfaces list), neighbor table (all active EIGRP neighbors), topology table(to save all received routes)</li>
<li>Note: Only successors are advertised to neighbors.  <strong>&#8220;show ip eigrp { interface | neighbor | topology}&#8221;</strong> . <strong>&#8220;debug eigrp packets&#8221;</strong> or <strong>&#8220;debug ip eigrp&#8221;</strong>. There is no &#8220;debug ip eigrp packet&#8221; command!</li>
<li>&#8220;Neighbor not on common subnet&#8221; log message will be displayed if the received SRC IP of EIGRP hello is different from the configured network statement.</li>
</ul>
<p>**********************************************************************************</p>
<p><span style="text-decoration:underline;">Troubleshooting OSPF:</span></p>
<ul>
<li>Data Structures has interface table (active interfaces list), neighbor table (all active OSPF neighbors), LSDB- Link state database.</li>
<li><strong>&#8220;show ip ospf { interface | neighbor | database}&#8221;</strong> . <strong>&#8220;debug ip ospf {packets | events}&#8221;</strong></li>
</ul>
<p>**********************************************************************************</p>
<p><span style="text-decoration:underline;">Troubleshooting Route Redistribution:</span></p>
<ul>
<li>If OSPF is redistributed into EIGRP, all OSPF routes in routing table in-addition to the ospf enabled interface networks are added into EIGRP topology table.</li>
<li>For RIP, EIGRP, the default seed metric is &#8220;Unreachable&#8221;. Need to specify the metric for redistribution to happen.</li>
<li>&#8220;show ip route x.x.x.x y.y.y.y&#8221; should show both &#8220;Advertised via OSFP/EIGRP&#8221; and &#8220;Advertised by OSPF/EIGRP&#8221;. If latter is not displayed, it means redistribution has been configured but the routes are not redistributed as expected.</li>
<li>Add <strong>&#8220;subnet&#8221;</strong> option when you redistribute from any protocols to OSPF.</li>
<li>Interface command to change the OSPF timers to default values: <strong>&#8220;default ip ospf hello-interval&#8221;.</strong></li>
<li><strong>&#8220;debug ip ospf events</strong>&#8221; and <strong>&#8220;debug ip ospf adja&#8221;</strong> commands useful to identify why neighborship was failed to form.</li>
</ul>
<p>**********************************************************************************</p>
<p><span style="text-decoration:underline;">Troubleshooting BGP:</span></p>
<ul>
<li>Data Structure: Neighbor table (<strong>show ip bgp summary/neighbors</strong>) and BGP table (<strong>show ip bgp</strong>)</li>
<li>Split-horizon is enabled. A router will not advertise a path back to the originating router, which it has selected as best path.</li>
<li>Check &#8220;Advertised to update-group&#8221; in the output of show ip bgp, to verify whether we advertise BGP routes to peers.</li>
<li>To check neighbor-&gt; update-group relation, use <strong>&#8220;show ip bgp update-group&#8221;</strong></li>
<li><strong>&#8220;debug ip bgp&#8221;</strong> to check adjacency state. No such command as <strong>&#8220;debug ip bgp adja&#8221;</strong></li>
</ul>
<p>**********************************************************************************</p>
<p><span style="text-decoration:underline;">Troubleshooting Performance Problems on Routers:</span></p>
<ul>
<li>Some process responsible for high CPU: Arp input process (originating ARP), net background process(When an interface needs some buffer but nor available, this process create buffers from main buffer pool), IP backgroup process (to change interface status, IP, encapsulation), TCP timer process (TCP sessions on Router)</li>
<li><strong>&#8220;Show processes cpu history&#8221;</strong>. Graphical view about CPU usage for last 60 secs/60 min/72 hrs.</li>
<li><strong>&#8220;Show ip interface xxx&#8221;</strong> details about which switching method is enabled on that interface. &#8220;ip route-cache&#8221; enables Fast-switching (for unicast).</li>
<li>CEF should be enabled for NBAR, Auto-Qos, MQC-FRTS, MPLS, QOS, CBWRED and other features to work<strong>. &#8220;ip route-cache cef&#8221;</strong> on interface mode.</li>
<li><strong>&#8220;Show ip cache&#8221;</strong> to display fast-switching cache. <strong>&#8220;show ip cef&#8221;</strong> to display CEF entries. <strong>&#8220;show {ip} cef adjacency &lt;interface&gt; &lt;NH&gt;&#8221;</strong> to see adjacency table.</li>
<li><strong>&#8220;show memory allocating-process totals&#8221;</strong> to check memory allocated to each process, Total/used memory. To check any memory leak: <strong>&#8220;Show process memory&#8221;</strong></li>
<li>When we notice &#8220;Input queue: 76/75(current/max)&#8221; in the output of &#8220;show interface&#8221;, it indicates memory leak problem. (<strong>Wedged Interface</strong>). Incoming packets are dropped on this interface. IOS bug. Upgrade/reload is the solutions.</li>
<li><strong>&#8220;Show buffers&#8221;</strong> might give clue about memory leak. &#8220;Free list&#8221; count will be very less compared to &#8220;total&#8221; count.</li>
<li><strong>&#8220;show diag&#8221;</strong> command to display DRAM memory available on routers&#8217; linecard.</li>
</ul>
<p>**********************************************************************************</p>
<p><span style="text-decoration:underline;">Troubleshooting Security Features:</span></p>
<ul>
<li>Options to secure management plane, control plane and data plane.</li>
<li>On some devices, <strong>&#8220;no service password-recovery&#8221;</strong> command is available which blocks successful recovery of configuration and password.</li>
<li>Cisco IOS firewall. <strong>&#8220;ip inspect name &lt;&gt; tcp/udp/http&#8221;</strong> and then apply <strong>&#8220;ip inspect &lt;&gt; out&#8221;</strong> interface connecting to internet. <strong>&#8220;show ip inspect all&#8221;, &#8220;debug ip inspect&#8221;</strong></li>
<li>Zone based Firewall: zones are created and matched packets from one zone to another can be denied/passed/inspect. <strong>&#8220;show zone security&#8221;, &#8220;show zone-pair&#8221;</strong></li>
<li>AAA: <strong>&#8220;debug tacacs&#8221;, &#8220;debug aaa accounting&#8221;</strong></li>
<li><strong>TACACS:</strong> Separates AAA as each process. Uses TCP. Encrypt entire packet. Limited accounting. It was developed by Cisco.<strong></strong></li>
<li><strong>RADIUS:</strong> Combines authentication and authorization. Uses UDP. Encrypt only password. Extensive accounting. Open Standard.<strong></strong></li>
<li>Cisco Secure access Control System (ACS): Web-based GUI to authenticate users via AAA.<strong></strong></li>
<li>RSA key can be generated using <strong>&#8220;crypto key generate rsa&#8221;.</strong> Need to save configuration to write this key in NVRAM. Can’t see in running config. Key is generated using hostname and domain name.<strong></strong></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ippoint.wordpress.com/569/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ippoint.wordpress.com/569/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ippoint.wordpress.com/569/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ippoint.wordpress.com/569/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ippoint.wordpress.com/569/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ippoint.wordpress.com/569/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ippoint.wordpress.com/569/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ippoint.wordpress.com/569/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ippoint.wordpress.com/569/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ippoint.wordpress.com/569/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ippoint.wordpress.com/569/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ippoint.wordpress.com/569/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ippoint.wordpress.com/569/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ippoint.wordpress.com/569/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=569&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ippoint.wordpress.com/2011/11/11/tshoot-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccfc62f1f9cd0af1d3dd69400039d24d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">ippoint</media:title>
		</media:content>
	</item>
		<item>
		<title>Configuring NIC Teaming in Linux</title>
		<link>http://ippoint.wordpress.com/2011/09/03/nic-teaming-linux/</link>
		<comments>http://ippoint.wordpress.com/2011/09/03/nic-teaming-linux/#comments</comments>
		<pubDate>Sat, 03 Sep 2011 01:07:47 +0000</pubDate>
		<dc:creator>ippoint</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[nic bonding]]></category>

		<guid isPermaLink="false">http://ippoint.wordpress.com/?p=534</guid>
		<description><![CDATA[Link Bonding/NIC Teaming – In some scenarios, to increase the bandwidth we may need to bundle two or more physical interfaces to a single virtual bonding interface on the host. Below steps show how to configure link bonding (also called as port-channel) on a Linux host. Create “ifcfg-bond0” file in /etc/sysconfig/network-scripts and configure IP address, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=534&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong> </strong><br />
<strong>Link Bonding/NIC Teaming</strong> – In some scenarios, to increase the bandwidth we may need to bundle two or more physical interfaces to a single virtual bonding interface on the host. Below steps show how to configure link bonding (also called as port-channel) on a Linux host.<span id="more-534"></span></p>
<ul>
<li>Create <strong>“ifcfg-bond0”</strong> file in <strong>/etc/sysconfig/network-scripts</strong> and configure IP address, network mask and other port-channel parameters.</li>
</ul>
<pre><span style="color:#ff0000;">[root@server2 network-scripts]# vi ifcfg-bond0</span>
<span style="color:#ff0000;">[root@server2 network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-bond0</span>
<span style="color:#ff0000;">DEVICE=bond0</span>
<span style="color:#ff0000;">IPADDR=192.168.10.1</span>
<span style="color:#ff0000;">NETWORK=192.168.10.0</span>
<span style="color:#ff0000;">NETMASK=255.255.255.0</span>
<span style="color:#ff0000;">USERCTL=no</span>
<span style="color:#ff0000;">BOOTPROTO=none</span>
<span style="color:#ff0000;">ONBOOT=yes</span></pre>
<ul>
<li>Configure individual interface such that <strong>“MASTER”</strong> is set to <strong>“bond0”</strong> and <strong>“SLAVE”</strong> is set.</li>
</ul>
<pre><span style="color:#ff0000;">[root@server2 network-scripts]# vim /etc/sysconfig/network-scripts/ifcfg-eth4</span>
<span style="color:#ff0000;">[root@server2 network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-eth4</span>
<span style="color:#ff0000;"># Intel Corporation 82571EB Gigabit Ethernet Controller (Copper)</span>
<span style="color:#ff0000;">DEVICE=eth4</span>
<span style="color:#ff0000;">USERCTL=no</span>
<span style="color:#ff0000;">ONBOOT=yes</span>
<span style="color:#ff0000;">MASTER=bond0</span>
<span style="color:#ff0000;">SLAVE=yes</span>
<span style="color:#ff0000;">BOOTPROTO=none</span>
<span style="color:#ff0000;">[root@server2 network-scripts]#</span></pre>
<ul>
<li>Make sure bonding module is loaded. If not add below two lines in <strong>/etc/modprobe.conf</strong> file. <strong>”mode”</strong> determines bonding policy. By default it is <strong>“balance-rr”</strong> (round robin). For LACP configure mode as <strong>“802.3ad”.</strong> For active-backup configure mode as <strong>“active-backup”</strong></li>
</ul>
<pre><span style="color:#ff0000;">[root@server2 network-scripts]# cat /etc/modprobe.conf | grep bond0</span>
<span style="color:#ff0000;">alias bond0 bonding</span>
<span style="color:#ff0000;">options bond0 miimon=100 mode=802.3ad</span>
<span style="color:#ff0000;">[root@server2 network-scripts]#</span></pre>
<ul>
<li>Load the bonding module using “<strong>modprobe bonding”</strong> command if it is not already loaded. Restart the network service using <strong>“service network restart”.</strong> Check with <strong>“ifconfig bond0”</strong> or <strong>“cat /proc/net/bonding/bond0”</strong> command.</li>
</ul>
<pre><span style="color:#ff0000;">[root@server2 network-scripts]# ifconfig bond0</span>
<span style="color:#ff0000;"><strong>bond0 </strong>    Link encap:Ethernet  HWaddr 00:18:FE:2E:36:6D</span>
<span style="color:#ff0000;">          inet addr:192.168.10.1  Bcast:192.168.10.255  Mask:255.255.255.0</span>
<span style="color:#ff0000;">          inet6 addr: fe80::218:feff:fe2e:366d/64 Scope:Link</span>
<span style="color:#ff0000;">          <strong>UP</strong> BROADCAST <strong>RUNNING</strong> MASTER MULTICAST  MTU:1500  Metric:1</span>
<span style="color:#ff0000;">          RX packets:89 errors:0 dropped:0 overruns:0 frame:0</span>
<span style="color:#ff0000;">          TX packets:2572 errors:0 dropped:0 overruns:0 carrier:0</span>
<span style="color:#ff0000;">          collisions:0 txqueuelen:0</span>
<span style="color:#ff0000;">          RX bytes:10920 (10.6 KiB)  TX bytes:315684 (308.2 KiB)</span>
<span style="color:#ff0000;">[root@server2 network-scripts]#</span></pre>
<p><strong><span style="text-decoration:underline;">&lt;on the other end- Force10 switch&gt;</span></strong></p>
<p>Force10#show int po brief</p>
<p>Codes: L &#8211; LACP Port-channel</p>
<p>LAG  Mode  Status       Uptime      Ports</p>
<p>L   1    L3    up           00:19:22    Gi 4/4     (Up)</p>
<p>Gi 4/5     (Up)</p>
<p>Force10#</p>
<p><strong><span style="text-decoration:underline;">&lt;With active-backup mode. eth4/eth5 are bundled together. eth5 is primary active&gt;</span></strong></p>
<pre> <span style="color:#ff0000;">[root@server2 ~]# cat /etc/modprobe.conf | grep bond</span>
<span style="color:#ff0000;">alias bond0 bonding</span>
<span style="color:#ff0000;">options bond0 miimon=100 mode=1 primary=eth5</span>
<span style="color:#ff0000;">[root@server2 ~]# cat /proc/net/bonding/bond0</span>
<span style="color:#ff0000;">Ethernet Channel Bonding Driver: v3.1.1 (September 26, 2006)</span>
<span style="color:#ff0000;"><strong>Bonding Mode: fault-tolerance (active-backup)</strong></span>
<span style="color:#ff0000;">Primary Slave: eth5</span>
<span style="color:#ff0000;"><strong>Currently Active Slave: eth5</strong></span>
<span style="color:#ff0000;">MII Status: up</span>
<span style="color:#ff0000;">MII Polling Interval (ms): 100</span>
<span style="color:#ff0000;">Up Delay (ms): 0</span>
<span style="color:#ff0000;">Down Delay (ms): 0</span>
<span style="color:#ff0000;">Slave Interface: eth4</span>
<span style="color:#ff0000;">MII Status: up</span>
<span style="color:#ff0000;">Link Failure Count: 2</span>
<span style="color:#ff0000;">Permanent HW addr: 00:18:fe:2e:36:6d</span>
<span style="color:#ff0000;">Slave Interface: eth5</span>
<span style="color:#ff0000;">MII Status: up</span>
<span style="color:#ff0000;">Link Failure Count: 8</span>
<span style="color:#ff0000;">Permanent HW addr: 00:18:fe:2e:36:68</span></pre>
<div>&#8212;&#8212;&#8211;</div>
<p>modprobe &lt;module-name&gt;   : to add this module</p>
<p>lsmod : to list loaded module</p>
<p>rmmod &lt;module-name&gt; : to remove a module</p>
<div>
<p>“cat /etc/modprobe.conf” : to view the module</p>
<p>&#8212;&#8212;&#8211;</p>
</div>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ippoint.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ippoint.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ippoint.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ippoint.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ippoint.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ippoint.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ippoint.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ippoint.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ippoint.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ippoint.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ippoint.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ippoint.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ippoint.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ippoint.wordpress.com/534/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=534&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ippoint.wordpress.com/2011/09/03/nic-teaming-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccfc62f1f9cd0af1d3dd69400039d24d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">ippoint</media:title>
		</media:content>
	</item>
		<item>
		<title>Configuring a Linux Host as NTP Server</title>
		<link>http://ippoint.wordpress.com/2011/09/03/linux-ntp-server/</link>
		<comments>http://ippoint.wordpress.com/2011/09/03/linux-ntp-server/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 21:24:29 +0000</pubDate>
		<dc:creator>ippoint</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ntp]]></category>

		<guid isPermaLink="false">http://ippoint.wordpress.com/?p=488</guid>
		<description><![CDATA[&#160; Network devices may need an NTP server to sync its clock; so that all devices in the network display same time&#8230;We can configure a Linux host as an NTP server. Check whether NTP daemon is installed in Linux: [Tested in RedHat-3.4.6] [root@server2 ~]# rpm -qa &#124; grep ntp- ntp-4.2.0.a.20040617-6.el4 [root@server2 ~]# Procedure: First we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=488&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<ul>
<li>Network devices may need an NTP server to sync its clock; so that all devices in the network display same time&#8230;We can configure a Linux host as an NTP server.</li>
<li>Check whether NTP daemon is installed in Linux: [Tested in RedHat-3.4.6]<span id="more-488"></span></li>
</ul>
<pre><span style="color:#ff0000;">[root@server2 ~]# rpm -qa | grep ntp-</span>
<span style="color:#ff0000;">ntp-4.2.0.a.20040617-6.el4</span>
<span style="color:#ff0000;">[root@server2 ~]#</span></pre>
<p><span style="text-decoration:underline;">Procedure:</span></p>
<p>First we need to sync the linux host with stratum-0 or 1 NTP public servers (with NTP daemon disabled-to use ntp port: <strong>UDP 123</strong>). Once it is sync-ed, we can start the NTP daemon and it will respond to sync-request from local network devices.</p>
<ul>
<li>Check whether ntpd is disabled – Only then we can open UDP:123 port to sync with public NTP servers.</li>
</ul>
<p>Use <strong>“service ntpd status”</strong> or <strong>“pgrep ntpd”</strong> or <strong>“netstat -a | grep ntp”</strong>. Last 2 commands will not have any outputs if NTP daemon is disabled.</p>
<ul>
<li>Check Public NTP servers are configured in <strong>“etc/ntp.conf”</strong></li>
</ul>
<pre><span style="color:#ff0000;">[root@server2 ~]# cat /etc/ntp.conf | grep ^server</span>
<span style="color:#ff0000;">server 0.us.pool.ntp.org</span>
<span style="color:#ff0000;">server 1.us.pool.ntp.org</span>
<span style="color:#ff0000;">server 2.us.pool.ntp.org</span>
<span style="color:#ff0000;">server  127.127.1.0     # local clock</span>
<span style="color:#ff0000;">[root@server2 ~]#</span></pre>
<ul>
<li>Even if we start the NTP service now, the linux host will not sync with public NTP servers if the difference between local time and NTP server time is huge. Hence manually force the linux host to update its time as given by NTP server. (NTP daemon has be disabled for the port to open)</li>
</ul>
<pre><span style="color:#ff0000;">[root@server2 ~]#date -s "Jan 01 00:00:00"</span>
<span style="color:#ff0000;">[root@server2 ~]# date</span>
<span style="color:#ff0000;">Sat Jan  1 00:00:18 PST 2011</span>
<span style="color:#ff0000;">[root@server2 ~]#</span>
<span style="color:#ff0000;">[root@server2 ~]# ntpdate 0.us.pool.ntp.org</span>
<span style="color:#ff0000;">28 Aug 13:17:46 ntpdate[27387]: step time server 74.118.152.85 offset 20693378.740392 sec</span>
<span style="color:#ff0000;">[root@server2 ~]# date</span>
<span style="color:#ff0000;">Sun Aug 28 13:17:48 PDT 2011</span>
<span style="color:#ff0000;">[root@server2 ~]#</span></pre>
<p>We can see NTP logs in <strong>“/var/log/messages”</strong> folder.</p>
<ul>
<li>Now we can start the ntpd process using <strong>“service ntpd start”</strong> so that local linux host can act as NTP server for routers. Check whether the linux host is in sync with public NTP servers using <strong>“ntpq –p”</strong> command.</li>
<li><strong>“tcpdump –vv  -i eth0 port 123”</strong> to check incoming/outgoing NTP packets.</li>
<li>Configuration on network device. In this example it is Force10 router;</li>
</ul>
<pre><span style="color:#ff0000;">Force10#show run ntp</span>
<span style="color:#ff0000;">!</span>
<span style="color:#ff0000;">ntp server 10.11.131.220</span>
<span style="color:#ff0000;">ntp update-calendar</span>
<span style="color:#ff0000;">Force10#</span>
<span style="color:#ff0000;">Force10#show clock detail</span>
<span style="color:#ff0000;">13:44:59.997 PDT Sun Aug 28 2011</span>
<span style="color:#ff0000;">Time source is NTP</span>
<span style="color:#ff0000;">Force10#show ntp status</span>
<span style="color:#ff0000;">Clock is synchronized, stratum 3, reference is 10.11.131.220</span>
<span style="color:#ff0000;">frequency is -64.000 ppm, stability is 407.836 ppm, precision is 4294967283</span>
<span style="color:#ff0000;">reference time is D2052746.38463000 (20:44:54.219 UTC Sun Aug 28 2011)</span>
<span style="color:#ff0000;">clock offset is -50.780340 msec, root delay is 0.08142 sec</span>
<span style="color:#ff0000;">root dispersion is 0.33315 sec, peer dispersion is 278.152 msec</span>
<span style="color:#ff0000;">peer mode is client</span></pre>
<p>Note: NTP status will show clock sync-ed only after some minutes.</p>
<p>&lt;<span style="text-decoration:underline;">NTP debug on Force10 when NTP sync occurs</span>&gt;</p>
<p>3d0h35m : NTP: rcv packet from 10.11.131.220</p>
<p>leap 3, mode 4, version 3, stratum 0, ppoll 16</p>
<p>rtdel 0000 (0.000000), rtdsp 00A2 (2.471924), refid 494E4954 (73.78.73.84)</p>
<p>ref 00000000.00000000 (6:28:16.000 UTC Thu Feb 7 2036)</p>
<p>org D20529E2.F6AAA000 (20:56:2.963 UTC Sun Aug 28 2011)</p>
<p>rec D20529E2.E71550CA (20:56:2.902 UTC Sun Aug 28 2011)</p>
<p>xmt D20529E2.E715F88F (20:56:2.902 UTC Sun Aug 28 2011)</p>
<p>inp D20529E2.F6D8D000 (20:56:2.964 UTC Sun Aug 28 2011)</p>
<p>3d0h35m : ntpDebug: receive: pkt 48 bytes</p>
<p>3d0h35m : ntpDebug: receive: his mode 4</p>
<p>Aug 28 20:56:03: %RPM0-P:CP %NTP-6-INVALID PKT: xntpd task, invalid pkt received, bad header</p>
<p>3d0h37m : NTP: rcv packet from 10.11.131.220</p>
<p>leap 0, mode 4, version 3, stratum 2, ppoll 16</p>
<p>rtdel 14BD (81.008911), rtdsp 10C6B (1048.507690), refid 44000E4C (68.0.14.76)</p>
<p>ref D20529FF.3F0E3CD9 (20:56:31.246 UTC Sun Aug 28 2011)</p>
<p>org D2052A43.BBA9F000 (20:57:39.733 UTC Sun Aug 28 2011)</p>
<p>rec D2052A43.A25ABC0E (20:57:39.634 UTC Sun Aug 28 2011)</p>
<p>xmt D2052A43.A25B530C (20:57:39.634 UTC Sun Aug 28 2011)</p>
<p>inp D2052A43.BBD74000 (20:57:39.733 UTC Sun Aug 28 2011)</p>
<p>3d0h37m : ntpDebug: receive: pkt 48 bytes</p>
<p>3d0h37m : ntpDebug: receive: his mode 4</p>
<p>3d0h37m : ntpDebug: clock_update(10.11.131.220)</p>
<p>3d0h37m : ntpDebug: synchronized to 10.11.131.220, stratum=2</p>
<p><span style="text-decoration:underline;">References:</span></p>
<p>Public NTP servers: <a href="http://support.ntp.org/bin/view/Servers/NTPPoolServers">http://support.ntp.org/bin/view/Servers/NTPPoolServers</a></p>
<p><a href="http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch24_:_The_NTP_Server">http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch24_:_The_NTP_Server</a></p>
<p><a href="http://linux.die.net/man/1/ntpd">http://linux.die.net/man/1/ntpd</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ippoint.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ippoint.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ippoint.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ippoint.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ippoint.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ippoint.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ippoint.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ippoint.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ippoint.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ippoint.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ippoint.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ippoint.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ippoint.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ippoint.wordpress.com/488/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=488&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ippoint.wordpress.com/2011/09/03/linux-ntp-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccfc62f1f9cd0af1d3dd69400039d24d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">ippoint</media:title>
		</media:content>
	</item>
		<item>
		<title>Tcpdump</title>
		<link>http://ippoint.wordpress.com/2011/07/08/tcpdump/</link>
		<comments>http://ippoint.wordpress.com/2011/07/08/tcpdump/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 04:49:00 +0000</pubDate>
		<dc:creator>ippoint</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tcpdump]]></category>

		<guid isPermaLink="false">http://ippoint.wordpress.com/2011/07/08/tcpdump/</guid>
		<description><![CDATA[tcpdump – to dump the network traffic in Linux platforms. Format: “tcpdump &#60;options&#62; &#60;expressions&#62;” · By default, ‘tcpdump’ will dump traffic on first found lowest numbered interface from the list and continues to dump packets unless a stop signal is issued. (Ctr+C) · Display all available interfaces using “tcpdump –D” Most used options are: -c [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=446&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>tcpdump</strong> – to dump the network traffic in Linux platforms.</p>
<p>Format: <strong>“tcpdump &lt;options&gt; &lt;expressions&gt;”</strong></p>
<p style="padding-left:30px;">· By default, <strong>‘tcpdump’</strong> will dump traffic on first found lowest numbered interface from the list and continues to dump packets unless a stop signal is issued. (Ctr+C)<span id="more-446"></span></p>
<p style="padding-left:30px;">· Display all available interfaces using <strong>“tcpdump –D”</strong></p>
<p>Most used options are:</p>
<p><strong>-c &lt;num&gt;</strong> : <strong>C</strong>ount option. To limit the number of packets captured by the filter</p>
<p><strong>-i &lt;iface&gt;</strong> : to specify the <strong>I</strong>nterface</p>
<p><strong>-n</strong> : to suppress the <strong>N</strong>ame conversion from well know addresses/DNS resolved hosts.</p>
<p><strong>-q</strong> : <strong>Q</strong>uick output without much protocol information.</p>
<p><strong>-v / -vv</strong> : to display in <strong>V</strong>erbose</p>
<p><strong>-t</strong> : without <strong>T</strong>imestamp</p>
<p><strong>-r</strong> : to <strong>R</strong>ead from a file</p>
<p><strong>-w</strong> : to <strong>W</strong>rite to a file</p>
<p><strong>-e</strong>: to display link-layer (L2) <strong>E</strong>thernet header in each line.</p>
<p><strong>-A</strong> : to display full packet content in <strong>A</strong>SCII.</p>
<p><span style="text-decoration:underline;"><strong>Expression Format:</strong></span></p>
<p>{protocol} – {direction} – {type: with logical expression}</p>
<p style="padding-left:30px;">· Protocol: can be <strong>ether, ip, ip6, arp, tcp, udp</strong> etc</p>
<p style="padding-left:60px;">o If none specified, all protocols are included.</p>
<p style="padding-left:30px;">· Direction: <strong>src, dst, src or dst</strong> and <strong>src and dst</strong></p>
<p style="padding-left:60px;">o If none specified,<strong> src or dst </strong>is assumed.</p>
<p style="padding-left:30px;">· Type: can be <strong>host, net , port</strong> and <strong>portrange</strong></p>
<p style="padding-left:60px;">o If none specified, <strong>host</strong> is assumed</p>
<p style="padding-left:30px;">· Logical expressions: <strong>not, and, or</strong></p>
<p style="padding-left:60px;">o <strong>not </strong>gets higher precedence. Both <strong>and,or </strong>take same precedence evaluating from left to right.</p>
<p> <span style="text-decoration:underline;">Options available are:</span></p>
<p style="padding-left:30px;">o <strong>[src | dst] host &lt;host&gt;</strong> : To match src or destination with IP address matched ‘host’</p>
<p style="padding-left:30px;">o <strong>ether src [dst] &lt;ehost&gt;</strong> : To match src[destination] with mac-address same as ‘ehost’</p>
<p style="padding-left:30px;">o <strong>ether host &lt;ehost&gt;</strong> : to match either src or destination same as ‘ehost’.</p>
<p style="padding-left:30px;">o <strong>portrange port1-port2</strong> : to match any (tcp or udp) ports in range port1 to port2</p>
<p style="padding-left:30px;">o <strong>less &lt;length&gt;</strong> : to match packets &lt;= ‘length’</p>
<p style="padding-left:30px;">o <strong>greater &lt;length&gt;</strong> : to match packets &gt;= ‘length’</p>
<p style="padding-left:30px;">o <strong>ip proto &lt;protocol&gt; </strong>: to match specific protocols/numbers. Some options are<strong> icmp,igmp,pim,vrrp,tcp,udp </strong>etc.</p>
<p style="padding-left:30px;">o <strong>ether proto &lt;protocol&gt;</strong> : to match specific ethertype. Some options are <strong>ip,ipv6,arp,iso</strong></p>
<p style="padding-left:30px;">o <strong>[ether |ip ] multicast: </strong>to match L2/L3 multicast packets.</p>
<p style="padding-left:30px;">o <strong>[ether |ip] broadcast: </strong>to match L2/L3 broadcast packets.</p>
<p style="padding-left:30px;">o <strong>iso proto isis: to match ISIS PDUs</strong></p>
<p style="padding-left:30px;">o <strong>vlan &lt;vlan-id&gt;: </strong>to match 802.1q packets. All vlans included if ‘vlan-id’ is not specified.</p>
<p style="padding-left:30px;">o <strong>mpls &lt;label&gt;: </strong>to match mpls packets.</p>
<p><span style="text-decoration:underline;"><strong>Examples:</strong></span></p>
<p style="padding-left:30px;">1. <strong>“tcpdump -t src host 10.16.151.206 &amp;&amp; tcp 22”</strong> : To capture all SSH packets generated by a host 10.16.151.206</p>
<pre><strong>IP 10.16.151.206.ssh &gt; 10.14.123.208.44248: P 940:1056(116) ack 1 win 14976</strong>
<strong>IP 10.16.151.206.ssh &gt; 10.14.123.208.44248: P 1056:1172(116) ack 1 win 14976</strong></pre>
<p style="padding-left:30px;">2. <strong>“tcpdump -ttt -c 3 ip proto ospf”</strong> : To capture three OSPF packets with time format as delta to its previous(-ttt option). This should be useful to check whether we receive ospf packets every 10 seconds.</p>
<pre><strong>000000 IP 10.16.151.254 &gt; ospf-all.mcast.net: OSPFv2, Hello, length: 44</strong>
<strong>10.000340 IP 10.16.151.254 &gt; ospf-all.mcast.net: OSPFv2, Hello, length: 44</strong>
<strong>9. 999444 IP 10.16.151.254 &gt; ospf-all.mcast.net: OSPFv2, Hello, length: 44</strong></pre>
<p style="padding-left:30px;"><strong>3. “tcpdump -evt -i eth0 ip src host 10.16.151.206 or ip proto ICMP and greater 2540”</strong>: To capture packet on interface “eth0” with L2 header (-e) and with verbose explanation (-v) and without timestamp (-t). Filter option is; those packets either can have SRC IP = 10.16.151.205 or ICMP packets but the size (whole packet size) should be greater than 2540 bytes. (evaluated from left to right as <strong>or,and</strong> has same precedence)</p>
<pre><strong>00:19:bb:2e:b7:1a (oui Unknown) &gt; 00:01:e8:d5:9e:e2 (oui Unknown), ethertype IPv4 (0x0800), length 2543: (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto: ICMP (1), length: 2529) </strong>
<strong>10.16.151.206 &gt; 10.16.151.254: ICMP echo request, id 2642, seq 1, length 2509</strong></pre>
<p style="padding-left:30px;"><strong>4. “tcpdump -w capture_file dst host 10.16.151.206 and tcp dst port not 22”: To write the filtered packet capture to a file name “capture_file”. Filter option is; those packets should be destined to 10.16.151.206 and it shouldn’t be SSH packet.</strong></p>
<p style="padding-left:30px;">5. <strong>“tcpdump -qr capture_file: </strong>To read the packet captured file “capture_file”</p>
<pre>[root@linux-1 ~]# tcpdump -qr capture_file
reading from file capture_file, link-type EN10MB (Ethernet)
10:31:24.562468 IP 10.16.25.52.dzdaemon &gt; 10.16.151.206.http: tcp 0
10:31:24.562651 IP 10.16.25.52.dzdaemon &gt; 10.16.151.206.http: tcp 0
10:31:24.563159 IP 10.16.25.52.dzdaemon &gt; 10.16.151.206.http: tcp 590</pre>
<p>HTH</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ippoint.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ippoint.wordpress.com/446/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ippoint.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ippoint.wordpress.com/446/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ippoint.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ippoint.wordpress.com/446/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ippoint.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ippoint.wordpress.com/446/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ippoint.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ippoint.wordpress.com/446/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ippoint.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ippoint.wordpress.com/446/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ippoint.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ippoint.wordpress.com/446/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=446&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ippoint.wordpress.com/2011/07/08/tcpdump/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccfc62f1f9cd0af1d3dd69400039d24d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">ippoint</media:title>
		</media:content>
	</item>
		<item>
		<title>TCP-IP</title>
		<link>http://ippoint.wordpress.com/2011/07/01/tcp-ip/</link>
		<comments>http://ippoint.wordpress.com/2011/07/01/tcp-ip/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 03:11:22 +0000</pubDate>
		<dc:creator>ippoint</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[tcp]]></category>
		<category><![CDATA[udp]]></category>

		<guid isPermaLink="false">http://ippoint.wordpress.com/2011/07/01/test/</guid>
		<description><![CDATA[Five layers of TCP-IP protocol are; Physical layer : deals with how bits are identified and transmitted, voltage values etc Data-link layer: how the device on medium is identified and how it is accessed or shared and how the frame is constructed. Deal with MAC in case of ethernet medium. Internet(IP) layer: protocols to communicate [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=366&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li>
<div>Five layers of TCP-IP protocol are;</div>
<ul>
<li><strong>Physical layer :</strong> deals with how bits are identified and transmitted, voltage values etc</li>
<li><strong>Data-link layer:</strong> how the device on medium is identified and how it is accessed or shared and how the frame is constructed. Deal with MAC in case of ethernet medium.<span id="more-366"></span></li>
<li><strong>Internet(IP) layer:</strong> protocols to communicate across network. IP routing. OSPF</li>
<li><strong>Host-to-host layer:</strong> Logical connection between two communicating hosts. TCP/UDP etc</li>
<li><strong>Application layer:</strong> individual process running on end host.</li>
</ul>
</li>
<li>
<div>IPv4 header Fields:</div>
<p><img src="http://ippoint.files.wordpress.com/2011/07/070111_0310_test1.gif?w=780" alt="" /></p>
<ul>
<li>Version: set to 4</li>
<li>Header length: minimum header length is 20 bytes. Options field can make upto 60 byte</li>
<li>TOS: First 6 bits are DSCP and last 2 bits are ECN. Used for QOs.</li>
<li>Total length: Maximum value is 65535. Maximum possible IPv4 packet size</li>
<li>Identification: Router which fragments a packet places same value on all chunk packets for end host to identify fragments of same packet.</li>
<li>
<div>Flags: 3 bits:</div>
<ul>
<li>First bit is unused.</li>
<li>Second bit is DF (don&#8217;t fragment) bit. If set, router will drop packet and send ICMP if packet has to be fragmented.</li>
<li>3<sup>rd</sup> bit is More Bit (MF): The last fragment MF is set to 0.</li>
</ul>
</li>
<li>Fragment offset: to identify at which location this fragments fits into.</li>
<li>TTL: hop limit.</li>
<li>Protocols: To identify host-host layer protocol. 1 for ICMP. 2 for IGMP. 6 for TCP. 17 for UDP. 89 for OSPF.</li>
<li>Header checksum: For error detection.</li>
<li>Source and destination IP address.</li>
<li>
<div>Options:</div>
<ul>
<li><strong>Loose source routing</strong>: List of IP addresses are added which the packet has to travel through. Multiple hops can be taken between two addresses.</li>
<li><strong>Strict source routing</strong>: List of IP addresses are added which the packet has to travel through in strict order.</li>
<li><strong>Record route</strong>: allows router to add its outgoing interface while packet is routed.</li>
<li><strong>Timestamp:</strong> similar to RR expect timestamp is also added.</li>
<li>All options can be invoked via extended ping.</li>
</ul>
</li>
</ul>
</li>
<li>
<div>First octet rule:</div>
<p style="margin-left:36pt;"><img src="http://ippoint.files.wordpress.com/2011/07/070111_0310_test2.jpg?w=780" alt="" /></p>
</li>
<li>IPv4 address has 3 parts: Network part, subnet and host part.</li>
<li>Network mask can be represented in dotted decimal (default), bitcount (/24 via &#8220;<strong>ip netmask-format bit-count&#8221;</strong> command on VTY lines) or hexadecimal\</li>
<li>
<div>ARP:</div>
<ul>
<li>RFC – 826</li>
<li>Important fields: Protocol type, opcode, sender ip address, sender mac address, target ip address, target mac address. If sender IP == target IP in an ARP, then it is GARP.</li>
<li>ARP entries are hold for 4 hours.Can be changed on per interface using <strong>&#8220;arp time-out x&#8221;</strong></li>
<li>Static ARP via <strong>&#8220;arp &lt;ip&gt; &lt;mac&gt; &lt;encap type&gt;&#8221;<br />
</strong></li>
<li>Proxy ARP: when a router receives ARP request on a network with target IP address belonging to another network and if the router has that network in its routing table, it sends ARP reply on behalf on another network.</li>
<li>Enabled by default. Can be disabled per interface via <strong>&#8220;no ip proxy-arp&#8221;</strong></li>
<li>GARP: detect IP duplication. Disabled by default.Can be enabled via <strong>&#8220;ip gratuitous-arps&#8221;<br />
</strong></li>
<li>ICMP redirects are enabled by default.Can be disabled per interface via <strong>&#8220;no ip redirects&#8221;</strong></li>
</ul>
</li>
<li>
<div>TCP header format:</div>
<p style="margin-left:36pt;"><img src="http://ippoint.files.wordpress.com/2011/07/070111_0310_test3.jpg?w=780" alt="" /></p>
<ul>
<li>Sequence number: to identify where the data sits in the data stream</li>
<li>Ack number: to identify seq number of next packet SRC expects from the receiver.</li>
<li>Window size: it specifies how many octets starting from ACK number can be sent next.</li>
<li>Urgent pointer: used only if URG flag is set. This value + seq. number is end of data.</li>
</ul>
</li>
<li>UDP header: Has only SRC port, DES port, checksum (set to zeros if not used) and length</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ippoint.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ippoint.wordpress.com/366/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ippoint.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ippoint.wordpress.com/366/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ippoint.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ippoint.wordpress.com/366/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ippoint.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ippoint.wordpress.com/366/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ippoint.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ippoint.wordpress.com/366/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ippoint.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ippoint.wordpress.com/366/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ippoint.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ippoint.wordpress.com/366/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=366&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ippoint.wordpress.com/2011/07/01/tcp-ip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccfc62f1f9cd0af1d3dd69400039d24d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">ippoint</media:title>
		</media:content>

		<media:content url="http://ippoint.files.wordpress.com/2011/07/070111_0310_test1.gif" medium="image" />

		<media:content url="http://ippoint.files.wordpress.com/2011/07/070111_0310_test2.jpg" medium="image" />

		<media:content url="http://ippoint.files.wordpress.com/2011/07/070111_0310_test3.jpg" medium="image" />
	</item>
		<item>
		<title>L2 Security</title>
		<link>http://ippoint.wordpress.com/2011/04/02/l2-security/</link>
		<comments>http://ippoint.wordpress.com/2011/04/02/l2-security/#comments</comments>
		<pubDate>Sat, 02 Apr 2011 05:16:57 +0000</pubDate>
		<dc:creator>ippoint</dc:creator>
				<category><![CDATA[L2 switch]]></category>

		<guid isPermaLink="false">http://ippoint.wordpress.com/?p=332</guid>
		<description><![CDATA[Interface command “switchport port-security” allows a single MAC to be learned on that port. Interface command “switchport port-security maximum x” to allow ‘x’ mac to learn on that port. To define static sticky MAC on an interface, use “switchport port-security mac-address x:x:x’ Violation action: ‘switchport port-security violation shutdown’ : Port is moved to errdisabled state [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=332&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li>Interface command “<strong>switchport port-security</strong>” allows a single MAC to be learned on that port.</li>
<li>Interface command “switchport port-security maximum x” to allow ‘x’ mac to learn on that port.</li>
<li>To define static sticky MAC on an interface, use “<strong>switchport port-security mac-address x:x:x</strong>’<span id="more-332"></span></li>
<li>Violation action:
<ul>
<li><strong>‘switchport port-security violation shutdown’</strong> : Port is moved to errdisabled state</li>
<li><strong>‘switchport port-security violation restrict’</strong> : Port stays UP. Packets from violated mac-address are dropped and switch keeps a record of how many packets are violated.</li>
<li><strong>‘switchport port-security violation protect’</strong> : Port stays UP. Packets from violated mac-address are dropped and no records are saved.</li>
<li><strong>‘clear port-security dynamic’</strong> command clears the violated mac-address from the cache so that the PC can reuse the port.</li>
<li><strong>‘show port-security interface’</strong> to view the port-security status on an interface.</li>
</ul>
</li>
</ul>
<p><strong><span style="text-decoration:underline;">Port-based authentication:</span></strong></p>
<ul>
<li>IEEE 802.1x standard</li>
<li>Combination of AAA authentication and port security.</li>
<li>Both switch and host needs to support 802.1x using Extensible Authentication Protocol over LANs (EAPOL), a L2 protocol. Default state of a switch port: unauthenticated.</li>
<li>Configuration:
<ul>
<li>Enable AAA:
<ul>
<li>‘<strong>aaa new-model</strong>’</li>
</ul>
</li>
<li>Configure RADIUS server:
<ul>
<li>‘<strong>radius-server host 1.1.1.1 key xxxx’</strong></li>
</ul>
</li>
<li>Configure dot1x to use radius host for authentication:
<ul>
<li>‘<strong>aaa authentication dot1x default group radius’</strong></li>
</ul>
</li>
<li>Enable dot1x:
<ul>
<li><strong>‘dot1x system-auth-control;</strong></li>
</ul>
</li>
<li>Configure ports to use dot1x:
<ul>
<li>By default, when we enable dot1x, all ports are set to “forced-authorized” means any PC can start communication with network.</li>
<li>Configure<strong>, ‘dot1x port-control auto’</strong> to make PC to negotiate with switch</li>
</ul>
</li>
<li>To allow multiple host on a switch port;
<ul>
<li><strong>‘dot1x host-mode multihost’</strong></li>
</ul>
</li>
<li><strong>Show dotx all</strong></li>
</ul>
</li>
</ul>
<p><strong><span style="text-decoration:underline;">Spoofing attack:</span></strong></p>
<ul>
<li><span style="text-decoration:underline;">DHCP snooping:</span>
<ul>
<li>When DHCP snooping is enabled, switch ports are categorized as trusted or untrusted.</li>
<li>DHCP servers are connected to trusted ports and all hosts are in untrusted port.</li>
<li>If the switch receives DHCP reply on untrusted ports, the switch drops the packet and moves the port to errdisable state. Hence, avoiding replies from rouge servers</li>
<li>Configuration:
<ul>
<li>Enable DHCP snooping:
<ul>
<li><strong>‘ip dhcp snooping’</strong></li>
<li>VLANs where snooping has to be enabled;
<ul>
<li><strong>‘ip dhcp snooping vlan x’</strong></li>
</ul>
</li>
<li>Configure the port connected to server as trust
<ul>
<li>By default, all ports are untrusted.</li>
<li><strong>(config-if)# ip dhcp snooping trust</strong></li>
</ul>
</li>
<li>Optional: Rate limit the DHCP request on untrusted port
<ul>
<li><strong>(config-if)# ip dhcp snooping limit rate x</strong></li>
</ul>
</li>
<li>DHCP option-82 is enabled by default
<ul>
<li><strong>[no] ip dhcp snooping information option</strong></li>
</ul>
</li>
<li><strong>show ip dhcp snooping [binding]</strong></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li><span style="text-decoration:underline;">IP Source Guard:</span>
<ul>
<li>To avoid address spoofing attack. Check made on end user packets that Source IP is same as assigned by DHCP server. Uses DHCP snooping binding table/static entry.</li>
<li>Check on:
<ul>
<li>Source IP should be same as in DHCP snooping table. Checked via IP ACL.</li>
<li>Source MAC should be same as learned and in snooping table using Port security</li>
</ul>
</li>
<li>Configuration:
<ul>
<li>Static IP source binding:
<ul>
<li><strong>‘ip source binding &lt;mac&gt; vlan &lt;id&gt; &lt;ip&gt; interface &lt;&gt;’</strong></li>
<li>Enable IP source guard on interface mode:
<ul>
<li><strong>‘(config-if)# ip verify source [port-security]’</strong></li>
<li>By default, only source IP is checked.</li>
<li>For source MAC to check, use <strong>‘port-security’</strong> keyword.</li>
</ul>
</li>
<li><strong>‘show ip verify source’</strong></li>
<li><strong>‘show ip source binding’</strong></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li><span style="text-decoration:underline;">Dynamic ARP Inspection (DAI)</span>
<ul>
<li>To avoid ARP spoofing by rouge host in same vlan.</li>
<li>The switch intercepts and inspects all ARP packets that arrive on an untrusted port; no inspection is done on trusted ports (which connects to another switch)</li>
<li>When an ARP reply is received on an untrusted port, the switch checks the MAC and IP addresses reported in the reply packet against DHCP snooping table or static entry.</li>
<li>By default, no check is done on ethernet MAC of the ARP packet.</li>
<li>Configuration:
<ul>
<li>Enable DAI on VLAN:
<ul>
<li><strong>‘(config)# ip arp inspection vlan x’</strong></li>
<li>To configure trusted port:
<ul>
<li><strong>‘(config-if)# ip arp inspection trust’</strong></li>
</ul>
</li>
<li>To statically configure IP-MAC pair use ARP ACL:
<ul>
<li><strong>‘(config)#arp access-list &lt;name&gt;’</strong>
<ul>
<li><strong>‘permit ip host &lt;ip&gt; mac host &lt;mac&gt;’</strong></li>
<li><strong> ‘(config)# ip arp inspection filter &lt;name&gt; vlan &lt;vlan&gt; [static]’</strong></li>
</ul>
</li>
<li>By default, check is first done on ARP ACL table. If no hit, then DHCP binding table is checked. Add keyword ‘static’ to check only ARP ACL.</li>
</ul>
</li>
<li>To validate the ethernet MAC of the ARP packet:
<ul>
<li><strong>‘(config)# ip arp inspection validate &#8230;’</strong></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<p><span style="text-decoration:underline;">VLAN Access list: (VACL)</span></p>
<ul>
<li>VACL are filters that directly can affect how packets are handled within a VLAN.</li>
<li>Configured similar to route-map with match conditions and action items.</li>
<li>Merged into TCAM table.</li>
<li>Configuration:
<ul>
<li><strong>‘(config)# vlan access-map &lt;name&gt;</strong>
<ul>
<li><strong>match {ip | mac } address &lt;acl name&gt;</strong></li>
<li><strong>action {drop | forward | redirect}</strong></li>
</ul>
</li>
<li><strong>(config)# vlan filter &lt;name&gt; vlan-list &lt;vlan&gt;</strong></li>
</ul>
</li>
</ul>
<p><a href="http://ippoint.wordpress.com/2011/02/17/private-vlan-concept-and-cisco-iosf10-configuration/" target="_blank">Private VLAN</a></p>
<p><strong><span style="text-decoration:underline;">Securing VLAN trunks:</span></strong></p>
<ul>
<li>Avoid DTP messages to be exchanged with end host. Configure ‘switchport mode access’ .</li>
<li><span style="text-decoration:underline;">VLAN hopping:</span>
<ul>
<li>Crafted packet from one vlan can be passed to another VLAN provided following conditions occurs;
<ul>
<li>The host is connected to access port of a switch which can accept tagged packet</li>
<li>The switch has 802.1Q trunk with the host vlan as native vlan</li>
</ul>
</li>
<li>Double tagged packet from the attacker is accepted by the switch and passes via trunk to another switch with outer native tag removed. This packet on reaching another switch can pass to the inner tagged vlan.</li>
<li>VLAN hopping cannot happen in new platform where access port blocks tagged packets.</li>
<li>VLAN hopping can be avoided by;
<ul>
<li>Set native vlan to unused vlan ID.</li>
<li>Prune native vlan from the trunk or configure switch to send native vlan packets tagged with native vlan ID. Command: <strong>‘(config)#vlan dot1q tag native’</strong></li>
</ul>
</li>
</ul>
</li>
</ul>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ippoint.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ippoint.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ippoint.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ippoint.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ippoint.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ippoint.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ippoint.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ippoint.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ippoint.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ippoint.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ippoint.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ippoint.wordpress.com/332/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ippoint.wordpress.com/332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ippoint.wordpress.com/332/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=332&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ippoint.wordpress.com/2011/04/02/l2-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccfc62f1f9cd0af1d3dd69400039d24d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">ippoint</media:title>
		</media:content>
	</item>
		<item>
		<title>Wireless LAN</title>
		<link>http://ippoint.wordpress.com/2011/03/26/wireless-lan/</link>
		<comments>http://ippoint.wordpress.com/2011/03/26/wireless-lan/#comments</comments>
		<pubDate>Sat, 26 Mar 2011 05:08:41 +0000</pubDate>
		<dc:creator>ippoint</dc:creator>
				<category><![CDATA[L2 switch]]></category>

		<guid isPermaLink="false">http://ippoint.wordpress.com/?p=328</guid>
		<description><![CDATA[IEEE 802.11 – standards for Wireless LAN ( WLAN). Every wireless connection is in half-duplex mode because transmitting and receiving stations use the same frequency The IEEE 802.11 standards use the CSMA/CA method to avoid collisions. Frame transmit: If another device is already transmitting a frame, the station must wait until the frame in progress [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=328&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li><strong>IEEE 802.11</strong> – standards for Wireless LAN ( WLAN).</li>
<li>Every wireless connection is in half-duplex mode because transmitting and receiving stations use the same frequency</li>
<li>The IEEE 802.11 standards use the <strong>CSMA/CA</strong> method to avoid collisions.<span id="more-328"></span></li>
<li>Frame transmit:
<ul>
<li>If another device is already transmitting a frame, the station must wait until the frame in progress has completed; then it must wait a random amount of time before transmitting its own frame.</li>
<li>Frame duration is added to the 802.11 header.</li>
<li>All stations has to wait a short amount of time, called the <strong>DCF interframe space (DIFS)</strong>, before transmitting</li>
<li>In addition to DIFS, each station must wait for ‘random backoff’ time before transmitting.</li>
<li>The whole process of stations avoiding congestion is called <strong>distributed coordination function (DCF)</strong></li>
</ul>
</li>
<li><span style="text-decoration:underline;"><strong>WLAN terminologies:</strong></span>
<ul>
<li>In IEEE 802.11 terminology, any group of wireless devices is known as a service set.The devices must share a common <strong>service set identifier (SSID)</strong></li>
<li>When two or more wireless devices communicate with each other without any external device, it is called ad hoc or <strong>Independent basic service set (IBSS).</strong></li>
<li>An access point (AP) is the hub of the service set. All wireless device first needs to associate with its AP before using the wireless network. The client should be matching SSID, compatible data rate and authentication.</li>
<li><strong>Access points (AP)</strong> with its associated clients are called <strong>basic service set (BSS).</strong></li>
<li>One or more access points can be connected to L2/L3 MLS switches which are called <strong>extended service set (ESS).</strong></li>
<li>AP is in charge of mapping a VLAN to an SSID. Can use 802.1Q to trunk with uplink.</li>
<li>When a client moves from one cell to another, it may be ‘Layer2 roaming’ (IP address not changed) or it can be ‘Layer3 roaming’.</li>
</ul>
</li>
<li>Traditional WLAN architecture:
<ul>
<li>BSS interacts with its uplink L2/L3 switch. All operations like security, VLAN-SSID mapping, and bandwidth allocation are performed within an access-point.</li>
<li>Cisco calls this as <strong>‘autonomous mode AP’</strong></li>
</ul>
</li>
<li><strong><span style="text-decoration:underline;">Cisco Unified Wireless Network Architecture</span></strong> (‘split-MAC architecture’)
<ul>
<li>The entire job performed by ‘autonomous mode AP’ is spitted and performed by <strong>Lightweight Access point (LAP)</strong> and <strong>wireless LAN controller (WLC).</strong></li>
<li>RF transmit/receive, MAC management, encryptions are performed by LAP.</li>
<li>RF management, association and roaming management, client authentication, security management and QOS are performed by WLC.</li>
<li><strong>LWAPP</strong> (Light weight access point protocol) or <strong>CAPWAP</strong> (Control and Provisioning Wireless Access Points protocol) tunnel is created between LAP and WLC.</li>
<li>Control messages (encrypted) and data messages (already encapsulated from client to AP) are passed via this tunnel.</li>
<li>LWAPP uses UDP destination ports 12222 and 12223 on the WLC end. Similarly, CAPWAP uses UDP ports 5246 and 5247.</li>
<li>LAP sends join request to the first WLC from its list of WLC (Primary, secondary and tertiary)</li>
<li>Traffic pattern from one client to another (even in same BSS) travels via LAP -&gt; WLC -&gt; LAP (via tunnel)</li>
<li>The LAP requires an access mode port—not a trunking port.</li>
<li>Clients negotiate their associations with the WLC directly via LAP.</li>
<li>In <strong>Intracontroller roam</strong>, the client is moved from one AP to another but still associated with same WLC and traffic is carried via same tunnel.</li>
<li>In <strong>intercontroller roam</strong>, the client association is moved from one WLC (anchor point) to another (foreign agent). WLC communicate with each other via ‘mobile exchange’ messages.</li>
</ul>
</li>
<li><strong><span style="text-decoration:underline;">Mobility groups:</span></strong>
<ul>
<li>In intercontroller roam, a client can move from one WLC to another without changing its IP address only if the WLCs belong to same mobility group.</li>
<li>A mobility group can have up to 24 WLCs</li>
</ul>
</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ippoint.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ippoint.wordpress.com/328/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ippoint.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ippoint.wordpress.com/328/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ippoint.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ippoint.wordpress.com/328/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ippoint.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ippoint.wordpress.com/328/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ippoint.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ippoint.wordpress.com/328/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ippoint.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ippoint.wordpress.com/328/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ippoint.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ippoint.wordpress.com/328/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=328&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ippoint.wordpress.com/2011/03/26/wireless-lan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccfc62f1f9cd0af1d3dd69400039d24d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">ippoint</media:title>
		</media:content>
	</item>
		<item>
		<title>IP Phone</title>
		<link>http://ippoint.wordpress.com/2011/03/19/ip-phone/</link>
		<comments>http://ippoint.wordpress.com/2011/03/19/ip-phone/#comments</comments>
		<pubDate>Sat, 19 Mar 2011 18:26:03 +0000</pubDate>
		<dc:creator>ippoint</dc:creator>
				<category><![CDATA[IOS]]></category>
		<category><![CDATA[L2 switch]]></category>
		<category><![CDATA[poe]]></category>
		<category><![CDATA[voice qos]]></category>
		<category><![CDATA[voice vlan]]></category>

		<guid isPermaLink="false">http://ippoint.wordpress.com/?p=324</guid>
		<description><![CDATA[Power over Ethernet (POE): PoE devices like IP phones receive power from the connected switch. The switch can provide power in two different methods: Cisco Inline power (ILP): Cisco proprietary. IEEE 802.3af: Based on IEEE standard. Switch should be capable of detecting PoE devices to offer power and bring the link UP. In 802.3af, switch [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=324&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration:underline;">Power over Ethernet (POE):</span></strong></p>
<ul>
<li>PoE devices like IP phones receive power from the connected switch.</li>
<li>The switch can provide power in two different methods:
<ul>
<li><strong>Cisco Inline power (ILP)</strong>: Cisco proprietary.</li>
<li><strong>IEEE 802.3af</strong>: Based on IEEE standard.<span id="more-324"></span></li>
</ul>
</li>
<li>Switch should be capable of detecting PoE devices to offer power and bring the link UP.</li>
<li>In 802.3af, switch applies small voltage between Tx and Rx line and resistance is measured to check whether current is drawn. A 25K Ohm resistance will be measured if PoE device is connected.</li>
<li>There are 5 power classes that can be detected: 0 to 4. <strong>Class-0 being the default offers 15.4W</strong>.</li>
<li>Class-1 device needs 4W and class-2 device needs 7W and Class-3 is optional 15.4W and class-4 device needs upto 50W (under IEEE 802.3at)</li>
<li>In Cisco ILP, Power is supplied via data pair 2 and 3 (pins 1,2 and 3,6) at 48V DC.</li>
<li>For 802.3af, power can be supplied as above or over data pairs 1 and 4.</li>
<li>Switch uses CDP to detect power class in ILP. Switch can reduce the power on receiving CDP from connected cisco IP phone which has power required field.</li>
<li><span style="text-decoration:underline;">Configuration:</span>
<ul>
<li><strong>(config-if)# power inline  { auto [ max &lt;&gt;] | static max &lt;&gt; | never}</strong></li>
<li>“never” to disable PoE on that interface.</li>
<li><strong>“show power inline”</strong></li>
</ul>
</li>
</ul>
<p><strong><span style="text-decoration:underline;">Voice VLAN:</span></strong></p>
<ul>
<li>Cisco IP phone has 3-port switch setup. One to connected switch, one to connected PC and one to VoIP internal data.</li>
<li>Voice data traffic should be allocated to separate vlan called ‘voice vlan’ and Qos functionality has to be implemented for voice vlan traffic.</li>
<li>Switch configuration instructs how the connected Cisco IP phone should send data and voice traffic.</li>
<li>Voice VLAN applicable only on access port and not on trunk. Qos should be enabled before VVLAN.</li>
<li><strong>(config-if)# switchport voice vlan &lt;vlan id&gt;</strong>
<ul>
<li>Data traffic is via native vlan (untagged)</li>
<li>Voice traffic is tagged with &lt;vlan id&gt;</li>
<li>Voice Qos set in 802.1p bits.</li>
</ul>
</li>
<li><strong>(config-if)# switchport voice vlan dot1p</strong>
<ul>
<li>Data traffic is via native vlan (untagged)</li>
<li>Voice traffic is tagged with VLAN =0</li>
<li>Voice Qos set in 802.1p bits.</li>
</ul>
</li>
<li><strong>(config-if)# switchport voice vlan untagged</strong>
<ul>
<li>Both Voice and data traffic via native vlan.</li>
<li>No 802.1p bits.</li>
<li>CDP exchange happens and the switch instruct IP phone to send traffic untagged.</li>
<li><a href="http://www.groupstudy.com/archives/ccielab/200311/msg01225.html" target="_blank">(packets tagged with VLAN 1025)???</a></li>
</ul>
</li>
<li><strong>(config-if)# switchport voice vlan none</strong>
<ul>
<li>Both Voice and data traffic via native vlan.</li>
<li>No 802.1p bits and no CDP/DTP exchange between switch and IP phone.</li>
</ul>
</li>
<li><strong>‘Show interface &lt;type&gt; switchport’</strong> to view the voice and access VLAN.</li>
</ul>
<p><strong><span style="text-decoration:underline;">Voice Qos:</span></strong></p>
<ul>
<li>By default, Cisco phone uses IP precedence value of 5 for voice traffic and 3 for voice control traffic.</li>
<li>Cisco IP phone can be considered as another switch and ‘<strong>trust boundary’</strong> can be extended to phone.</li>
<li><span style="text-decoration:underline;">Configuration:</span>
<ul>
<li>Enable Qos on multilayer switch: <strong>“mls qos”</strong></li>
<li>On the interface, configure trust parameter: <strong>‘mls qos trust { cos | ip-precedence | dscp}’</strong></li>
<li>If we configure, <strong>‘mls qos trust device cisco-phone’</strong> above qos value is trusted only if a cisco IP phone is detected via CDP. Else, qos parameter is not trusted.</li>
<li><strong>‘switchport priority extend { cos &lt;value&gt; | trust}</strong>
<ul>
<li><strong>‘trust’</strong> option extends the trust boundary to PC. Applications can send packets with Cos bits set and the IP phone trust those values and pass unchanged.</li>
<li><strong>‘cos &lt;value&gt;’</strong> makes the IP phone to overwrite the Qos bits from the PC to the specified value. If the PC is untrusted, cos should be overwritten by 0.</li>
<li>By default, the phones’ PC port is untrusted and overwrites cos values to 0.</li>
</ul>
</li>
<li>Configure <strong>‘mls qos trust cos’</strong> to switch uplink port.</li>
<li><strong>‘Show mls qos interface &lt;type&gt;’</strong></li>
</ul>
</li>
<li><strong>Auto-qos:</strong> Perform enabling qos, cos-dhcp mapping, ingress and egress queue, strict priority for voice egress traffic and trust boundaries.
<ul>
<li><strong>(config-if)# auto qos voip { cisco-phone | cisco-softphone | trust }</strong>
<ul>
<li><strong>‘cisco-phone’</strong> extends the trust boundary to the cisco IP phone detected by CDP.</li>
<li><strong>‘cisco-softphone’</strong> . packets received with DSCP value of 24,26,46 are trusted.</li>
<li><strong>‘trust’</strong>: all packets received on the interface is trusted. Configured on switch uplink.</li>
</ul>
</li>
<li><strong>‘Show auto qos interface &lt;type&gt;’</strong></li>
</ul>
</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ippoint.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ippoint.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ippoint.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ippoint.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ippoint.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ippoint.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ippoint.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ippoint.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ippoint.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ippoint.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ippoint.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ippoint.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ippoint.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ippoint.wordpress.com/324/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=324&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ippoint.wordpress.com/2011/03/19/ip-phone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccfc62f1f9cd0af1d3dd69400039d24d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">ippoint</media:title>
		</media:content>
	</item>
		<item>
		<title>Software and hardware redundancy</title>
		<link>http://ippoint.wordpress.com/2011/03/18/software-and-hardware-redundancy/</link>
		<comments>http://ippoint.wordpress.com/2011/03/18/software-and-hardware-redundancy/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 18:07:29 +0000</pubDate>
		<dc:creator>ippoint</dc:creator>
				<category><![CDATA[IOS]]></category>
		<category><![CDATA[L2 switch]]></category>
		<category><![CDATA[glbp]]></category>
		<category><![CDATA[hsrp]]></category>
		<category><![CDATA[nsf]]></category>
		<category><![CDATA[rpr]]></category>
		<category><![CDATA[sso]]></category>
		<category><![CDATA[vrrp]]></category>

		<guid isPermaLink="false">http://ippoint.wordpress.com/?p=315</guid>
		<description><![CDATA[Software Redundancy: Multilayer switches act as gateway for end users. First Hop Redundancy protocols (FHRP) are available to provide redundancy to end users. FHRP includes; Hot Standby Router Protocol (HSRP) Virtual Router Redundancy Protocol (VRRP) Gateway Load Balancing Protocol (GLBP) HSRP: HSRP is Cisco proprietary allows several routers to appear as single IP gateway address. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=315&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration:underline;">Software Redundancy:</span></strong></p>
<ul>
<li>Multilayer switches act as gateway for end users. First Hop Redundancy protocols (FHRP) are available to provide redundancy to end users.</li>
<li>FHRP includes;<span id="more-315"></span>
<ul>
<li>Hot Standby Router Protocol (HSRP)</li>
<li>Virtual Router Redundancy Protocol (VRRP)</li>
<li>Gateway Load Balancing Protocol (GLBP)</li>
</ul>
</li>
</ul>
<p><strong><span style="text-decoration:underline;">HSRP:</span></strong></p>
<ul>
<li>HSRP is Cisco proprietary allows several routers to appear as single IP gateway address.</li>
<li>Among the group of routers, one router is selected as <strong>‘active’</strong> and another is selected as ‘<strong>standby’</strong> and all others are selected as <strong>‘listen’</strong></li>
<li>All HSRP routers send Hello packets destined to <strong>224.0.0.2</strong> using UDP port <strong>1985.</strong></li>
<li>A group number can be assigned to HSRP. Values from 0 to 255 (<strong>default being 0</strong>)</li>
<li>HSRP groups are local significant to the interface.</li>
<li>Router election:
<ul>
<li>Priority values (0 to 255) can be assigned to HSRP routers. Default value is 100. Highest: 255</li>
<li>Router with highest Priority will be ‘active’ for that group. If there is tie, router with highest interface IP address will win the election.</li>
<li>HSRP Devices progress their interface states as disabled, init, listen, speak, standby, active.</li>
<li>Only standby monitors hello message from active router.</li>
<li>Default hello and hold down timers are 3 and 10 respectively. Use same timers in all routers.</li>
<li> By default, preempt is disabled.</li>
</ul>
</li>
<li><span style="text-decoration:underline;">Authentication:</span>
<ul>
<li>Plain-text:
<ul>
<li>HSRP messages are sent with plain-text key. Default key being ‘cisco’</li>
<li><strong>‘(config-if)#standby 1 authentication cisco1’</strong></li>
</ul>
</li>
<li>MD5:
<ul>
<li>Can use either ‘key-string’ or ‘key-chain’ option.</li>
<li><strong>‘(config-if)#standby 1 authentication md5 {key-string | key-chain}’</strong></li>
</ul>
</li>
</ul>
</li>
<li>We can track uplink interface so that when the interface goes down, the priority is reduced by a value, 10 being default. <strong>“(config-if)#standby 1 track &lt;interface&gt; &lt;decrement value&gt;’</strong>
<ul>
<li>For successful takeover of master;
<ul>
<li>Another router should have highest priority.</li>
<li>‘preempt’ should be configured on another router.</li>
</ul>
</li>
</ul>
</li>
<li>HSRP address: Configure via <strong>‘(config-if)#standby  &lt;group&gt; ip &lt;address&gt;”</strong>. Assign this IP address as default gateway to host. Virtual MAC address used for a specific group would be <strong>00:00:0c:07:ac:xx</strong> where ‘xx’ is the HSRP group number.</li>
<li>For load balance, configure two groups on an interface. Make the local router active for one group and standby for another group. Assign 2 configured IP address as default gateway to hosts.</li>
<li><span style="text-decoration:underline;">Configuration:</span>
<ul>
<li>‘(config-if)#standby  &lt;group&gt;  priority &lt;&gt;’</li>
<li>‘(config-if)#standby  &lt;group&gt;  timers &lt;hello&gt; &lt;hold&gt;’</li>
<li>‘(config-if)#standby 1 preempt delay { minimum | reload} ‘
<ul>
<li>Minimum &lt;sec&gt; : to force router to preempt after &lt;sec&gt; once the router is ready for active role.</li>
<li>Reload &lt;sec&gt; : to force router to wait for &lt;sec&gt; after it is reloaded.</li>
</ul>
</li>
<li>“show standby” command to view the HSRP status.</li>
</ul>
</li>
</ul>
<p><strong><span style="text-decoration:underline;">VRRP:</span></strong></p>
<ul>
<li>VRRP is standard based defined in RFC-2338. Same concept as HSRP.</li>
<li>Active router is called as <strong>‘master’</strong> and all other routers are in <strong>‘backup’</strong> state.</li>
<li>Priority values (1 to 254) can be assigned to VRRP routers. Default value is 100. Highest: 254</li>
<li>VRRP group numbers: 0 to 255.</li>
<li>Virtual Mac address is = <strong>00: 00: 5e:00:01:xx</strong> where ‘xx’ is VRRP group number.</li>
<li>VRRP sends hello message every <strong>1 second</strong> destined to <strong>224.0.0.18</strong> using <strong>IP protocol: 112</strong></li>
<li>Backup router can learn advertisement interval from master. ‘vrrp &lt;x&gt; timers learn’</li>
<li>Preempt enabled by default.</li>
<li><span style="text-decoration:underline;">Configuration:</span>
<ul>
<li>‘vrrp &lt;group&gt; priority’</li>
<li>‘vrrp &lt;group&gt; ip &lt;add&gt;’</li>
<li>‘vrrp &lt;group&gt; authentication &lt;&gt;’</li>
<li>‘vrrp &lt;group&gt; preempt delay &lt;&gt;’</li>
<li>Show vrrp</li>
</ul>
</li>
</ul>
<p><strong><span style="text-decoration:underline;">GLBP:</span></strong></p>
<ul>
<li>Cisco proprietary protocol that overcomes the limitation of load balancing in VRRP and HSRP.</li>
<li>Multiple routers participate in forwarding packets from host to default gateway address.</li>
<li>When client sends ARP request for default-gateway, GLBP replies with virtual MAC address of selected router in the group.</li>
<li>All clients use same Virtual address but different MAC address.</li>
<li><span style="text-decoration:underline;">Active virtual Gateway: (AVG):</span>
<ul>
<li>One router in the group is selected as AVG by election. Highest Priority or highest interface IP address.</li>
<li>AVG answers all ARP request for default-gateway from clients. Selection of a routers’ virtual MAC depends on load-balancing algorithm in use.</li>
<li>Upto four virtual MAC address (4 routers) can be used in a group at any time. Routers involved in forwarding the traffic is referred as ‘active virtual forwarder’ (AVF).</li>
<li>Other routers than 4 serve as backup AVF routers.</li>
</ul>
</li>
<li>GLBP group numbers can be from 0 to 1023. Priority can be 1 to 255. <strong>Highest: 255 and default:100</strong></li>
<li><strong>Preempt disabled</strong> by default as in HSRP.</li>
<li>AVG sends hello message to all GLBP routers and expects hello from each routers.</li>
<li>Default: hello 3 seconds and holds 10 seconds. Other routers can learn these times from AVG.</li>
<li><span style="text-decoration:underline;">Active virtual forwarder: (AVF)</span>
<ul>
<li>AVG assigns four routers as AVF along with their virtual MAC address.</li>
<li>Mac address will be in the form of <strong>00:07:b4:xx:xx:yy</strong>
<ul>
<li>‘xx:xx’ denotes six zero bits followed by 10-bit GLBP group number.</li>
<li>‘yy’ denotes virtual forwarder number.</li>
</ul>
</li>
<li>All AVF routers exchange hello packets with each other. If AVG fails to receive hello within hold timer, it assumes that AVF as failed and assigns the failed AVF function to another AVF router.  This router act as forwarding router for 2 MAC address (its own+failed routers’ mac)</li>
<li>AVG uses two timers to resolve this condition &#8211; single router handles 2 MAC addresses.
<ul>
<li><strong>Redirect timer</strong>: Time when AVG will stop using the failed routers mac address in ARP reply. Default is 10 minutes</li>
<li><strong>Timeout time</strong>: Time when AVG flushes the old mac address and the failed AVF ID from all GLBP peer. Clients which used old virtual mac address need to refresh its arp to lean new mac address for the default-gateway. Default is 4 Hours.</li>
<li>Can be changed by <strong>‘glbp &lt;group&gt; timers redirect &lt;redirect&gt; &lt;timeout&gt;’</strong></li>
</ul>
</li>
<li>GLBP uses weighting function to determine which routers to become AVF. Each participating router will have 100 as maximum weight. When a specified interface goes down, the weight value is decremented by specified value (default: 10)</li>
<li>GLBP uses threshold to determine when a router can be AVF. If weight &lt; lower threshold, the router should give up its AVF role. When weight&gt; upper threshold, it can resume its  role</li>
<li>Create a track object as assign it to GLBP weighting configuration.
<ul>
<li><strong>‘(config)# track &lt;number&gt; interface &lt;id&gt; {line-protocol | ip-routing}’</strong></li>
<li><strong>‘(config-if)# glbp &lt;group&gt; weighting &lt;max value&gt; lower &lt;x&gt; upper &lt;x&gt;’</strong></li>
<li><strong>‘(config-if)# glbp &lt;group&gt; weighting track &lt;number&gt; decrement &lt;value&gt;’</strong></li>
</ul>
</li>
<li>Higher weight router cannot preempt the current AVF even if it has lower weight.</li>
</ul>
</li>
<li><span style="text-decoration:underline;">Load-balancing:</span>
<ul>
<li>AVG assigns the four virtual MAC address to the ARP request in following manner;
<ul>
<li><strong>Round-robin:</strong> Default method. AVG uses mac addresses in round robin fashion in ARP reply. All AVF is expected to receive fairly equal amount of traffic.</li>
<li><strong>Weighted:</strong> AVG uses a particular router depending on its interface weight function.</li>
<li><strong>Host dependent:</strong> Each client receives the same virtual mac address in ARP reply.</li>
</ul>
</li>
<li><strong>‘(config-if)# glbp &lt;group&gt; load-balancing { round-robin | weighted | host-dependent }’</strong></li>
</ul>
</li>
<li><span style="text-decoration:underline;">Configuration:</span>
<ul>
<li>‘(config-if)#glbp &lt;group&gt; priority &lt;level&gt;’</li>
<li>‘(config-if)#glbp &lt;group&gt; preempt [delay]’</li>
<li>‘(config-if)#glbp &lt;group&gt; timers [msec] &lt;hello&gt; [msec] &lt;hold&gt;’</li>
<li>‘(config-if)#glbp &lt;group&gt; ip &lt;address&gt; [secondary]’</li>
<li>Show glbp [brief]</li>
</ul>
</li>
</ul>
<p><strong><span style="text-decoration:underline;">Hardware redundancy:</span></strong></p>
<ul>
<li>Cat 4500, 6500 can accept two Supervisor modules, one acting as active and other remains in standby state. Standby supervisor boot up and initialize only to certain level depending on mode.</li>
<li>Redundancy modes: <strong>Route Processor Redundancy (RPR);</strong>
<ul>
<li>When primary fails, standby reload every other modules and then initialize supervisor fn.</li>
</ul>
</li>
<li><strong> Route Processor Redundancy plus (RPR+):</strong>
<ul>
<li>Standby initialize L2 and L3 fn without reloading other modules. Port status remains same.</li>
</ul>
</li>
<li><strong>Stateful Switchover (SSO):</strong>
<ul>
<li>Standby is fully booted and initialized. Both startup and running config are synced</li>
</ul>
</li>
<li><strong>Single-router Mode (SRM):</strong> Two route processors are being used buy only one active at a time.</li>
<li><strong>Dual-router Mode (DRM):</strong> Both route processors are active at a time.</li>
<li><span style="text-decoration:underline;">Commands:</span>
<ul>
<li>(config)# redundancy</li>
<li><strong>(config-red)#mode {rpr | rpr-plus | sso}</strong></li>
<li>Show redundancy status</li>
</ul>
</li>
<li><span style="text-decoration:underline;">Supervisor synchronization:</span>
<ul>
<li>By default, the active supervisor synch both startup config and configuration register values with standby supervisor.</li>
<li>(config)# redundancy</li>
<li>(config-red)#main-cpu</li>
<li><strong>(config-r-mc)# auto-sync { startup-config | config-register | bootvar}</strong></li>
<li>To return to default, use <strong>“auto-sync standard”</strong></li>
</ul>
</li>
<li><span style="text-decoration:underline;">Nonstop Forwarding: (NSF)</span>
<ul>
<li>Used along with SOO feature to quickly rebuild the RIB table from nsf-aware neighbor router</li>
<li><strong>“bgp graceful-restart”</strong> under BGP configuration<strong>. “nsf”</strong> under eigrp, ospf and isis config mode.</li>
</ul>
</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ippoint.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ippoint.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ippoint.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ippoint.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ippoint.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ippoint.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ippoint.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ippoint.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ippoint.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ippoint.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ippoint.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ippoint.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ippoint.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ippoint.wordpress.com/315/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=315&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ippoint.wordpress.com/2011/03/18/software-and-hardware-redundancy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccfc62f1f9cd0af1d3dd69400039d24d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">ippoint</media:title>
		</media:content>
	</item>
		<item>
		<title>Hierarchical Network Design</title>
		<link>http://ippoint.wordpress.com/2011/03/17/hierarchical-network-design/</link>
		<comments>http://ippoint.wordpress.com/2011/03/17/hierarchical-network-design/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 22:30:56 +0000</pubDate>
		<dc:creator>ippoint</dc:creator>
				<category><![CDATA[IOS]]></category>
		<category><![CDATA[L2 switch]]></category>
		<category><![CDATA[access layer]]></category>
		<category><![CDATA[collapsed core]]></category>
		<category><![CDATA[core layer]]></category>
		<category><![CDATA[dual core]]></category>
		<category><![CDATA[switch block]]></category>

		<guid isPermaLink="false">http://ippoint.wordpress.com/?p=321</guid>
		<description><![CDATA[Three Layer Model: Access layer: Where end users are connected. For intra-vlan routing. Distribution Layer: where access layer switches are aggregated. For inter-VLAN routing Core Layer: where distribution layer switches are aggregated. Center to all users. Access layer; Low cost per port High port density Scalable uplinks to higher layers. Resiliency through multiple uplinks. User [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=321&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li>Three Layer Model:
<ul>
<li>Access layer: Where end users are connected. For intra-vlan routing.</li>
<li>Distribution Layer: where access layer switches are aggregated. For inter-VLAN routing</li>
<li>Core Layer: where distribution layer switches are aggregated. Center to all users.<span id="more-321"></span></li>
</ul>
</li>
<li><strong>Access layer;</strong>
<ul>
<li>Low cost per port</li>
<li>High port density</li>
<li>Scalable uplinks to higher layers.</li>
<li>Resiliency through multiple uplinks.</li>
<li>User access functions like VLAN, traffic and protocol filter and QOS.</li>
</ul>
</li>
<li><strong>Distribution Layer:</strong>
<ul>
<li>High L3 throughput for packet handling.</li>
<li>Access list, packet filters and Qos features.</li>
<li>Scalable and resilient high-speed links to access and core layers.</li>
<li>Acts as L3 boundary for access VLANs. Broadcast shouldn’t travel across Distribution layer.</li>
</ul>
</li>
<li><strong>Core Layer: </strong>
<ul>
<li>Very high L3 throughput.</li>
<li>Advanced QOS and L3 protocol functions.</li>
<li>Redundancy and resilience for HA.</li>
</ul>
</li>
<li><strong>Switch Block:</strong>
<ul>
<li>Collection of access layer switches together with distribution switches(2).</li>
<li>Sized based on traffic types and behavior, size and number of workgroups.</li>
<li>Need redundancy within switch block.</li>
<li>Broadcast from  a PC should be confine within switch block.</li>
</ul>
</li>
<li><strong>Core block:</strong>
<ul>
<li>An enterprise/campus network backbone.</li>
<li><strong>Collapsed Core:</strong> Distribution and core layer are unified. Router performs both layer functions</li>
<li><strong>Dual Core:</strong> Two core routers and switch blocks are connected to core routers in redundant fashion.</li>
</ul>
</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ippoint.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ippoint.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ippoint.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ippoint.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ippoint.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ippoint.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ippoint.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ippoint.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ippoint.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ippoint.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ippoint.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ippoint.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ippoint.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ippoint.wordpress.com/321/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ippoint.wordpress.com&amp;blog=12592547&amp;post=321&amp;subd=ippoint&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ippoint.wordpress.com/2011/03/17/hierarchical-network-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccfc62f1f9cd0af1d3dd69400039d24d?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">ippoint</media:title>
		</media:content>
	</item>
	</channel>
</rss>
