<?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>x83.net &#187; gre</title>
	<atom:link href="http://www.x83.net/tag/gre/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.x83.net</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 13:53:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>IP GRE tunnel between Juniper and FreeBSD</title>
		<link>http://www.x83.net/ip-gre-tunnel-between-juniper-and-freebsd/</link>
		<comments>http://www.x83.net/ip-gre-tunnel-between-juniper-and-freebsd/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 03:56:33 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Juniper]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[gre]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[tunnel]]></category>

		<guid isPermaLink="false">http://www.x83.net/blog/?p=75</guid>
		<description><![CDATA[The configuration @ FreeBSD router: ifconfig gif0 create ifconfig gif0 inet 10.100.100.2 10.100.100.1 netmask 255.255.255.252 ifconfig gif0 tunnel 192.168.1.2 10.242.2.242 The configuration @ M7i: # show interfaces ip-1/2/0 unit 0 { tunnel { source 10.242.2.242; destination 192.168.1.2; routing-instance { destination VRF-TEST; } } family inet { address 10.100.100.1/30; } } And also don&#8217;t forget to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The configuration @ FreeBSD router:</strong></p>
<pre>
ifconfig gif0 create
ifconfig gif0 inet 10.100.100.2 10.100.100.1 netmask 255.255.255.252
ifconfig gif0 tunnel 192.168.1.2 10.242.2.242
</pre>
<p><strong>The configuration @ M7i:</strong></p>
<p># show interfaces ip-1/2/0<br />
unit 0 {<br />
tunnel {<br />
source 10.242.2.242;<br />
destination 192.168.1.2;<br />
routing-instance {<br />
destination VRF-TEST;<br />
}<br />
}<br />
family inet {<br />
address 10.100.100.1/30;<br />
}<br />
}</p>
<p>And also don&#8217;t forget to define the ip-1/2/0.0 interface in the correct routing-instance (in this case, VRF-TEST routing -instance)</p>
<p>Network topology for testing purpose is shown below:</p>
<p>10.100.100.2/30 (ipip tunnel) 10.100.100.1/30<br />
FreeBSD &#8212;&#8212;&#8212;-LAN&#8212;&#8212;&#8212;&#8212;M7i<br />
192.168.1.2 10.242.2.242</p>
<p>And finally, based on the result below, we could see that it is possible to do ipip/gre tunnelling in M7i base system without AS PIC or LS PIC.<br />
M7i base system has 1 builtin tunnel interface.</p>
<pre>
# show chassis hardware
Hardware inventory:
Item Version Part number Serial number Description
Chassis 32297 M7i
Midplane REV 04 710-008761 CE3630
Power Supply 0 Rev 02 740-008985 QF15548 DC
Power Supply 1 Rev 02 740-008985 QF15558 DC
Routing Engine REV 09 740-009459 1000542657 RE-5.0
CFEB REV 03 750-010463 CE7095 Internet Processor II
FPC 0 E-FPC
FPC 1 E-FPC
PIC 2 BUILTIN BUILTIN 1x Tunnel
PIC 3 REV 07 750-009098 CC7914 2x F/E, 100 BASE-TX
</pre>
<p>And these are the results:<br />
&#8212;&#8212;&#8212;</p>
<p>I did ping from the M7i</p>
<pre>
# run ping 10.100.100.2 routing-instance VRF-TEST
PING 10.100.100.2 (10.100.100.2): 56 data bytes
64 bytes from 10.100.100.2: icmp_seq=0 ttl=64 time=1.103 ms
64 bytes from 10.100.100.2: icmp_seq=1 ttl=64 time=1.125 ms
64 bytes from 10.100.100.2: icmp_seq=2 ttl=64 time=1.109 ms
</pre>
<p>and this is the result:</p>
<pre>
# tcpdump -n -i gif0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on gif0, link-type NULL (BSD loopback), capture size 96 bytes
12:30:08.971272 IP 10.100.100.1 > 10.100.100.2: icmp 64: echo request seq 4608
12:30:08.971287 IP 10.100.100.2 > 10.100.100.1: icmp 64: echo reply seq 4608
12:30:09.981402 IP 10.100.100.1 > 10.100.100.2: icmp 64: echo request seq 4864
12:30:09.981414 IP 10.100.100.2 > 10.100.100.1: icmp 64: echo reply seq 4864
12:30:10.991369 IP 10.100.100.1 > 10.100.100.2: icmp 64: echo request seq 5120
12:30:10.991382 IP 10.100.100.2 > 10.100.100.1: icmp 64: echo reply seq 5120
-rendo-
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/ip-gre-tunnel-between-juniper-and-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD: GRE Tunnels</title>
		<link>http://www.x83.net/freebsd-gre-tunnels/</link>
		<comments>http://www.x83.net/freebsd-gre-tunnels/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 20:54:34 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[BSD]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[gre]]></category>
		<category><![CDATA[gre1]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[tunnel]]></category>

		<guid isPermaLink="false">http://www.x83.net/blog/?p=160</guid>
		<description><![CDATA[b0x# kldstat Id Refs Address Size Name 1 5 0xc0400000 34f898 kernel 2 14 0xc0750000 56270 acpi.ko 3 1 0xc0c97000 1c000 ipl.ko 4 1 0xc15ef000 4000 if_gre.ko # kldload if_gre.ko # sysctl -w net.inet.ip.gre_default_mtu=1450 # ifconfig gre1 create # ifconfig gre1 tunnel 217.154.12.2 212.25.240.34 # ifconfig gre1 mtu 1450 # ifconfig gre1 inet 10.1.12.38 10.1.12.37 [...]]]></description>
			<content:encoded><![CDATA[<pre>
b0x# kldstat
Id Refs Address Size Name
1 5 0xc0400000 34f898 kernel
2 14 0xc0750000 56270 acpi.ko
3 1 0xc0c97000 1c000 ipl.ko
4 1 0xc15ef000 4000 if_gre.ko
</pre>
<pre>
# kldload if_gre.ko
# sysctl -w net.inet.ip.gre_default_mtu=1450
# ifconfig gre1 create
# ifconfig gre1 tunnel 217.154.12.2 212.25.240.34
# ifconfig gre1 mtu 1450
# ifconfig gre1 inet 10.1.12.38 10.1.12.37 netmask 255.255.255.252
# ifconfig gre1 up
</pre>
<p>And that was that!</p>
<p>or Lan :</p>
<pre>
# ifconfig gre1 inet 10.1.12.37 10.1.12.38 netmask 255.255.255.252 up
# /usr/sbin/greconfig -i gre1 -v -s 212.25.240.34 -d 217.154.12.2
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/freebsd-gre-tunnels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

