<?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>pete.reluctantgreenie.com</title>
	<atom:link href="http://pete.reluctantgreenie.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://pete.reluctantgreenie.com/blog</link>
	<description>Ramblings about network, environmental issues and anything else that comes to mind</description>
	<lastBuildDate>Sun, 22 Jan 2012 21:10:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Selective export of routes in an MPLS VRF</title>
		<link>http://pete.reluctantgreenie.com/blog/2012/01/22/selective-export-of-routes-in-an-mpls-vrf/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=selective-export-of-routes-in-an-mpls-vrf</link>
		<comments>http://pete.reluctantgreenie.com/blog/2012/01/22/selective-export-of-routes-in-an-mpls-vrf/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 21:10:19 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[MPLS]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://pete.reluctantgreenie.com/blog/?p=455</guid>
		<description><![CDATA[I need to be able to export just the public address from the route table inside a VRF, without impacting the existing route imports and exports
The existing VRF configuration is 

ip vrf blah
 rd 64512:12345
 route-target export 64512:1
 route-target import 64512:1

In this configuration all routes will be exported to all the other VRF&#8217;s that import [...]]]></description>
			<content:encoded><![CDATA[<div class="plus-one-wrap"><g:plusone size="small" count="false" href="http://pete.reluctantgreenie.com/blog/2012/01/22/selective-export-of-routes-in-an-mpls-vrf/"></g:plusone></div><p>I need to be able to export just the public address from the route table inside a VRF, without impacting the existing route imports and exports</p>
<p>The existing VRF configuration is </p>
<pre>
ip vrf blah
 rd 64512:12345
 route-target export 64512:1
 route-target import 64512:1
</pre>
<p>In this configuration all routes will be exported to all the other VRF&#8217;s that import 64512:1</p>
<p>The VRF has RFC1918 address space in it, but it also has some public IP address space that I need to be able to export to other VRF&#8217;s on the network.</p>
<p>After a bit of looking around, it appears the way to do this is to use the <strong>export map</strong> function, but there are a couple of catches.  Firstly, you have to remove the other export statements, and you need bundle a number of match/set route maps together.</p>
<p>First create a couple of access lists</p>
<pre>
ip access-list standard rfc1918-address-space
 permit 10.0.0.0 0.255.255.255
ip access-list standard public-address-space
 permit 15.3.34.0 0.0.0.255
</pre>
<p>Now we need to create a route-map to set the exports based on the access lists.</p>
<pre>
route-map vrf-export-map permit 10
 match ip address rfc1918-address-space
 set extcommunity rt  64512:1
route-map vrf-export-map permit 20
 match ip address public-address-space
  set extcommunity rt 64512:1 64512:1001
</pre>
<p>The sequence 10 map, matches the rfc1918 address and adds an export of 64512:1 ( which is the existing export ).  The sequence 20 map matches the public address space and adds 64512:1, and then also adds 64512:1001.</p>
<p>I think there is also an <strong> additive </strong> option &#8211; but I have not had time to look at it ( if I understand it correctly it address additional exports onto the current list of exports )</p>
<p>Now we just need to modify the VRF so that we pick up the route map.</p>
<pre>
ip vrf blah
 rd 64512:12345
 export map vrf-export-map
 route-target import 64512:1
</pre>
<p>You can now import the address space into multiple different VRF&#8217;s</p>
<p>This config will get all the address space</p>
<pre>
ip vrf blah2
 rd 64512:23456
 route-target import 64512:1
</pre>
<p>This config will just get the public address space</p>
<pre>
ip vrf blah3
 rd 64512:34567
 route-target import 64512:1001
</pre>
<p>Cheers<br />
Pete</p>
]]></content:encoded>
			<wfw:commentRss>http://pete.reluctantgreenie.com/blog/2012/01/22/selective-export-of-routes-in-an-mpls-vrf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sugarsync database reset</title>
		<link>http://pete.reluctantgreenie.com/blog/2012/01/16/sugarsync-database-reset/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=sugarsync-database-reset</link>
		<comments>http://pete.reluctantgreenie.com/blog/2012/01/16/sugarsync-database-reset/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 17:35:37 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://pete.reluctantgreenie.com/blog/?p=453</guid>
		<description><![CDATA[To reset your local SugarSync database
1. Open SugarSync Manager.
2. Click the SugarSync Manager window to select it.
3. Press and hold Command + Shift + R.
The following message appears:
&#8220;You are about to reset SugarSync Manager on this computer. Your local configuration information will be erased and the client will restart as a fresh install. Your files [...]]]></description>
			<content:encoded><![CDATA[<div class="plus-one-wrap"><g:plusone size="small" count="false" href="http://pete.reluctantgreenie.com/blog/2012/01/16/sugarsync-database-reset/"></g:plusone></div><p>To reset your local SugarSync database</p>
<p>1. Open SugarSync Manager.<br />
2. Click the SugarSync Manager window to select it.<br />
3. Press and hold Command + Shift + R.<br />
The following message appears:<br />
&#8220;You are about to reset SugarSync Manager on this computer. Your local configuration information will be erased and the client will restart as a fresh install. Your files will not be affected. Are you sure you want to continue?&#8221;<br />
4. Click OK.</p>
<p>Cheers<br />
Pete</p>
]]></content:encoded>
			<wfw:commentRss>http://pete.reluctantgreenie.com/blog/2012/01/16/sugarsync-database-reset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BGP neighbour between Juniper and Cisco reporting &#8220;unsupported/disjoint capability&#8221;</title>
		<link>http://pete.reluctantgreenie.com/blog/2012/01/14/bgp-neighbour-between-juniper-and-cisco-reporting-unsupporteddisjoint-capability/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=bgp-neighbour-between-juniper-and-cisco-reporting-unsupporteddisjoint-capability</link>
		<comments>http://pete.reluctantgreenie.com/blog/2012/01/14/bgp-neighbour-between-juniper-and-cisco-reporting-unsupporteddisjoint-capability/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 16:26:31 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://pete.reluctantgreenie.com/blog/?p=449</guid>
		<description><![CDATA[I am trying to connect a BGP session between a Juniper JunOS device and a Cisco device.
I started with a very basic ipv4 config on the JunOS device, but had a more more complicated BGP config on the Cisco side ( vpnv4 and mdt ).
As soon as I brought the connection up the Cisco router [...]]]></description>
			<content:encoded><![CDATA[<div class="plus-one-wrap"><g:plusone size="small" count="false" href="http://pete.reluctantgreenie.com/blog/2012/01/14/bgp-neighbour-between-juniper-and-cisco-reporting-unsupporteddisjoint-capability/"></g:plusone></div><p>I am trying to connect a BGP session between a Juniper JunOS device and a Cisco device.</p>
<p>I started with a very basic ipv4 config on the JunOS device, but had a more more complicated BGP config on the Cisco side ( vpnv4 and mdt ).</p>
<p>As soon as I brought the connection up the Cisco router started to complain</p>
<pre>
*Jan 14 17:27:00.597: %BGP-3-NOTIFICATION: sent to neighbor 192.168.1.1 2/7 (unsupported/disjoint capability) 0 bytes  FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF 003B 0104 FC00 005A 0A01 1205 1E02 0601 0400 0100 0102 0280 0002 0202 0002 0440 0200 7802 0641 0400 00FC 00
</pre>
<p>It appears there is a hidden command, to stop the routers negotiating capabilities, but that just seems wrong.  What I actually needed was to match up the Juniper side with the Cisco side.  In this case, I added the following family statements to the BGP config</p>
<pre>
set protocol bgp {
    family inet-vpn {
        unicast;
    }
    family inet-mdt {
        signaling;
    }
}
</pre>
<p>Now the BGP session comes up just fine.</p>
<p>Cheers<br />
Pete</p>
]]></content:encoded>
			<wfw:commentRss>http://pete.reluctantgreenie.com/blog/2012/01/14/bgp-neighbour-between-juniper-and-cisco-reporting-unsupporteddisjoint-capability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>network interface on CentOS/redhat won&#8217;t come up</title>
		<link>http://pete.reluctantgreenie.com/blog/2011/12/30/network-interface-on-centosredhat-wont-come-up/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=network-interface-on-centosredhat-wont-come-up</link>
		<comments>http://pete.reluctantgreenie.com/blog/2011/12/30/network-interface-on-centosredhat-wont-come-up/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 10:35:33 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://pete.reluctantgreenie.com/blog/?p=444</guid>
		<description><![CDATA[I was messing around in the network settings, and enabled IPv6 as automatic on the eth0 interface.
after that, service network stop and  service network start both failed on eth0.
The error I was getting when I ran it was

[root@melvin init.d]# service network start
Bringing up loopback interface:          [...]]]></description>
			<content:encoded><![CDATA[<div class="plus-one-wrap"><g:plusone size="small" count="false" href="http://pete.reluctantgreenie.com/blog/2011/12/30/network-interface-on-centosredhat-wont-come-up/"></g:plusone></div><p>I was messing around in the network settings, and enabled IPv6 as automatic on the eth0 interface.</p>
<p>after that, <strong>service network stop</strong> and <strong> service network start</strong> both failed on eth0.</p>
<p>The error I was getting when I ran it was</p>
<pre>
[root@melvin init.d]# service network start
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  Active connection state: activating
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/4

** (process:6538): WARNING **: _nm_object_get_property: Error getting 'State' for /org/freedesktop/NetworkManager/ActiveConnection/4: (19) Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

state: unknown
Error: Connection activation failed.
                                                           [FAILED]
[root@melvin init.d]# 
</pre>
<p>As it turned out, the problem was the IPv6.  If  look at dmesg, I see </p>
<pre>
e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
8021q: adding VLAN 0 to HW filter on device eth0
eth0: no IPv6 routers present
lo: Disabled Privacy Extensions
eth0: no IPv6 routers present
</pre>
<p>Which is fair enough because I have not setup IPv6 on the network in any useful fashion.</p>
<p>The fix was to change IPv6 to <strong>LinkOnly</strong>, and worry about IPv6 later.</p>
<p>I would be nice if the message back from the ifup script was more descriptive though, I wonder how many other people have wasted time trying to work this out.</p>
<p>Cheers<br />
Pete</p>
]]></content:encoded>
			<wfw:commentRss>http://pete.reluctantgreenie.com/blog/2011/12/30/network-interface-on-centosredhat-wont-come-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>filtering OSPF routes</title>
		<link>http://pete.reluctantgreenie.com/blog/2011/12/29/filtering-ospf-routes/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=filtering-ospf-routes</link>
		<comments>http://pete.reluctantgreenie.com/blog/2011/12/29/filtering-ospf-routes/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 17:21:33 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://pete.reluctantgreenie.com/blog/?p=440</guid>
		<description><![CDATA[Our external routers run full routes, but on the internal network the routers don&#8217;t have sufficient memory, nor do they need full routes.
To ensure that someone does not blow them up be accidently advertising full routes into the internal network, we filter the routes they will accept.
To do this, we configure a distribution-list on the [...]]]></description>
			<content:encoded><![CDATA[<div class="plus-one-wrap"><g:plusone size="small" count="false" href="http://pete.reluctantgreenie.com/blog/2011/12/29/filtering-ospf-routes/"></g:plusone></div><p>Our external routers run full routes, but on the internal network the routers don&#8217;t have sufficient memory, nor do they need full routes.</p>
<p>To ensure that someone does not blow them up be accidently advertising full routes into the internal network, we filter the routes they will accept.</p>
<p>To do this, we configure a <strong>distribution-list</strong> on the router we are trying to protect.</p>
<p>lets say our block of address space is 170.12.42.0/23</p>
<pre>
ip prefix-list AS1234-filter seq 5 permit 170.12.42.0/23 le 32
ip prefix-list AS1234-filter seq 10 permit 0.0.0.0/0
</pre>
<p>then we add this to the OSPF router process</p>
<pre>
router ospf 1
 router-id 192.168.1.1
 log-adjacency-changes
 distribute-list prefix AS1234-filter in
</pre>
<p>Now you should only see the routes you need ( and the default router in this example ) in your router process</p>
<p>Cheers<br />
Pete</p>
]]></content:encoded>
			<wfw:commentRss>http://pete.reluctantgreenie.com/blog/2011/12/29/filtering-ospf-routes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>100% CPU with multihop BGP</title>
		<link>http://pete.reluctantgreenie.com/blog/2011/12/11/100-cpu-with-multihop-bgp/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=100-cpu-with-multihop-bgp</link>
		<comments>http://pete.reluctantgreenie.com/blog/2011/12/11/100-cpu-with-multihop-bgp/#comments</comments>
		<pubDate>Sun, 11 Dec 2011 15:33:55 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[bgp]]></category>

		<guid isPermaLink="false">http://pete.reluctantgreenie.com/blog/?p=436</guid>
		<description><![CDATA[I need to look at this more, but for the moment the problem is solved.
I had an issue where I configured BGP multihop, and the router CPU sat at 100% utilisation and stayed there.
The CPU utilisation looked like this

thing#show processes cpu sort
CPU utilization for five seconds: 99%/0%; one minute: 99%; five minutes: 96%
 PID Runtime(uS) [...]]]></description>
			<content:encoded><![CDATA[<div class="plus-one-wrap"><g:plusone size="small" count="false" href="http://pete.reluctantgreenie.com/blog/2011/12/11/100-cpu-with-multihop-bgp/"></g:plusone></div><p>I need to look at this more, but for the moment the problem is solved.</p>
<p>I had an issue where I configured BGP multihop, and the router CPU sat at 100% utilisation and stayed there.</p>
<p>The CPU utilisation looked like this</p>
<pre>
thing#show processes cpu sort
CPU utilization for five seconds: 99%/0%; one minute: 99%; five minutes: 96%
 PID Runtime(uS)     Invoked      uSecs   5Sec   1Min   5Min TTY Process
 295   326764000        7716      42348 48.54% 31.38% 31.09%   0 BGP Router
 154   509856000        3549     143661 44.16% 56.25% 51.87%   0 IP RIB Update
 297     8980000         131      68549  3.97%  1.03%  0.82%   0 BGP Scanner
</pre>
<p>The BGP config looks ( something ) like </p>
<pre>
router bgp 1234
 bgp router-id 192.168.10.1
 no bgp default ipv4-unicast
 bgp log-neighbor-changes
 !
 address-family ipv4 vrf blah
  no synchronization
  bgp router-id 1.2.3.4
  network 1.2.3.0
  neighbor peer peer-group
  neighbor peer remote-as 8765
  neighbor peer ebgp-multihop 4
  neighbor peer update-source Loopback9000
  neighbor peer version 4
  neighbor peer send-community both
  neighbor peer soft-reconfiguration inbound
  neighbor 192.168.20.1 peer-group peer
  neighbor 192.168.20.1 activate
 exit-address-family
 !
 </pre>
<p>The only really interesting bit, is the ebgp-multihop command &#8211; the rest is pretty standard</p>
<p>If I looked at the CEF table, a route that should have been learned via BGP was <strong>un-resolved</strong></p>
<pre>
thing#show ip cef vrf blah 121.0.7.1
121.0.0.0/21
  unresolved via 200.170.81.17
</pre>
<p>If I kept doing <strong>show ip route vrf blah</strong>, the routes would appear, and then disappear.</p>
<p>Now I don&#8217;t profess to really understand how this has made a difference, but what I did was add a static route for the remove BGP peer.</p>
<p>I already had </p>
<pre>
ip route vrf blah 0.0.0.0 0.0.0.0 192.168.50.1
</pre>
<p>but I added</p>
<pre>
ip route vrf blah 192.168.20.1 255.255.255.255 192.168.50.1
</pre>
<p>I can see a different in the CEF table now</p>
<pre>
thing#show ip cef vrf blah 121.0.7.1 detail
121.0.0.0/21, epoch 0, flags rib only nolabel, rib defined all labels
  recursive via 192.168.20.1
    recursive via 192.168.50.1
      attached to Vlan97
thing#
</pre>
<p>An the CPU has completely calmed down.</p>
<p>Hope it helps!<br />
Pete</p>
]]></content:encoded>
			<wfw:commentRss>http://pete.reluctantgreenie.com/blog/2011/12/11/100-cpu-with-multihop-bgp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimise BGP memory using by limiting the number of AS-PATHs</title>
		<link>http://pete.reluctantgreenie.com/blog/2011/12/01/optimise-bgp-memory-using-by-limiting-the-number-of-as-paths/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=optimise-bgp-memory-using-by-limiting-the-number-of-as-paths</link>
		<comments>http://pete.reluctantgreenie.com/blog/2011/12/01/optimise-bgp-memory-using-by-limiting-the-number-of-as-paths/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 05:33:48 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[bgp]]></category>

		<guid isPermaLink="false">http://pete.reluctantgreenie.com/blog/?p=428</guid>
		<description><![CDATA[The full route table is getting pretty big, and a simple way to limit the amount of memory usage on your routers, is to limit the number of AS-PATHs that you accept.  If you are connected to the Tier 1 providers, then most major networks will only be 3 or 4 AS&#8217;s away, so [...]]]></description>
			<content:encoded><![CDATA[<div class="plus-one-wrap"><g:plusone size="small" count="false" href="http://pete.reluctantgreenie.com/blog/2011/12/01/optimise-bgp-memory-using-by-limiting-the-number-of-as-paths/"></g:plusone></div><p>The full route table is getting pretty big, and a simple way to limit the amount of memory usage on your routers, is to limit the number of AS-PATHs that you accept.  If you are connected to the Tier 1 providers, then most major networks will only be 3 or 4 AS&#8217;s away, so anything else you can just use a default route for.</p>
<p>If I pick up full routes, <strong>show bgp all summary</strong> looks like this</p>
<p><strong> show bgp all summary </strong></p>
<pre>
374859 network entries using 53979696 bytes of memory
374859 path entries using 19492668 bytes of memory
63037/63037 BGP path/bestpath attribute entries using 8320884 bytes of memory
56456 BGP AS-PATH entries using 2223352 bytes of memory
</pre>
<p>and the route table looks like</p>
<p><strong>show ip route summary</strong></p>
<pre>
Route Source    Networks    Subnets     Replicates  Overhead    Memory (bytes)
connected       0           8           0           448         1376
static          1           0           0           56          172
bgp 64513       144752      229965      0           20984152    64451324
  External: 374717 Internal: 0 Local: 0
internal        4380                                            15466904
Total           149133      229973      0           20984656    79919776
</pre>
<p>So if I am reading it right, BGP is using 83MB of memory and the route table is using 80MB</p>
<p>If I want to limit the number of paths, I can do that by setting an as-path access list with the right regex</p>
<pre>
ip as-path access-list 10 permit ^[0-9]+( [0-9]+)( [0-9]+)( [0-9]+)$
ip as-path access-list 10 deny .*
</pre>
<p>In this example, I am allow 4 AS hops.  if I wanted three, I would just remove the last <strong>( [0-9]+)</strong> entry.</p>
<p>To apply this access list, you need to add a bgp filter into your bgp config</p>
<pre>
 address-family ipv4 vrf blah
  neighbor 1.2.3.4 remote-as 1239
  neighbor 1.2.3.4 local-as 1790 no-prepend replace-as
  neighbor 1.2.3.4 version 4
  neighbor 1.2.3.4 send-community both
  neighbor 1.2.3.4 filter-list 10 in
  neighbor 1.2.3.4 activate
 exit-address-family
</pre>
<p>Now bgp all sum looks like this</p>
<p><strong>show bgp all summary</strong></p>
<pre>
109629 network entries using 15786576 bytes of memory
109629 path entries using 5700708 bytes of memory
21302/21302 BGP path/bestpath attribute entries using 2811864 bytes of memory
19510 BGP AS-PATH entries using 780400 bytes of memory
</pre>
<p>Thats about 30MB of memory, rather than 80MB on BGP, and if I look at the route table, its at 23MB rather than 80MB &#8211; we have saved about 100MB of memory.</p>
<p>If your going to do this, <strong>you need to make sure you do not have soft-reconfigure turned on</strong>.  Before you turn it off, make sure you understand what it does first <img src='http://pete.reluctantgreenie.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>If I turn on soft-reconfigure, even with the filter-list in place, the bgp summary looks like this again ( 83MB )</p>
<p><strong>show bgp all summary</strong></p>
<pre>
374735 network entries using 53961840 bytes of memory
374735 path entries using 19486220 bytes of memory
63026/21302 BGP path/bestpath attribute entries using 8319432 bytes of memory
56451 BGP AS-PATH entries using 2221352 bytes of memory
</pre>
<p>Even though the route table does not have all the routes ( 24MB )</p>
<p><strong>show ip route summary</strong></p>
<pre>
Route Source    Networks    Subnets     Replicates  Overhead    Memory (bytes)
connected       0           8           0           448         1376
static          1           0           0           56          172
bgp 64513       40138       69516       0           6140624     18860488
  External: 109654 Internal: 0 Local: 0
internal        1997                                            4796348
Total           42136       69524       0           6141128     23658384
</pre>
<p>So, you can save a 100MB of memory with a little tweak, but its a minimal gain really &#8211; a better solution is to purchase more ram for your router &#8211; its not that expensive.</p>
<p>Cheers<br />
Pete</p>
]]></content:encoded>
			<wfw:commentRss>http://pete.reluctantgreenie.com/blog/2011/12/01/optimise-bgp-memory-using-by-limiting-the-number-of-as-paths/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>undeleting photos with testdisk</title>
		<link>http://pete.reluctantgreenie.com/blog/2011/05/31/undeleting-photos-with-testdisk/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=undeleting-photos-with-testdisk</link>
		<comments>http://pete.reluctantgreenie.com/blog/2011/05/31/undeleting-photos-with-testdisk/#comments</comments>
		<pubDate>Tue, 31 May 2011 18:11:10 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://pete.reluctantgreenie.com/blog/?p=419</guid>
		<description><![CDATA[Opps.

I imported a load of photos, and deleted the contents of the camera.  Later, I managed to delete the imported versions  
There are loads of shareware undelete tools, but as soon as they find the files they want you to pay to restore them.  I found this tool TestDisk.  
I was [...]]]></description>
			<content:encoded><![CDATA[<div class="plus-one-wrap"><g:plusone size="small" count="false" href="http://pete.reluctantgreenie.com/blog/2011/05/31/undeleting-photos-with-testdisk/"></g:plusone></div><p>Opps.</p>
<p><a style="float: right; padding: 10px;" href="http://www.cgsecurity.org/"><img src="http://pete.reluctantgreenie.com/blog/wp-content/uploads/2011/05/Testdisklogo_clear_100.png" alt="" title="Testdisklogo_clear_100" width="100" height="100" class="alignright size-full wp-image-420" /></a></p>
<p>I imported a load of photos, and deleted the contents of the camera.  Later, I managed to delete the imported versions <img src='http://pete.reluctantgreenie.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>There are loads of shareware undelete tools, but as soon as they find the files they want you to pay to restore them.  I found this tool <a href="http://www.cgsecurity.org/wiki/TestDisk">TestDisk</a>.  </p>
<p>I was lucky that I had not taken any more photos on the flash card, and TestDisk did a good job of restoring all the files.  The photo&#8217;s are ok, but the movies appear to be broken.  At least I have the files to work with though.</p>
<p>If you found this page because you have lost some of your Photo&#8217;s, I really hope TestDisk works for you.</p>
<p>Cheers<br />
Pete</p>
]]></content:encoded>
			<wfw:commentRss>http://pete.reluctantgreenie.com/blog/2011/05/31/undeleting-photos-with-testdisk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Identifying bandwidth usage (top talkers) on a Juniper firewall</title>
		<link>http://pete.reluctantgreenie.com/blog/2011/05/29/identifying-bandwidth-usage-top-talkers-on-a-juniper-firewall/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=identifying-bandwidth-usage-top-talkers-on-a-juniper-firewall</link>
		<comments>http://pete.reluctantgreenie.com/blog/2011/05/29/identifying-bandwidth-usage-top-talkers-on-a-juniper-firewall/#comments</comments>
		<pubDate>Sun, 29 May 2011 19:35:30 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[juniper]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://pete.reluctantgreenie.com/blog/?p=414</guid>
		<description><![CDATA[I have often needed to find out who the top bandwidth users (top talkers) are on a Juniper SSG firewall.
Cisco&#8217;s have Netflow, and Junos has Jflow or whatever its called.   Netscreen Juniper make a lot of noise about how good their traffic shaping is on the SSG firewalls, but finding who is using the [...]]]></description>
			<content:encoded><![CDATA[<div class="plus-one-wrap"><g:plusone size="small" count="false" href="http://pete.reluctantgreenie.com/blog/2011/05/29/identifying-bandwidth-usage-top-talkers-on-a-juniper-firewall/"></g:plusone></div><p>I have often needed to find out who the top bandwidth users (top talkers) are on a Juniper SSG firewall.</p>
<p>Cisco&#8217;s have Netflow, and Junos has Jflow or whatever its called.  <span style="text-decoration: line-through;"> Netscreen</span> Juniper make a lot of noise about how good their traffic shaping is on the SSG firewalls, but finding who is using the bandwidth at any point in time has always eluded me, until today.</p>
<p>First you need to enable <strong>fprofiling</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">set</span> fprofile packet <span style="color: #7a0874; font-weight: bold;">enable</span></pre></div></div>

<p>Now you need to capture some data</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">set</span> fprofile packet start</pre></div></div>

<p>wait a bit, then turn it off</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">set</span> fprofile packet stop</pre></div></div>

<p>Now you can see who the top talkers are by looking at the captured data</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">myfw-<span style="color: #000000; font-weight: bold;">&gt;</span> get fprofile packet
packet buffer <span style="color: #c20cb9; font-weight: bold;">size</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">in</span> kilo-packets<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">4</span>
total ip packet: <span style="color: #000000;">4041</span>
total ip packet <span style="color: #000000; font-weight: bold;">time</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>us<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">693434</span>
total none-ip packet: <span style="color: #000000;">55</span>
total none-ip packet <span style="color: #000000; font-weight: bold;">time</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>us<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">5834</span>
Id  Type        Protocol    Source            Destination             Sport       Dport        Time  Percentage
<span style="color: #000000;">1</span>  ip          0x06        61.165.32.63    34.52.134.6            <span style="color: #000000;">80</span>        <span style="color: #000000;">1369</span>      <span style="color: #000000;">195490</span>  <span style="color: #000000;">27.95</span><span style="color: #000000; font-weight: bold;">%</span>
<span style="color: #000000;">2</span>  ip          0x06        61.165.32.63    192.168.1.10              <span style="color: #000000;">80</span>       <span style="color: #000000;">49362</span>      <span style="color: #000000;">104221</span>  <span style="color: #000000;">14.90</span><span style="color: #000000; font-weight: bold;">%</span>
<span style="color: #000000;">3</span>  ip          0x06        192.168.1.10      61.165.32.63         <span style="color: #000000;">49362</span>          <span style="color: #000000;">80</span>       <span style="color: #000000;">78254</span>  <span style="color: #000000;">11.19</span><span style="color: #000000; font-weight: bold;">%</span>
<span style="color: #000000;">4</span>  ip          0x06        192.168.1.15       102.168.2.27            <span style="color: #000000;">64754</span>        <span style="color: #000000;">4242</span>       <span style="color: #000000;">72124</span>  <span style="color: #000000;">10.31</span><span style="color: #000000; font-weight: bold;">%</span>
<span style="color: #000000;">5</span>  ip          0x06        87.248.210.253    34.52.134.6            <span style="color: #000000;">80</span>        <span style="color: #000000;">1954</span>       <span style="color: #000000;">60716</span>   <span style="color: #000000;">8.68</span><span style="color: #000000; font-weight: bold;">%</span>
<span style="color: #000000;">6</span>  ip          0x06        102.168.2.27       192.168.1.15             <span style="color: #000000;">4242</span>       <span style="color: #000000;">64754</span>       <span style="color: #000000;">38429</span>   <span style="color: #000000;">5.49</span><span style="color: #000000; font-weight: bold;">%</span>
<span style="color: #000000;">7</span>  ip          0x06        87.248.210.253    192.168.1.11              <span style="color: #000000;">80</span>       <span style="color: #000000;">59031</span>       <span style="color: #000000;">31086</span>   <span style="color: #000000;">4.44</span><span style="color: #000000; font-weight: bold;">%</span>
<span style="color: #000000;">8</span>  ip          0x01        192.168.0.5        192.168.1.6                <span style="color: #000000;">11</span>           <span style="color: #000000;">0</span>       <span style="color: #000000;">25952</span>   <span style="color: #000000;">3.71</span><span style="color: #000000; font-weight: bold;">%</span>
<span style="color: #000000;">9</span>  ip          0x06        192.168.1.11      87.248.210.253         <span style="color: #000000;">59031</span>          <span style="color: #000000;">80</span>       <span style="color: #000000;">23852</span>   <span style="color: #000000;">3.41</span><span style="color: #000000; font-weight: bold;">%</span>
<span style="color: #000000;">10</span>  ip          0x06        34.52.134.6    87.248.211.190          <span style="color: #000000;">1369</span>          <span style="color: #000000;">80</span>       <span style="color: #000000;">18404</span>   <span style="color: #000000;">2.63</span><span style="color: #000000; font-weight: bold;">%</span>
myfw-<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>its good practice to clean up at the end</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">usnet fprofile packet <span style="color: #7a0874; font-weight: bold;">enable</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://pete.reluctantgreenie.com/blog/2011/05/29/identifying-bandwidth-usage-top-talkers-on-a-juniper-firewall/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>static ipv6 address on solaris 10</title>
		<link>http://pete.reluctantgreenie.com/blog/2011/05/28/static-ipv6-address-on-solaris-10/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=static-ipv6-address-on-solaris-10</link>
		<comments>http://pete.reluctantgreenie.com/blog/2011/05/28/static-ipv6-address-on-solaris-10/#comments</comments>
		<pubDate>Sat, 28 May 2011 15:02:17 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[ipv6]]></category>

		<guid isPermaLink="false">http://pete.reluctantgreenie.com/blog/?p=408</guid>
		<description><![CDATA[This seems silly, but it took quite a while to get a static ipv6 address to configure itself properly on solaris ten.
There were loads of errors, mainly like

Failed to configure IPv6 interfaces(s): e1000g0
t_optmgmt: System error: Cannot assign requested address

If you read the various versions of the documentation, they suggest you add the following to /etc/hostname6.e1000g0

inet6 [...]]]></description>
			<content:encoded><![CDATA[<div class="plus-one-wrap"><g:plusone size="small" count="false" href="http://pete.reluctantgreenie.com/blog/2011/05/28/static-ipv6-address-on-solaris-10/"></g:plusone></div><p>This seems silly, but it took quite a while to get a static ipv6 address to configure itself properly on solaris ten.</p>
<p>There were loads of errors, mainly like</p>
<ul>
<li>Failed to configure IPv6 interfaces(s): e1000g0</li>
<li>t_optmgmt: System error: Cannot assign requested address</li>
</ul>
<p>If you read the various versions of the <a href="http://download.oracle.com/docs/cd/E18752_01/html/816-4554/ipv6-config-tasks-64.html">documentation</a>, they suggest you add the following to /etc/hostname6.e1000g0</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">inet6 ipv6-address up
addif inet6 ipv6-address up
...</pre></div></div>

<p>But this actually doesn&#8217;t seem to work.  <img src='http://pete.reluctantgreenie.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>This seems to work though</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">bash-<span style="color: #000000;">3.00</span>$ <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>inet<span style="color: #000000; font-weight: bold;">/</span>ndpd.conf
if-variable-name StatelessAddrConf <span style="color: #c20cb9; font-weight: bold;">false</span>
bash-<span style="color: #000000;">3.00</span>$ <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hostname6.e1000g0
addif <span style="color: #000000;">2001</span>:8e3:ee12:<span style="color: #000000;">2</span>::<span style="color: #000000;">36</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">64</span> up
bash-<span style="color: #000000;">3.00</span>$</pre></div></div>

<p>Putting inet6 into the hostname file seems to be the main issue, and it works just fine without it.</p>
<p>Interestingly, you still get the various address you would normally expect (local and global), so the static address will appear as a sub interface rather than an IP on the primary interface</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ifconfig</span> <span style="color: #660033;">-a</span>
lo0: <span style="color: #007800;">flags</span>=<span style="color: #000000;">2002000849</span> mtu <span style="color: #000000;">8252</span> index <span style="color: #000000;">1</span>
        inet6 ::<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">128</span>
e1000g0: <span style="color: #007800;">flags</span>=<span style="color: #000000;">2000841</span> mtu <span style="color: #000000;">1500</span> index <span style="color: #000000;">2</span>
        inet6 fe80::20c:23df:fe61:e321<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span>
e1000g0:<span style="color: #000000;">1</span>: <span style="color: #007800;">flags</span>=<span style="color: #000000;">2000841</span> mtu <span style="color: #000000;">1500</span> index <span style="color: #000000;">2</span>
        inet6 <span style="color: #000000;">2001</span>:8e3:ee12:<span style="color: #000000;">2</span>::<span style="color: #000000;">36</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">64</span>
e1000g0:<span style="color: #000000;">2</span>: <span style="color: #007800;">flags</span>=<span style="color: #000000;">2080841</span> mtu <span style="color: #000000;">1500</span> index <span style="color: #000000;">2</span>
        inet6 <span style="color: #000000;">2001</span>:8e3:ee12:<span style="color: #000000;">2</span>:20c:23df:fe61:e321<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">64</span>
$</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://pete.reluctantgreenie.com/blog/2011/05/28/static-ipv6-address-on-solaris-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

