<?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>Security-Planet.de &#187; OSPF</title>
	<atom:link href="http://security-planet.de/tag/ospf/feed/" rel="self" type="application/rss+xml" />
	<link>http://security-planet.de</link>
	<description>IT-Security, Netzwerktechnik, dies und das</description>
	<lastBuildDate>Fri, 10 Sep 2010 05:39:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Die OSPF Prozess ID beim PE-CE-Routing</title>
		<link>http://security-planet.de/2009/03/16/die-ospf-prozess-id-beim-pe-ce-routing/</link>
		<comments>http://security-planet.de/2009/03/16/die-ospf-prozess-id-beim-pe-ce-routing/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 07:33:56 +0000</pubDate>
		<dc:creator>Karsten</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Konfiguration]]></category>
		<category><![CDATA[MPLS]]></category>
		<category><![CDATA[OSPF]]></category>

		<guid isPermaLink="false">http://security-planet.de/?p=1358</guid>
		<description><![CDATA[Wenn OSPF als IGP in einem Netz konfiguriert wird, ist die Prozess-ID nur lokal signifikant. Es ist keine AS-Nummer wie bei EIGRP, und daher funktioniert folgende Konfiguration ohne Probleme: hostname R1 router ospf 10 network 10.10.10.1 0.0.0.0 area 0 hostname R2 router ospf 20 network 10.10.10.2 0.0.0.0 area 0 Etwas anders verhält sich die Sache [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-643" title="router" src="http://security-planet.de/wp-content/uploads/2008/12/router.png" alt="router" width="70" height="49" /><br />
Wenn OSPF als IGP in einem Netz konfiguriert wird, ist die Prozess-ID nur lokal signifikant. Es ist keine AS-Nummer wie bei EIGRP, und daher funktioniert folgende Konfiguration ohne Probleme:</p>
<pre><code>hostname R1
router ospf 10
 network 10.10.10.1 0.0.0.0 area 0

hostname R2
router ospf 20
 network 10.10.10.2 0.0.0.0 area 0</code></pre>
<p>Etwas anders verhält sich die Sache aber, wenn man OSPF als PE-CE-Routing-Protokoll einsetzt. In den original Kursunterlagen zum Kurs &#8220;Implementing Cisco MPLS&#8221; kann man folgendes zum Thema nachlesen:</p>
<blockquote><p><em>process-id</em>: Internally used identification parameter for an OSPF routing process.<br />
This parameter is locally assigned and can be any positive integer. A unique value is assigned for each OSPF routing process.</p></blockquote>
<p>Wenn man seine PE-Router aber so konfiguriert, bekommt man nicht das erwartete Ergebnis.<br />
Um das zu verdeutlichen, habe ich die <a href="http://security-planet.de/2009/02/22/training-implementing-cisco-mpls/">Konfiguration des MPLS-Kurses</a> verwendet:<br />
<img class="alignnone size-full wp-image-1363" title="pe-ce-ospf" src="http://security-planet.de/wp-content/uploads/2009/03/pe-ce-ospf.png" alt="pe-ce-ospf" width="624" height="422" /><br />
Die (relevante) Konfiguration des CE11A:</p>
<pre><code>router ospf 5
 network 10.1.11.17 0.0.0.0 area 0
 network 150.1.11.17 0.0.0.0 area 0
</code></pre>
<p>Die (relevante) Konfiguration des CE12A:</p>
<pre><code>router ospf 6
 network 10.1.12.17 0.0.0.0 area 0
 network 150.1.12.17 0.0.0.0 area 0
</code></pre>
<p>Die (relevante) Konfiguration des PE11:</p>
<pre><code>router ospf 10 vrf CUST-A
 redistribute bgp 65001 subnets
 network 150.1.11.18 0.0.0.0 area 0</code></pre>
<p>Die (relevante) Konfiguration des PE12:</p>
<pre><code>router ospf 20 vrf CUST-A
 redistribute bgp 65001 subnets
 network 150.1.12.18 0.0.0.0 area 0
</code></pre>
<p>Wie man sieht, sind alle Prozess-IDs unterschiedlich, was innerhalb eines AS kein Problem darstellen würde.<br />
Wenn man sich die Routing-Tabelle der CE-Router anschaut, zeigt sich aber folgendes Problem:</p>
<pre><code>CE11A#sh ip route ospf
     10.0.0.0/8 is variably subnetted, 5 subnets, 3 masks
O E2    10.1.12.16/28 [110/65] via 150.1.11.18, 00:26:01, Serial1/0.101
     150.1.0.0/28 is subnetted, 2 subnets
O E2    150.1.12.16 [110/1] via 150.1.11.18, 00:26:01, Serial1/0.101
</code></pre>
<p>Die Routen werden als External gelernt, anstelle als Inter-Area-Routen, wie es sein sollte.</p>
<p>Eine Möglichkeit, das Problem zu lösen, ist, für jeden Kunden dieselbe Prozess-ID zu benutzen.<br />
Es geht aber auch anders. Innerhalb des PE-OSPF-Prozesses kann die <code>domain-id</code> spezifiziert werden. Wenn diese auf den PE-Routern für jeden Kunden identisch ist, werden die Routen wie gewünscht als IA gelernt.<br />
Die PE12-Konfig wird folgendermaßen angepaßt:</p>
<pre><code>router ospf 20 vrf CUST-A
 domain-id 0.0.0.10
 redistribute bgp 65001 subnets
 network 150.1.12.18 0.0.0.0 area 0</code></pre>
<p>Jetzt passt die Routing-Tabelle auf CE11A:</p>
<pre><code>CE11A#sh ip route ospf
     10.0.0.0/8 is variably subnetted, 5 subnets, 3 masks
O IA    10.1.12.16/28 [110/129] via 150.1.11.18, 00:00:35, Serial1/0.101
     150.1.0.0/28 is subnetted, 2 subnets
O IA    150.1.12.16 [110/65] via 150.1.11.18, 00:00:35, Serial1/0.101
</code></pre>
<p>Warum das Ganze? Aus der Prozess-ID wird der Domain-Identifier abgeleitet und standardmäßig als extended Community Wert 0005 übertragen (beschrieben im <a href="http://www.ietf.org/rfc/rfc4577.txt">RFC 4577</a>).<br />
Die Domain ID des PE11 kommt also bei PE12 an (ich habe &#8220;Extended Community&#8221; gegen &#8220;ExtCom&#8221; abgekürzt, damit es lesbar bleibt):</p>
<pre><code>PE12#sh ip bgp vpnv4 all 10.1.11.16
BGP routing table entry for 65001:10:10.1.11.16/28, version 44
Paths: (1 available, best #1, table CUST-A)
  Not advertised to any peer
  Local
    192.168.1.17 (metric 193) from 192.168.1.17 (192.168.1.17)
      Origin incomplete, metric 65, localpref 100, valid, internal, best
      ExtCom: RT:65001:10 OSPF DOMAIN ID:0x0005:0x0000000A0200
        OSPF RT:0.0.0.0:2:0 OSPF ROUTER ID:150.1.11.18:0
      mpls labels in/out nolabel/11107</code></pre>
<p>Die &#8220;0A&#8221; ist in diesem Fall die hexadezimale Form der &#8220;10&#8243;, die auf PE11 konfiguriert ist. Wenn auf PE11 <code>domain-id 11.12.13.14</code> konfiguriert wäre, käme bei PE12 folgendes an: <code>OSPF DOMAIN ID:0x0005:0x0B0C0D0E0200</code></p>
<p>Der Standard sieht jetzt vor, daß eine Route mit abweichender Domain-ID als External importiert wird. Ist die Domain-ID hingegen identisch, wird sie als Inter-Area-Route importiert. Die ganze Sache kann aber noch dadurch erweitert werden, daß es mehr als eine Domain-ID geben kann.</p>
]]></content:encoded>
			<wfw:commentRss>http://security-planet.de/2009/03/16/die-ospf-prozess-id-beim-pe-ce-routing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
