<?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>1129 &#187; brctl</title>
	<atom:link href="http://www.vi1129.com/tag/brctl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vi1129.com</link>
	<description>学无止境 我心飞翔</description>
	<lastBuildDate>Mon, 05 Jul 2010 15:30:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>网络桥接的使用方法</title>
		<link>http://www.vi1129.com/2010/01/bridge/</link>
		<comments>http://www.vi1129.com/2010/01/bridge/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 02:15:43 +0000</pubDate>
		<dc:creator>keykey</dc:creator>
				<category><![CDATA[知识随记]]></category>
		<category><![CDATA[brctl]]></category>
		<category><![CDATA[桥接]]></category>

		<guid isPermaLink="false">http://www.vi1129.com/?p=610</guid>
		<description><![CDATA[<p>连接两个局域网的方法除了路由外，比较简单的一个方法就是网络桥接了。这里将列出linux下创建网络桥接的一般步骤。</p>
<p>如下图的所示的网络环境中，中间的桥接计算机具有无线和有线网卡各一块，连接了两个局域网。在这个网络环境中两个局域网处于同一个网段，它可能是由桥接计算机上的DHCP自动分配的地址。这样做，最终产生的情况将是无线终端连接到了桥接计算机的无线网卡ath0(ath0工作在AP模式)，有线网局域网通过交换机连接到了桥接计算机的eth0(有线网卡)，连接在不同的两个物理网络上，通过桥接，使他们工作在同一个局域网中，同时，可以隔离两个物理网络，这是网络隔离中比较常见的手段。</p>
<p>linux下使用桥接功能必须确保已经安装了bridge-utils，桥接方法如下:</p>
<p>1.创建br0: brctl addbr br0</p>
<p>2.添加物理网口：brctl addif br0 eth0; brctl addif br0 ath0</p>
<p>3.配置br0 IP: ifconfig br0 192.168.1.100 netmask 255.255.255.0 up</p>
<p>4. 启用物理网络：ifconfig ath0 up; ifconfig eth0 up</p>
<p>5.修改DHCP配置，使之在br0网口上分配地址。</p>
<p>如需要，可以用iptables来隔离两个物理网络。</p>


<p>No related posts.</p>


No related posts.]]></description>
			<content:encoded><![CDATA[<p>连接两个局域网的方法除了路由外，比较简单的一个方法就是网络桥接了。这里将列出linux下创建网络桥接的一般步骤。</p>
<p>如下图的所示的网络环境中，中间的桥接计算机具有无线和有线网卡各一块，连接了两个局域网。在这个网络环境中两个局域网处于同一个网段，它可能是由桥接计算机上的DHCP自动分配的地址。这样做，最终产生的情况将是无线终端连接到了桥接计算机的无线网卡ath0(ath0工作在AP模式)，有线网局域网通过交换机连接到了桥接计算机的eth0(有线网卡)，连接在不同的两个物理网络上，通过桥接，使他们工作在同一个局域网中，同时，可以隔离两个物理网络，这是网络隔离中比较常见的手段。</p>
<p><a href="http://www.vi1129.com/wp-content/uploads/2010/01/brctl1.gif"><img class="alignleft size-full wp-image-609" title="brctl" src="http://www.vi1129.com/wp-content/uploads/2010/01/brctl1.gif" alt="brctl" width="360" height="171" /></a>linux下使用桥接功能必须确保已经安装了bridge-utils，桥接方法如下:</p>
<p>1.创建br0: brctl addbr br0</p>
<p>2.添加物理网口：brctl addif br0 eth0; brctl addif br0 ath0</p>
<p>3.配置br0 IP: ifconfig br0 192.168.1.100 netmask 255.255.255.0 up</p>
<p>4. 启用物理网络：ifconfig ath0 up; ifconfig eth0 up</p>
<p>5.修改DHCP配置，使之在br0网口上分配地址。</p>
<p>如需要，可以用iptables来隔离两个物理网络。</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.vi1129.com/2010/01/bridge/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
