<?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/"
	>

<channel>
	<title>Fnode Online</title>
	<atom:link href="http://www.fnode.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fnode.com</link>
	<description>A Network Systems &#38; Technology Blog</description>
	<lastBuildDate>Fri, 01 Jan 2010 19:57:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OSPF Loopback Interface</title>
		<link>http://www.fnode.com/2009/12/ospf-loopback-interface/</link>
		<comments>http://www.fnode.com/2009/12/ospf-loopback-interface/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 14:17:21 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[OSPF Loopback]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=547</guid>
		<description><![CDATA[OSPF Loopback interfaces are treated as a stub host and will only have a 32 bit host route on the other devices no matter how the subnet mask is entered under the OSPF network statement.
We will explore how we can disable this default behaviour using a few methods.

As you can see, R4 is configured with [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>OSPF Loopback interfaces are treated as a stub host and will only have a 32 bit host route on the other devices no matter how the subnet mask is entered under the OSPF network statement.</p>
<p>We will explore how we can disable this default behaviour using a few methods.</p>
<p style="text-align: center;"><img class="size-full wp-image-548 aligncenter" title="ospf-loop" src="http://www.fnode.com/wp-content/uploads/ospf-loop.png" alt="ospf-loop" width="518" height="118" /></p>
<p>As you can see, R4 is configured with IP address 192.168.1.4 and R5 with 192.168.1.5.</p>
<p>We have loopback interfaces added with /24 subnet masks on R4 and R5</p>
<pre>R4#sh run int loop0
Building configuration...
Current configuration : 61 bytes
!
interface Loopback0
ip address 4.4.4.4 255.255.255.0
end
R4#

R5#sh run int loop 0
Building configuration...
Current configuration : 61 bytes
!
interface Loopback0
ip address 5.5.5.5 255.255.255.0
end
R5#</pre>
<p>We are running basic OSPF Configs as follows&#8230;</p>
<p><span id="more-547"></span></p>
<pre>R4#sh run | se router ospf 1
router ospf 1
router-id 4.4.4.4
log-adjacency-changes
network 4.4.4.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
R4#

R5#sh run | se router ospf 1
router ospf 1
router-id 5.5.5.5
log-adjacency-changes
network 5.5.5.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
R5#
</pre>
<p>This is what we are seeing on R4 and R5 and we expected this&#8230;</p>
<pre>R5#sh ip ro ospf
4.0.0.0/32 is subnetted, 1 subnets
O       4.4.4.4 [110/11] via 192.168.1.4, 00:12:27, Ethernet0/0
R5#

R4#sh ip ro ospf
5.0.0.0/32 is subnetted, 1 subnets
O       5.5.5.5 [110/11] via 192.168.1.5, 00:12:43, Ethernet0/0
R4#</pre>
<p>Now we will try the first method, this is to set the OSPF Network type to <strong>point-to-point</strong> under the interface configuration mode.</p>
<pre>R4#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R4(config)#int loop 0
R4(config-if)#ip ospf network point-to-point
R4(config-if)#

R5#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R5(config)#int loop0
R5(config-if)#ip ospf network point-to-point
R5(config-if)#</pre>
<p>As you can see this works, and now we are seeing the whole /24 Range&#8230;</p>
<pre>R4#sh ip ro ospf
5.0.0.0/24 is subnetted, 1 subnets
O       5.5.5.0 [110/11] via 192.168.1.5, 00:00:04, Ethernet0/0
R4#

R5#sh ip ro ospf
4.0.0.0/24 is subnetted, 1 subnets
O       4.4.4.0 [110/11] via 192.168.1.4, 00:00:18, Ethernet0/0
R5#</pre>
<p>Second option we got is to redistribute the connected network with the with the <strong>redistribute connected subnets</strong> under the Router OSPF configuration mode.</p>
<p>When it comes to redistribution, try not to go wild and it is always a good idea to create route-map to point out what you want redistributed.</p>
<pre>R4#sh ip ro ospf
5.0.0.0/24 is subnetted, 1 subnets
O E2    5.5.5.0 [110/20] via 192.168.1.5, 00:00:00, Ethernet0/0
R4#

R5#sh ip ro ospf
4.0.0.0/24 is subnetted, 1 subnets
O E2    4.4.4.0 [110/20] via 192.168.1.4, 00:00:15, Ethernet0/0
R5#
</pre>
<p>The third option we have is to use the Area Range command. To accomplish this, we will need to add a few more Loopback interfaces on R4 then we will use the <strong>area x range</strong> command to summarise it.</p>
<pre>R4#sh ip int brie | i up
Ethernet0/0    192.168.1.4     YES manual up     up
Loopback0      4.4.4.4         YES manual up     up
Loopback10     10.1.1.1        YES manual up     up
Loopback11     11.1.1.1        YES manual up     up
Loopback12     12.1.1.1        YES manual up     up
R4#</pre>
<p>When we add the loopback interfaces into OSPF, it is still showing it as a /32 Host route&#8230;</p>
<pre>R5#sh ip ro ospf
10.0.0.0/32 is subnetted, 1 subnets
O IA    10.1.1.1 [110/11] via 192.168.1.4, 00:00:22, Ethernet0/0
11.0.0.0/32 is subnetted, 1 subnets
O IA    11.1.1.1 [110/11] via 192.168.1.4, 00:00:12, Ethernet0/0
12.0.0.0/32 is subnetted, 1 subnets
O IA    12.1.1.1 [110/11] via 192.168.1.4, 00:00:12, Ethernet0/0
R5#</pre>
<p>Now, we will use the <strong>Area 1 Range</strong> command to summarise it on R4. Once it is done, we can now see the end result.</p>
<p>Note: The above Loopback networks have been added into Area 1 under the Router OFPF configuration.</p>
<pre>R5#sh ip ro ospf
O IA 8.0.0.0/5 [110/11] via 192.168.1.4, 00:00:10, Ethernet0/0
R5#
</pre>
<p>These are the three method I know of when it comes to disabling the /32 host route on OSPF Loopback Networks&#8230; <img src='http://www.fnode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/12/ospf-loopback-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert IPv4 into IPv6</title>
		<link>http://www.fnode.com/2009/11/convert-ipv4-into-ipv6/</link>
		<comments>http://www.fnode.com/2009/11/convert-ipv4-into-ipv6/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 00:23:48 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[IPv6]]></category>
		<category><![CDATA[ipv6 to ipv6]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=535</guid>
		<description><![CDATA[I was going through 6to4 tunnel configs and thought I’d post some info on converting IPv4 address into IPv6 Address. This is pretty straight forward and its obviously involves HEX conversion.
Here, I will convert the address 192.168.25.234
First we divide each octet by 16 and write down the remainder, primary school maths!  
192 ÷ 16 [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I was going through 6to4 tunnel configs and thought I’d post some info on converting IPv4 address into IPv6 Address. This is pretty straight forward and its obviously involves HEX conversion.</p>
<p>Here, I will convert the address <strong>192.168.25.234</strong></p>
<p>First we divide each octet by 16 and write down the remainder, primary school maths! <img src='http://www.fnode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>192 ÷ 16 = 12 remainder 0<br />
168 ÷ 16 = 10 remainder 8<br />
25 ÷ 16  =   1  remainder 9<br />
234 ÷ 16 = 14 remainder 10</p>
<p>We also know that HEX has the following Values</p>
<p>A = 10<br />
B = 11<br />
C = 12<br />
D = 13<br />
E = 14<br />
F = 15</p>
<p>So we can write 192.168.25.234 into HEX like so&#8230; <strong>C0A8:19EA</strong></p>
<p>Now we will change the HEX Address C0A8:19EA into regular IPv4</p>
<p>C0 = (12 x 16) + 0 = 192<br />
A8 = (10 x 16) + 8 = 168<br />
19 = (1 x 16) + 9 = 25<br />
EA = (14 x 16) + 10 = 234</p>
<p>QED <img src='http://www.fnode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/11/convert-ipv4-into-ipv6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>TCP Window Calculation</title>
		<link>http://www.fnode.com/2009/10/tcp-window-calculation/</link>
		<comments>http://www.fnode.com/2009/10/tcp-window-calculation/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 08:30:01 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[TCP Window]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=533</guid>
		<description><![CDATA[I was going through some TCP windowing over a high speed WAN link, and thought it might be worth to post some info regarding this.
We do face a typical problem of having slow speed file transfer even if the dedicated pipe is capable of supporting it.
There are three factors which affects this&#8230;

TCP Window Size.
Round trip [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I was going through some TCP windowing over a high speed WAN link, and thought it might be worth to post some info regarding this.</p>
<p>We do face a typical problem of having slow speed file transfer even if the dedicated pipe is capable of supporting it.</p>
<p>There are three factors which affects this&#8230;</p>
<ol>
<li>TCP Window Size.</li>
<li>Round trip latency of the circuit.</li>
<li>Bandwidth of the circuit.</li>
</ol>
<p>Maximum throughput you can get from a line with 10ms latency and a TCP window of 32KB can be calculated with&#8230;</p>
<p>32KB &#8211;&gt; 32 x 1024 x 8 = 262144 Bits</p>
<p>262144 ÷ 0.01 = 26214400 bps = 26.2144 Mbps</p>
<p>Let’s say we have an OC-3 line, which is at 155 Mbps and a round trip latency of 10ms, and we need to calculate the TCP window size to maximize the throughput&#8230;</p>
<p>155.52 x 10<sup>6</sup> = 155520000 bps</p>
<p>TCP_WINDOW = 155520000 x 0.01 = 1555200 Bits = 194400 Bytes = <strong>189.84375</strong> KB</p>
<p>Hope I got the calculation right <img src='http://www.fnode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/10/tcp-window-calculation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to configure PPP Multilink</title>
		<link>http://www.fnode.com/2009/09/how-to-configure-ppp-multilink/</link>
		<comments>http://www.fnode.com/2009/09/how-to-configure-ppp-multilink/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 23:19:39 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Mu1]]></category>
		<category><![CDATA[multilink]]></category>
		<category><![CDATA[ppp]]></category>
		<category><![CDATA[ppp multilink]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=513</guid>
		<description><![CDATA[Multilink is a way of bundling more than one PPP WAN links and bundle them together into one logical interface. This is one of the method you can implement when you have a primary and secondary links in place and create a logical conduit where both links are present.
This method can be used to load [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Multilink is a way of bundling more than one PPP WAN links and bundle them together into one logical interface. This is one of the method you can implement when you have a primary and secondary links in place and create a logical conduit where both links are present.</p>
<p>This method can be used to load balance data across the links and at the same time it will support redundancy when one one link fails.</p>
<p>I have tested this configuration on 2 of my 2500 Routers and I haven’t tested these on more recent IOS so some commands may vary. I will be checking them on a pair of 3845s/2691s on a later date and will add my findings to this post.</p>
<p>As you can see the Diagram, I am using R4 and R5 which are connected via Serial 0 and Serial 1 respectivly.</p>
<p style="text-align: center;"><img class="size-full wp-image-514 aligncenter" title="multilink" src="http://www.fnode.com/wp-content/uploads/multilink.png" alt="multilink" width="552" height="118" /></p>
<p><strong>R4 Configuration</strong></p>
<pre>Multilink Interface
interface Multilink1
ip address 172.16.1.1 255.255.255.252
ppp multilink
ppp multilink links maximum 2
ppp multilink links minimum 1
ppp multilink group 1</pre>
<p><strong>Serial 0</strong></p>
<pre>interface Serial0
no ip address
encapsulation ppp
clock rate 64000
ppp multilink
ppp multilink group 1</pre>
<p><strong>Serial 1</strong></p>
<pre>interface Serial1
no ip address
encapsulation ppp
clock rate 64000
ppp multilink
ppp multilink group 1
</pre>
<p>As you can see, since this is a lab scenario, I have set the <strong>clock rate</strong> on the link. If you are setting this up on a WAN link, you don’t need to do this as the circuit provider would be setting this up for you.</p>
<p><span id="more-513"></span></p>
<p>Also another thing to watch out for is to <strong>create the Multilink interface first</strong> then move onto configuring the Serial interfaces. If you do the other way around, it will not allow you to set the <strong>multilink group</strong> as it is not present on the router (See the error message below).</p>
<pre>R4(config-if)#ppp multi gr 1
% Cannot set multilink group. Interface Multilink1 does not exist</pre>
<p>That is all to watch out for and you can see my R5 configuration below&#8230;</p>
<p><strong>R5 Configuration</strong></p>
<p><strong>Multilink</strong></p>
<pre>interface Multilink1
ip address 172.16.1.2 255.255.255.252
ppp multilink
ppp multilink links maximum 2
ppp multilink links minimum 1
ppp multilink group 1
</pre>
<p><strong>Serial 0</strong></p>
<pre>interface Serial0
no ip address
encapsulation ppp
ppp multilink
ppp multilink group 1</pre>
<p><strong>Serial 1</strong></p>
<pre>interface Serial1
no ip address
encapsulation ppp
ppp multilink
ppp multilink group 1</pre>
<p>Here is how it should look&#8230;</p>
<pre>R4#sh ip int br | i up
Multilink1    172.16.1.1    YES   manual  up  up
Serial0       unassigned    YES   manual  up  up
Serial1       unassigned    YES   manual  up  up</pre>
<pre>R5#sh ip int br | i up
Multilink1    172.16.1.2    YES   manual  up  up
Serial0       unassigned    YES   manual  up  up
Serial1       unassigned    YES   manual  up  up</pre>
<pre>R4#ping 172.16.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/44/52 ms
R4#</pre>
<p>Now I will bring Serial 0 interface down and test the Multilink&#8230;</p>
<pre>R4(config)#int se0
R4(config-if)#shut
R4(config-if)#</pre>
<pre>*Mar  1 01:19:41.123: %LINK-5-CHANGED: Interface Serial0, changed state to administratively down
*Mar  1 01:19:42.123: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down</pre>
<pre>R4(config-if)#do sh ip int br
Interface     IP-Address   OK?    Method  Status              Protocol
Ethernet0     unassigned   YES    NVRAM   administratively    down  down
Multilink1    172.16.1.1   YES    manual  up                  up
Serial0       unassigned   YES    manual  administratively    down  down
Serial1       unassigned   YES    manual  up                  up</pre>
<pre>R4(config-if)#do ping 172.16.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/36 ms
R4(config-if)#</pre>
<p>As you can see, it works even when one interface is down&#8230; <img src='http://www.fnode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/09/how-to-configure-ppp-multilink/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Configure Frame-Relay</title>
		<link>http://www.fnode.com/2009/09/frame-relay-config/</link>
		<comments>http://www.fnode.com/2009/09/frame-relay-config/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 23:48:42 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[frame-relay]]></category>
		<category><![CDATA[framerelay]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=493</guid>
		<description><![CDATA[Frame-Relay is one of the core concept of networking and nowadays it is one of the under appreciated part on modern networking.
I am just going to go over how to configure it using 4 Routers and one will act as a Frame-Relay cloud.
Before I go ahead and explain the configuration, You can see the below [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Frame-Relay is one of the core concept of networking and nowadays it is one of the under appreciated part on modern networking.</p>
<p>I am just going to go over how to configure it using 4 Routers and one will act as a Frame-Relay cloud.</p>
<p>Before I go ahead and explain the configuration, You can see the below diagram which represents the physical topology.</p>
<p style="text-align: center;"><img class="size-full wp-image-495 aligncenter" title="FRS1" src="http://www.fnode.com/wp-content/uploads/FRS1.png" alt="FRS1" width="511" height="544" /></p>
<p>As you can see, FRS is connected via&#8230;</p>
<p>Serial 1/1 to R1 Serial 1/0<br />
Serial 1/2 to R2 Serial 1/0<br />
Serial 1/3 to R3 Serial 1/0</p>
<p>Now we have got the physical topology clear, we will move onto Frame-Relay configuration and the DLCI assignment.</p>
<p style="text-align: center;"><img class="size-full wp-image-496 aligncenter" title="FRS2" src="http://www.fnode.com/wp-content/uploads/FRS2.png" alt="FRS2" width="511" height="534" /></p>
<p>As you can see the DLCI configuration&#8230;</p>
<p>On R1 : DLCI 122 is connected to R2 and DLCI 123 is connected to R3<br />
On R2 : DLCI 221 is connected to R1<br />
On R3: DLCI 321 is connected to R3.</p>
<p>If you are configuring the DLCI then I would suggest you follow this method of numbering, Because from the DLCI Number, I can simply distinguish where the DLCI is connecting to&#8230;</p>
<p><span id="more-493"></span></p>
<p>For Example, we will take DLCI 122 (One Two Two ) I remember it as; From Router <strong>One</strong> 2 <strong>Two</strong> and the same goes for DLCI 321 (Three Two One) Router<strong> Three</strong> 2 <strong>One</strong>.</p>
<p>Here are the configuration on the <strong>FRS</strong> (Please see the first diagram for interface info&#8230;)</p>
<p><strong>Serial 1/1</strong></p>
<pre>interface Serial1/1
no ip address
encapsulation frame-relay
logging event subif-link-status
logging event dlci-status-change
clock rate 64000
no frame-relay inverse-arp
frame-relay intf-type dce
frame-relay route 122 interface Serial1/2 221
frame-relay route 123 interface Serial1/3 321</pre>
<p><strong>Serial 1/2</strong></p>
<pre>interface Serial1/2
no ip address
encapsulation frame-relay
logging event subif-link-status
logging event dlci-status-change
clock rate 64000
no frame-relay inverse-arp
frame-relay intf-type dce
frame-relay route 221 interface Serial1/1 122</pre>
<p><strong>Serial 1/3</strong></p>
<pre>interface Serial1/3
no ip address
encapsulation frame-relay
logging event subif-link-status
logging event dlci-status-change
clock rate 64000
no frame-relay inverse-arp
frame-relay intf-type dce
frame-relay route 321 interface Serial1/1 123</pre>
<p>As you can see, if you are configuring Frame-Relay you should understand what every command does and I will be writing a more detailed post on Frame-Relay switching where all of these commands will be covered.</p>
<p>Now the FRS is set, we will go ahead and configure each interface of the routers R1, R2 and R3.</p>
<p><strong>R1</strong></p>
<pre>interface Serial1/0
ip address 172.16.10.1 255.255.255.0
encapsulation frame-relay
logging event subif-link-status
logging event dlci-status-change
no fair-queue
frame-relay map ip 172.16.10.2 122 broadcast
frame-relay map ip 172.16.10.3 123 broadcast
no frame-relay inverse-arp</pre>
<p><strong>R2</strong></p>
<pre>interface Serial1/0
ip address 172.16.10.2 255.255.255.0
encapsulation frame-relay
logging event subif-link-status
logging event dlci-status-change
no fair-queue
frame-relay map ip 172.16.10.1 221 broadcast
frame-relay map ip 172.16.10.3 221 broadcast
no frame-relay inverse-arp</pre>
<p><strong>R3</strong></p>
<pre>interface Serial1/0
ip address 172.16.10.3 255.255.255.0
encapsulation frame-relay
logging event subif-link-status
logging event dlci-status-change
no fair-queue
frame-relay map ip 172.16.10.1 321 broadcast
frame-relay map ip 172.16.10.2 321 broadcast
no frame-relay inverse-arp</pre>
<p>The most important commands are &#8220;Frame-Relay Map&#8221; on the Routers and the &#8220;Frame-Relay Route&#8221; command on the Frame switching router.</p>
<p>As you can see, I have the <strong>Broadcast</strong> option at the end of the &#8220;frame-relay map&#8221; command; It is there to allow routing packets such as RIP to be passed through the Frame network. Without this option, it will not allow IP traffic to be switch through frame network.</p>
<p>If you don&#8217;t get the DLCI mapping correct, you will not get the circuit to come &#8220;active&#8221;</p>
<p>You can check the Frame route by issuing the &#8220;show frame-relay route&#8221; command on FRS.</p>
<pre>
FRS#sh fr ro
Input Intf   Input Dlci   Output Intf   Output Dlci   Status
Serial1/1    122          Serial1/2     221           active
Serial1/1    123          Serial1/3     321           active
Serial1/2    221          Serial1/1     122           active
Serial1/3    321          Serial1/1     123           active
FRS#</pre>
<p>And &#8220;show frame-relay map&#8221; on the Routers (R1, R2, R3)</p>
<pre>R1#sh frame map
Serial1/0 (up): ip 172.16.10.2 dlci 122(0x7A,0x1CA0), static,
broadcast,
CISCO, status defined, active
Serial1/0 (up): ip 172.16.10.3 dlci 123(0x7B,0x1CB0), static,
broadcast,
CISCO, status defined, active

R2#sh frame map
Serial1/0 (up): ip 172.16.10.1 dlci 221(0xDD,0x34D0), static,
broadcast,
CISCO, status defined, active
Serial1/0 (up): ip 172.16.10.3 dlci 221(0xDD,0x34D0), static,
broadcast,
CISCO, status defined, active

R3#sh frame map
Serial1/0 (up): ip 172.16.10.1 dlci 321(0x141,0x5010), static,
broadcast,
CISCO, status defined, active
Serial1/0 (up): ip 172.16.10.2 dlci 321(0x141,0x5010), static,
broadcast,
CISCO, status defined, active
</pre>
<p>If it says &#8220;inactive&#8221; or &#8220;deleted&#8221;, I would first check the DLCI assignment and encapsulation and so forth&#8230;</p>
<p>And it is always nice to see the following message&#8230;</p>
<pre>*Mar  1 00:00:21.005: %FR-5-DLCICHANGE: Interface Serial1/1 - DLCI 122 state changed to ACTIVE
*Mar  1 00:00:21.005: %FR-5-DLCICHANGE: Interface Serial1/1 - DLCI 123 state changed to ACTIVE
*Mar  1 00:00:21.098: %FR-5-DLCICHANGE: Interface Serial1/2 - DLCI 221 state changed to ACTIVE
*Mar  1 00:00:21.146: %FR-5-DLCICHANGE: Interface Serial1/3 - DLCI 321 state changed to ACTIVE</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/09/frame-relay-config/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to enable SSH key Authentication: SSH login without a password!</title>
		<link>http://www.fnode.com/2009/09/how-to-enable-ssh-key-authentication-ssh-login-without-a-password/</link>
		<comments>http://www.fnode.com/2009/09/how-to-enable-ssh-key-authentication-ssh-login-without-a-password/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 11:54:43 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=478</guid>
		<description><![CDATA[If you want to jump between servers without any password authentication but you still need security here is what you have to do.
There are two ways of achieving this:
On Debian/Ubuntu you can just type:

  $ cd $HOME
~$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key:

Press Enter each question and you [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>If you want to jump between servers without any password authentication but you still need security here is what you have to do.<br />
There are two ways of achieving this:</p>
<p>On Debian/Ubuntu you can just type:<br />
<code><br />
  $ cd $HOME<br />
~$ ssh-keygen<br />
Generating public/private rsa key pair.<br />
Enter file in which to save the key:<br />
</code><br />
Press Enter each question and you will have a pair of keys ready to use.<br />
You will be asked for a passphrase but if you do not want to insert anything just leave it blank.<br />
This procedure will create one private and one public key.<br />
<code>$ ls .ssh/<br />
id_rsa  id_rsa.pub  known_hosts</code><br />
The private key must be secured on your box whereas the public key can be copied across<br />
<code>~$ ssh-copy-id -i .ssh/id_rsa.pub 192.168.1.30</code><br />
At this time you will be asked for the password but once the key has been copied you will be able to ssh just perfectly.</p>
<p><span id="more-478"></span></p>
<p>As additional security you could lock the account to prevent someone without key to ssh into the box. In order to do that<br />
<code><br />
me@mybox:~$ ssh 192.168.1.30<br />
me@server:~$ su -<br />
password:<br />
root@server:~# usermod -L me<br />
</code><br />
usermod -L will lock the account &#8220;me&#8221; preventing anyone using password credentials for that account. You will only be able to access with you trusted ssh-key. If you don&#8217;t want anymore the account locked just type:<br />
<code>root@server:~# usermod -U me</code><br />
-U flag will unlock the account</p>
<p>ON SOME OTHER DISTROS:<br />
the &#8220;ssh-copy-id&#8221; utility doesn&#8217;t exist so you will have to copy it manually.<br />
If you can copy and paste then<br />
<code>~$ cat .ssh/id_rsa.pub<br />
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAv4k0ChLXCfpF+o/4HcqAqYEivRSHHYsTlXfT4I0jmOAI+MKjVTB/CtKqq4h7KMyXrUUo7vtceac4i2FRSm6PdsWksJXsYxkOj+ZXXD2fOnJIDKfIr41URcZH4qmztYO+/9YYcQudPzNlt9tLx5jrkhI7sLy56OmKRwfrxq+UY7ebt+j7y5DmevJP0u7bzREPUA/rcVoPxH0/u015O2BcaJmNoxR1pNfMC3Oefn1eAkodo6fOa3vHHo7WhSpDL/42xsBWPnOAAEDM9tmOUyCJDc8l4Mzm+TindqY2yL2GPspabaEAV3rfuF9O4Ywe+tVIPc2/YXo9XvQxyXZqHxtcw==== me@mybox<br />
</code><br />
and paste the line into the remote server&#8217;s .ssh/authorized_keys file. REMEMBER that it&#8217;s just one line so if during copy and paste you get some new line characters that key won&#8217;t work.</p>
<p>If you can&#8217;t copy and paste and want to have the confidence the key has been correctly copied just scp the id_rsa.pub to the server<br />
<code><br />
me@mybox:~$ scp .ssh/id_rsa.pub 192.168.1.30:/home/me/<br />
me@server:~$ ssh 192.168.1.30<br />
me@server:~$ cat id_rsa.pub >> .ssh/authorized_keys<br />
</code></p>
<p>For more info<br />
<code>man usermod<br />
man ssh-keygen</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/09/how-to-enable-ssh-key-authentication-ssh-login-without-a-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick tip: change default text editor on Linux shell</title>
		<link>http://www.fnode.com/2009/09/quick-tip-change-default-text-editor-on-linux-shell/</link>
		<comments>http://www.fnode.com/2009/09/quick-tip-change-default-text-editor-on-linux-shell/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 12:52:50 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=477</guid>
		<description><![CDATA[Doing visudo you get nano instead of your favorite text editor?
Mine is vim therefore I issue:
DEBIAN/UBUNTU way

# update-alternatives --config editor
There are 4 alternatives which provide `editor'.
  Selection    Alternative
-----------------------------------------------
          1    /usr/bin/vim.tiny
          [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Doing visudo you get nano instead of your favorite text editor?<br />
Mine is vim therefore I issue:</p>
<p><strong>DEBIAN/UBUNTU way</strong><br />
<code><br />
# update-alternatives --config editor<br />
There are 4 alternatives which provide `editor'.<br />
  Selection    Alternative<br />
-----------------------------------------------<br />
          1    /usr/bin/vim.tiny<br />
          2    /bin/ed<br />
*+        3    /bin/nano<br />
          4    /usr/bin/vim.basic<br />
Press enter to keep the default[*], or type selection number:<br />
</code><br />
Selecting 4 I&#8217;m ready to use my full syntax colors when I edit any file.</p>
<p><strong>OTHER DISTROS</strong><br />
Edit your .bashrc file and add the following:<br />
<code>EDITOR=vim<br />
export EDITOR</code><br />
Next login you will have your VIM working.<br />
If you want to have it immediately and only for this session just type<br />
<code># export EDITOR=vim</code><br />
and press enter.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/09/quick-tip-change-default-text-editor-on-linux-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Debian from USB drive</title>
		<link>http://www.fnode.com/2009/08/how-to-install-debian-from-usb-drive/</link>
		<comments>http://www.fnode.com/2009/08/how-to-install-debian-from-usb-drive/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 13:13:19 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=472</guid>
		<description><![CDATA[I&#8217;ve come across multiple ways of doing it but so far the best way is the following (I assume you are on i386 platform and you have access to the net):
1. Download boot.img.gz from Debian website
2. Download the net-install image choosing i386.
3. Plug your USB drive into a Linux PC, open the shell and type

$ [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I&#8217;ve come across multiple ways of doing it but so far the best way is the following (I assume you are on i386 platform and you have access to the net):<br />
1. Download <a href="ftp://ftp.debian.nl/debian/dists/stable/main/installer-i386/current/images/hd-media/boot.img.gz">boot.img.gz</a> from Debian website<br />
2. Download the <a href="http://www.debian.org/distrib/netinst#smallcd" target="_blank">net-install</a> image choosing i386.<br />
3. Plug your USB drive into a Linux PC, open the shell and type<br />
<code><br />
$ dmesg<br />
</code><br />
Last few lines should be like the following:<br />
<code><br />
 sd 7:0:0:0: [sdb] Attached SCSI removable disk<br />
 sd 8:0:0:0: [sdb] 4030464 512-byte logical blocks: (2.06 GB/1.92 GiB)<br />
 sd 8:0:0:0: [sdb] Write Protect is off<br />
</code><br />
Now we know it has been mapped as sdb</p>
<p>4. Use zcat to load the boot.img.gz onto your USB drive<br />
<code><br />
# zcat boot.img.gz > /dev/sdb<br />
</code><br />
CAUTION!!! this will destroy the entire data on the USB drive, make sure you have done the backup.<br />
If you get an error  ensure the following:<br />
- You are root (don&#8217;t use sudo)<br />
- The USB drive it&#8217;s not mounted, if it is umount it before issuing the above command.</p>
<p>5. Now mount the USB drive and copy the net-inst.iso image on it.</p>
<p>All done! Now plug it into the box you want to setup and enjoy the old fashion Debian installer <img src='http://www.fnode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/08/how-to-install-debian-from-usb-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change the file timestamp on Linux</title>
		<link>http://www.fnode.com/2009/08/how-to-change-the-file-timestamp-in-a-linux-system/</link>
		<comments>http://www.fnode.com/2009/08/how-to-change-the-file-timestamp-in-a-linux-system/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 19:09:02 +0000</pubDate>
		<dc:creator>Luca</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=464</guid>
		<description><![CDATA[This tip might comes handy when you do a system check and you want to make sure you don&#8217;t check the same file twice.
Let&#8217;s pretend that our &#8220;file1&#8243; is a conf file that needs review. As you can see the output of the command issued below shows that the file was last edited in June.
Today [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This tip might comes handy when you do a system check and you want to make sure you don&#8217;t check the same file twice.</p>
<p>Let&#8217;s pretend that our &#8220;file1&#8243; is a conf file that needs review. As you can see the output of the command issued below shows that the file was last edited in June.<br />
Today I want to check the file without editing it and make sure next time I won&#8217;t check it again:<br />
<code><br />
$ ls -l<br />
total 0<br />
-rw-r--r-- 1 luca luca 290 2009-06-29 16:33 file1<br />
</code></p>
<p><a href="http://www.manpagez.com/man/1/touch/" target="_blank">Touch</a> is an excellent tool in this case:<br />
<code><br />
$ touch file1<br />
$ ls -l<br />
total 0<br />
-rw-r--r-- 1 luca luca 0 2009-08-29 19:43 file1<br />
</code><br />
The Modification Time has changed and so has the access time.</p>
<p>If you want to change just the modification time leaving the access time untouched try with the -m option<br />
<code><br />
$ touch -m file1<br />
$ ls -l<br />
total 0<br />
-rw-r--r-- 1 luca luca 0 2009-08-29 19:46 file1<br />
$ stat file1<br />
[..]<br />
Access: 2009-08-29 19:43:45.000000000 +0100<br />
Modify: 2009-08-29 19:46:15.000000000 +0100<br />
Change: 2009-08-29 19:46:15.000000000 +0100<br />
</code><br />
And -a is just for the Access Time.</p>
<p>Another interesting option is -t. It lets you set the time and the date with whatever you like. This is often used to do fishy things <img src='http://www.fnode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<code><br />
$ touch -t 200701012301 file1<br />
$ stat file1<br />
[..]<br />
Access: 2007-01-01 23:01:00.000000000 +0000<br />
Modify: 2007-01-01 23:01:00.000000000 +0000<br />
Change: 2009-08-29 19:52:26.000000000 +0100<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/08/how-to-change-the-file-timestamp-in-a-linux-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IP helper-address Explained</title>
		<link>http://www.fnode.com/2009/08/ip-helper-address-explained/</link>
		<comments>http://www.fnode.com/2009/08/ip-helper-address-explained/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 14:58:35 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[forward-protocol]]></category>
		<category><![CDATA[helper-address]]></category>

		<guid isPermaLink="false">http://www.fnode.com/?p=441</guid>
		<description><![CDATA[All broadcasts messages are dropped by the router when it receives on an interface. This specific command is enables the router to convert the broadcast messages distended for a specific destination into unicast. This interface level command needs to be applied on the interface which the broadcast receives from.
R1(config-if)#ip helper-address 10.10.10.10
Also there are other options [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>All broadcasts messages are dropped by the router when it receives on an interface. This specific command is enables the router to convert the broadcast messages distended for a specific destination into unicast. This interface level command needs to be applied on the interface which the broadcast receives from.</p>
<p><code>R1(config-if)#ip helper-address 10.10.10.10</code></p>
<p>Also there are other options where you point the address to a vrf etc&#8230;</p>
<p>The following broadcasts are forwarded by default&#8230;</p>
<p>TIME &#8211; Port 37<br />
TACACS &#8211; Port 49<br />
DNS &#8211; Port 53<br />
BOOTP/DHCP Server &#8211; Port 67<br />
BOOTP/DHCP Client &#8211; Port 68<br />
TFTP &#8211; Port 69<br />
NetBIOS Name Service &#8211; Port 137<br />
NetBios Datagram Service &#8211; Port 138</p>
<p>Other protocols can be forwarded by using the following Global config commanding&#8230;</p>
<p><code>R1(config)#ip forward-protocol udp ?</code></p>
<p>Use the ? to see the supported protocols. You may use the following command to remove a specific protocol being forwarded&#8230;</p>
<p><code>R1(config)#no ip forward-protocol udp ?</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2009/08/ip-helper-address-explained/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
