<?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>肖建彬的博客 &#187; IP隧道</title>
	<atom:link href="http://www.xiaojb.com/archives/tag/ip%e9%9a%a7%e9%81%93/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xiaojb.com</link>
	<description>奋斗无止境 爱拼才会赢</description>
	<lastBuildDate>Sun, 16 Oct 2011 14:27:08 +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>2台linux服务器建立IP隧道</title>
		<link>http://www.xiaojb.com/archives/it/ip-tunnel.shtml</link>
		<comments>http://www.xiaojb.com/archives/it/ip-tunnel.shtml#comments</comments>
		<pubDate>Tue, 03 Apr 2007 13:07:32 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[IP隧道]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/archives/it/ip-tunnel.shtml</guid>
		<description><![CDATA[发信人: JulyClyde (七月), 信区: LinuxApp 标 题: Re: 昨天终于调通了ipip隧道了 发信站: 水木社区 (Tue Apr 3 11:43:21 2007), 站内 两台机器对连 双方分别执行 ip tunnel add 本地隧道设备 mode ipip remote 对方网卡IP ifconfig 本地隧道设备 本地隧道IP route add -host 对方隧道IP dev 本地隧道设备 就通了 ip tunnel这一句里面的remote指定的是隧道对方的IP地址，用于建立隧道。所以本机和对方必须能够实现三层连通 ifconfig是指定隧道设备的地址，也就是隧道内层IP报头的地址。其实这个设置为多少无所 谓，只要有就行了。窃以为，如果单纯做局域网互联，这里不设地址也可以 如果需要两个网络互联，需要开启net.ipv4.ip_forward功能，并且配置路由表 多年前czz在bjsing的服务器上留下的脚本还在 ip tunnel add cnbbs mode ipip local 61.167.120.130 remote 166.111.176.221 ttl 32 [...]]]></description>
			<content:encoded><![CDATA[<p>发信人: JulyClyde (七月), 信区: LinuxApp<br />
标  题: Re: 昨天终于调通了ipip隧道了<br />
发信站: 水木社区 (Tue Apr  3 11:43:21 2007), 站内</p>
<p>两台机器对连</p>
<p>双方分别执行<br />
ip tunnel add 本地隧道设备 mode ipip remote 对方网卡IP<br />
ifconfig 本地隧道设备 本地隧道IP<br />
route add -host 对方隧道IP dev 本地隧道设备</p>
<p>就通了<br />
ip tunnel这一句里面的remote指定的是隧道对方的IP地址，用于建立隧道。所以本机和对方必须能够实现三层连通<br />
ifconfig是指定隧道设备的地址，也就是隧道内层IP报头的地址。其实这个设置为多少无所<br />
谓，只要有就行了。窃以为，如果单纯做局域网互联，这里不设地址也可以</p>
<p>如果需要两个网络互联，需要开启net.ipv4.ip_forward功能，并且配置路由表</p>
<p>多年前czz在bjsing的服务器上留下的脚本还在<br />
ip tunnel add cnbbs mode ipip local 61.167.120.130 remote 166.111.176.221 ttl 32<br />
ifconfig cnbbs 192.168.0.2 pointopoint 61.167.120.131 netmask 255.255.255.255</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/it/ip-tunnel.shtml/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

