<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 04/20/2015 10:20 AM,
<a class="moz-txt-link-abbreviated" href="mailto:wh.h@foxmail.com">wh.h@foxmail.com</a> wrote:<br>
</div>
<blockquote cite="mid:2015042022201347062321@foxmail.com"
type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }p { margin-top: 0px; margin-bottom: 0px; }div.foxdiv20150420220936035296 { }body { font-size: 10.5pt; font-family: 微软雅黑; color: rgb(0, 0, 0); line-height: 1.5; }</style>
<div><span></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px;
margin-left: 0.5em;">
<div class="FoxDiv20150420220936035296">
<div class="moz-cite-prefix"><br>
</div>
<blockquote cite="mid:201504191002476058644@foxmail.com"
type="cite" style="margin-top: 0px;">
<div><span></span><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves></w:TrackMoves>
<w:TrackFormatting></w:TrackFormatting>
<w:PunctuationKerning></w:PunctuationKerning>
<w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
<w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
<w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
<w:ValidateAgainstSchemas></w:ValidateAgainstSchemas>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF></w:DoNotPromoteQF>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>ZH-CN</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:SpaceForUL></w:SpaceForUL>
<w:BalanceSingleByteDoubleByteWidth></w:BalanceSingleByteDoubleByteWidth>
<w:DoNotLeaveBackslashAlone></w:DoNotLeaveBackslashAlone>
<w:ULTrailSpace></w:ULTrailSpace>
<w:DoNotExpandShiftReturn></w:DoNotExpandShiftReturn>
<w:AdjustLineHeightInTable></w:AdjustLineHeightInTable>
<w:BreakWrappedTables></w:BreakWrappedTables>
<w:SnapToGridInCell></w:SnapToGridInCell>
<w:WrapTextWithPunct></w:WrapTextWithPunct>
<w:UseAsianBreakRules></w:UseAsianBreakRules>
<w:DontGrowAutofit></w:DontGrowAutofit>
<w:SplitPgBreakAndParaMark></w:SplitPgBreakAndParaMark>
<w:DontVertAlignCellWithSp></w:DontVertAlignCellWithSp>
<w:DontBreakConstrainedForcedTables></w:DontBreakConstrainedForcedTables>
<w:DontVertAlignInTxbx></w:DontVertAlignInTxbx>
<w:Word11KerningPairs></w:Word11KerningPairs>
<w:CachedColBalance></w:CachedColBalance>
<w:UseFELayout></w:UseFELayout>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"></m:mathFont>
<m:brkBin m:val="before"></m:brkBin>
<m:brkBinSub m:val="--"></m:brkBinSub>
<m:smallFrac m:val="off"></m:smallFrac>
<m:dispDef></m:dispDef>
<m:lMargin m:val="0"></m:lMargin>
<m:rMargin m:val="0"></m:rMargin>
<m:defJc m:val="centerGroup"></m:defJc>
<m:wrapIndent m:val="1440"></m:wrapIndent>
<m:intLim m:val="subSup"></m:intLim>
<m:naryLim m:val="undOvr"></m:naryLim>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"></w:LsdException>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"></w:LsdException>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"></w:LsdException>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"></w:LsdException>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"></w:LsdException>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"></w:LsdException>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"></w:LsdException>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"></w:LsdException>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"></w:LsdException>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"></w:LsdException>
<w:LsdException Locked="false" Priority="39" Name="toc 1"></w:LsdException>
<w:LsdException Locked="false" Priority="39" Name="toc 2"></w:LsdException>
<w:LsdException Locked="false" Priority="39" Name="toc 3"></w:LsdException>
<w:LsdException Locked="false" Priority="39" Name="toc 4"></w:LsdException>
<w:LsdException Locked="false" Priority="39" Name="toc 5"></w:LsdException>
<w:LsdException Locked="false" Priority="39" Name="toc 6"></w:LsdException>
<w:LsdException Locked="false" Priority="39" Name="toc 7"></w:LsdException>
<w:LsdException Locked="false" Priority="39" Name="toc 8"></w:LsdException>
<w:LsdException Locked="false" Priority="39" Name="toc 9"></w:LsdException>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"></w:LsdException>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"></w:LsdException>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"></w:LsdException>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"></w:LsdException>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"></w:LsdException>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"></w:LsdException>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"></w:LsdException>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"></w:LsdException>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"></w:LsdException>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"></w:LsdException>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"></w:LsdException>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"></w:LsdException>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"></w:LsdException>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"></w:LsdException>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"></w:LsdException>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"></w:LsdException>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"></w:LsdException>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"></w:LsdException>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"></w:LsdException>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"></w:LsdException>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"></w:LsdException>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"></w:LsdException>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"></w:LsdException>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"></w:LsdException>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"></w:LsdException>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"></w:LsdException>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"></w:LsdException>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"></w:LsdException>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"></w:LsdException>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"></w:LsdException>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"></w:LsdException>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"></w:LsdException>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"></w:LsdException>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"></w:LsdException>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"></w:LsdException>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"></w:LsdException>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"></w:LsdException>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"></w:LsdException>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"></w:LsdException>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"></w:LsdException>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"></w:LsdException>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"></w:LsdException>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"></w:LsdException>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"></w:LsdException>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"></w:LsdException>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"></w:LsdException>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"></w:LsdException>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"></w:LsdException>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"></w:LsdException>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"></w:LsdException>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"></w:LsdException>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"></w:LsdException>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"></w:LsdException>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"></w:LsdException>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"></w:LsdException>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"></w:LsdException>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"></w:LsdException>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"></w:LsdException>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"></w:LsdException>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"></w:LsdException>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"></w:LsdException>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"></w:LsdException>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"></w:LsdException>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"></w:LsdException>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"></w:LsdException>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"></w:LsdException>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"></w:LsdException>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"></w:LsdException>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"></w:LsdException>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"></w:LsdException>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"></w:LsdException>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"></w:LsdException>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"></w:LsdException>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"></w:LsdException>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"></w:LsdException>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"></w:LsdException>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"></w:LsdException>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"></w:LsdException>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"></w:LsdException>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"></w:LsdException>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"></w:LsdException>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"></w:LsdException>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"></w:LsdException>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"></w:LsdException>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"></w:LsdException>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"></w:LsdException>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"></w:LsdException>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"></w:LsdException>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"></w:LsdException>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"></w:LsdException>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"></w:LsdException>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"></w:LsdException>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"></w:LsdException>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"></w:LsdException>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"></w:LsdException>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"></w:LsdException>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"></w:LsdException>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"></w:LsdException>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"></w:LsdException>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"></w:LsdException>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"></w:LsdException>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"></w:LsdException>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"></w:LsdException>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"></w:LsdException>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"></w:LsdException>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"></w:LsdException>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"></w:LsdException>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"></w:LsdException>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"></w:LsdException>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"></w:LsdException>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"></w:LsdException>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"></w:LsdException>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"></w:LsdException>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"></w:LsdException>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"></w:LsdException>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"></w:LsdException>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"></w:LsdException>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"></w:LsdException>
</w:LatentStyles>
</xml><![endif]-->
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:普通表格;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.5pt;
mso-bidi-font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:宋体;
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;
mso-font-kerning:1.0pt;}
</style>
<![endif]-->
<!--StartFragment-->
<p class="MsoNormal" style="text-align: justify; margin:
0px 0cm; font-size: 10.5pt; font-family: Calibri,
sans-serif;" align="center"><span lang="EN-US">inquiry
about differences between the tap and the vnet in the
virt-manager</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"><br>
</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">Greetings!</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">I encounter a problem
about the network when using virt-manager to create
and run a VM.</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">when I want to establish
a network bridge for the guest OS, I generally use two
kinds of ways described as fellow :</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">First method
: create a bridge with the help of linux
commad: brctl</span></b><span lang="EN-US">, or</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">Second method :
using virt-manager <o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">(1) create a bridge
with the help of linux commad: brctl<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">I use a script to
establish a bridge, there are many script examples on
the web to establish a bridge. when I restart the
network service, I get the bridge :</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">1.1 create network
bridge <o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">[root@localhost ~]#
ifconfig </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">br0 Link
encap:Ethernet HWaddr C2:CD:89:61:2C:F0 </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"> inet
addr:192.168.1.189 Bcast:192.168.1.255
Mask:255.255.255.0</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"> inet6 addr:
fe80::c0cd:89ff:fe61:2cf0/64 Scope:Link</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"> UP BROADCAST
RUNNING MULTICAST MTU:1500 Metric:1</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"> RX packets:0
errors:0 dropped:0 overruns:0 frame:0</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"> TX packets:16
errors:0 dropped:0 overruns:0 carrier:0</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"> collisions:0
txqueuelen:0 </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"> RX bytes:0
(0.0 b) TX bytes:1080 (1.0 KiB)</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">eth2 Link
encap:Ethernet HWaddr 00:25:90:8E:C0:F0 </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"> inet
addr:172.16.1.189 Bcast:172.16.255.255
Mask:255.255.0.0</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"> inet6 addr:
fe80::225:90ff:fe8e:c0f0/64 Scope:Link</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"> UP BROADCAST
RUNNING MULTICAST MTU:1500 Metric:1</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"> RX
packets:918998 errors:0 dropped:0 overruns:0 frame:0</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"> TX
packets:2033 errors:0 dropped:0 overruns:0 carrier:0</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"> collisions:0
txqueuelen:1000 </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"> RX
bytes:84486598 (80.5 MiB) TX bytes:148116 (144.6 KiB)</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">
Memory:fbe20000-fbe3ffff</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">[root@localhost ~]#
brctl show</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">bridge name bridge
id STP enabled
interfaces</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">br0
8000.0025908ec0f0 no </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">virbr0
8000.525400b1de42 yes
virbr0-nic</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">1.2 add bridge
interface <o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">the eth2 device is a
physical ethernet device,</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">[root@localhost ~]#
brctl addif br0 eth2</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">[root@localhost ~]#
brctl show</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">bridge name bridge
id STP enabled
interfaces</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">br0
8000.0025908ec0f0 no
eth2</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">virbr0
8000.525400b1de42 yes
virbr0-nic</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">1.3 create tap and
add it to the bridge <o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">create tap:<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">tunctl -t tap0 -u root</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">brctl addif br0 tap0</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">ifconfig tap0 up</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">chmod a+rw /dev/net/tun</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">echo 1 >
/proc/sys/net/ipv4/ip_forward</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">iptables -t nat -A
POSTROUTING -j MASQUERADE</span></p>
</div>
</blockquote>
<br>
The previous two lines do nothing for a bridge'd setup.
Neither the setting of ip_forward nor a POSTROUTING rule will
have any effect on packets that are bridged directly to a
physical device (i.e. L2) - they only take effect on packets
that are routed via the host's IP stack (i.e. L3).</div>
<div class="FoxDiv20150420220936035296"><br>
</div>
<div class="FoxDiv20150420220936035296">///////////////////////////</div>
<div class="FoxDiv20150420220936035296">weihua: </div>
<div class="FoxDiv20150420220936035296">thanks for you
suggestion !</div>
<div class="FoxDiv20150420220936035296">I want to use "ping"
command to test network state , so I make these setting .</div>
<div class="FoxDiv20150420220936035296">///////////////////////////<br>
</div>
</blockquote>
</blockquote>
<br>
Those will also do nothing for the ability of ping to work. As I
said, they only have an effect on packets that are L3 *routed* by
the host, but you have the bridge directly connected to a physical
device (and presumably the guest has an IP address that is on the
physical network) so all the guest traffic will go directly across
the bridge to the host's ethernet and out onto the physical network
- everything is L2 forwarding, no IP routing involved.<br>
<br>
<br>
<blockquote cite="mid:2015042022201347062321@foxmail.com"
type="cite">
<blockquote style="margin-top: 0px; margin-bottom: 0px;
margin-left: 0.5em;">
<div class="FoxDiv20150420220936035296"> <br>
<blockquote cite="mid:201504191002476058644@foxmail.com"
type="cite" style="margin-top: 0px;">
<div>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">add it to the bridge
<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">[root@localhost ~]#
brctl addif br0 tap0</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">[root@localhost ~]#
brctl show</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">bridge name bridge
id STP enabled
interfaces</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">br0
8000.0025908ec0f0 no
eth2</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">
tap0</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">virbr0
8000.525400b1de42 yes
virbr0-nic</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">[root@localhost
kvm_img]# ifconfig </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US">br0 Link encap:Ethernet HWaddr
00:25:90:8E:C0:F0 </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> inet addr:172.16.1.189
Bcast:172.16.255.255 Mask:255.255.0.0</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> inet6 addr:
fe80::c0cd:89ff:fe61:2cf0/64 Scope:Link</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> UP BROADCAST RUNNING MULTICAST
MTU:1500 Metric:1</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> RX packets:37947 errors:0
dropped:0 overruns:0 frame:0</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> TX packets:10485 errors:0
dropped:0 overruns:0 carrier:0</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> collisions:0 txqueuelen:0 </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> RX bytes:2581300 (2.4 MiB) TX
bytes:40996927 (39.0 MiB)</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US">eth2 Link encap:Ethernet HWaddr
00:25:90:8E:C0:F0 </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> inet6 addr:
fe80::225:90ff:fe8e:c0f0/64 Scope:Link</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> UP BROADCAST RUNNING MULTICAST
MTU:1500 Metric:1</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> RX packets:957962 errors:0
dropped:34 overruns:0 frame:0</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> TX packets:38466 errors:0
dropped:0 overruns:0 carrier:0</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> collisions:0 txqueuelen:1000 </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> RX bytes:87721507 (83.6 MiB)
TX bytes:42551007 (40.5 MiB)</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> Memory:fbe20000-fbe3ffff </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US">tap0 Link encap:Ethernet HWaddr
F2:55:FC:F8:95:DC </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> inet6 addr:
fe80::f055:fcff:fef8:95dc/64 Scope:Link</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> UP BROADCAST RUNNING MULTICAST
MTU:1500 Metric:1</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> RX packets:11 errors:0
dropped:0 overruns:0 frame:0</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> TX packets:1328 errors:0
dropped:0 overruns:0 carrier:0</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> collisions:0 txqueuelen:500 </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-family: Calibri, sans-serif;"><span
lang="EN-US"> RX bytes:846 (846.0 b) TX
bytes:173159 (169.1 KiB)</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">1.4 boot the guest
(using the tap0)<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span style="mso-bidi-font-size:10.5pt;
font-family:"Courier New"" lang="EN-US">kvm
-boot c -localtime -m 4G -hda
/home/kvm_img/centos6p4.img -net nic -net
tap,ifname=tap0,script=no -enable-kvm</span></p>
</div>
</blockquote>
<br>
I haven't seen anything in this case where you attach the
host's eth2 to the bridge. (I'm not sure why you would want to
do all of this by hand rather than using libvirt and letting
it take care of the details for you, but that's not what you
asked...)</div>
<div class="FoxDiv20150420220936035296"><br>
</div>
<div class="FoxDiv20150420220936035296">
<div class="FoxDiv20150420220936035296">///////////////////////////</div>
<div class="FoxDiv20150420220936035296">weihua: </div>
<div class="FoxDiv20150420220936035296">I use this command to
add it to the bridge :</div>
<div class="FoxDiv20150420220936035296">
<blockquote cite="mid:201504191002476058644@foxmail.com"
type="cite">
<p class="MsoNormal" style="margin-right: 0cm;
margin-left: 0cm; text-align: justify; font-size:
10.5pt; font-family: Calibri, sans-serif;"><span
lang="EN-US"> brctl addif br0 eth2</span></p>
<p class="MsoNormal" style="margin-right: 0cm;
margin-left: 0cm; text-align: justify; font-size:
10.5pt; font-family: Calibri, sans-serif;"><span
lang="EN-US"><span style="font-size: 10.5pt;
line-height: 1.5;">[root@localhost ~]# brctl show</span></span></p>
</blockquote>
</div>
</div>
</blockquote>
</blockquote>
<br>
Right. Derp. I scanned through the output a half dozen times looking
for that and for some reason skipped over it *every* time :-/<br>
<br>
<br>
<blockquote cite="mid:2015042022201347062321@foxmail.com"
type="cite">
<blockquote style="margin-top: 0px; margin-bottom: 0px;
margin-left: 0.5em;">
<div class="FoxDiv20150420220936035296">
<div class="FoxDiv20150420220936035296">
<blockquote cite="mid:201504191002476058644@foxmail.com"
type="cite">
<p class="MsoNormal" style="margin-right: 0cm;
margin-left: 0cm; text-align: justify; font-size:
10.5pt; font-family: Calibri, sans-serif;"><span
lang="EN-US">bridge name bridge id
STP enabled interfaces</span></p>
<p class="MsoNormal" style="margin-right: 0cm;
margin-left: 0cm; text-align: justify; font-size:
10.5pt; font-family: Calibri, sans-serif;"><span
lang="EN-US">br0
8000.0025908ec0f0 no
eth2</span></p>
<p class="MsoNormal" style="margin-right: 0cm;
margin-left: 0cm; text-align: justify; font-size:
10.5pt; font-family: Calibri, sans-serif;"><span
lang="EN-US">
tap0</span></p>
<p class="MsoNormal" style="margin-right: 0cm;
margin-left: 0cm; text-align: justify; font-size:
10.5pt; font-family: Calibri, sans-serif;"><span
lang="EN-US">virbr0
8000.525400b1de42 yes
virbr0-nic</span></p>
<p class="MsoNormal" style="margin-right: 0cm;
margin-left: 0cm; text-align: justify; font-size:
10.5pt; font-family: Calibri, sans-serif;"><br>
</p>
<p class="MsoNormal" style="margin-right: 0cm;
margin-left: 0cm; text-align: justify; font-size:
10.5pt;"><font face="Arial">what I want to do this by
hand is that I want to manage the VM by script
commands . But the virt-manager is a graphic tool.</font></p>
<p class="MsoNormal" style="margin-right: 0cm;
margin-left: 0cm; text-align: justify; font-size:
10.5pt;"><font face="Arial"><br>
</font></p>
<p class="MsoNormal" style="margin-right: 0cm;
margin-left: 0cm; text-align: justify; font-size:
10.5pt;"><font face="Arial">Would you please tell me
something about the differences between the tap
created by linux command and the vnet device created
by libvirt? so I could write some scripts to make the
tap the same as the vnet device .</font></p>
<p class="MsoNormal" style="margin-right: 0cm;
margin-left: 0cm; text-align: justify; font-size:
10.5pt;"><font face="Arial">thanks a lot!</font></p>
</blockquote>
</div>
<div class="FoxDiv20150420220936035296">///////////////////////////</div>
<br>
<blockquote cite="mid:201504191002476058644@foxmail.com"
type="cite" style="margin-top: 0px;">
<div>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span style="mso-bidi-font-size:10.5pt;
font-family:"Courier New"" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">(2) using
virt-manager<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><b><span lang="EN-US"><font
face="宋体">2.1 create network bridge <o:p></o:p></font></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体">[root@localhost ~]# ifconfig </font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体">br0 Link encap:Ethernet HWaddr
C2:CD:89:61:2C:F0 </font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> inet addr:192.168.1.189
Bcast:192.168.1.255 Mask:255.255.255.0</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> inet6 addr:
fe80::c0cd:89ff:fe61:2cf0/64 Scope:Link</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> UP BROADCAST RUNNING MULTICAST
MTU:1500 Metric:1</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> RX packets:0 errors:0 dropped:0
overruns:0 frame:0</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> TX packets:16 errors:0 dropped:0
overruns:0 carrier:0</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> collisions:0 txqueuelen:0 </font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> RX bytes:0 (0.0 b) TX
bytes:1080 (1.0 KiB)</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体">eth2 Link encap:Ethernet HWaddr
00:25:90:8E:C0:F0 </font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> inet addr:172.16.1.189
Bcast:172.16.255.255 Mask:255.255.0.0</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> inet6 addr:
fe80::225:90ff:fe8e:c0f0/64 Scope:Link</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> UP BROADCAST RUNNING MULTICAST
MTU:1500 Metric:1</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> RX packets:918998 errors:0
dropped:0 overruns:0 frame:0</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> TX packets:2033 errors:0
dropped:0 overruns:0 carrier:0</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> collisions:0 txqueuelen:1000 </font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> RX bytes:84486598 (80.5 MiB) TX
bytes:148116 (144.6 KiB)</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> Memory:fbe20000-fbe3ffff</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">[root@localhost ~]#
brctl show</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">bridge name bridge
id STP enabled
interfaces</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">br0
8000.0025908ec0f0 </span><span
style="background-color: rgba(0, 0, 0, 0);
font-family: 'Calibri, sans-serif'; font-size: 10.5pt;
line-height: 1.5;"> </span><span style="font-size:
10.5pt; line-height: 1.5; background-color: window;">no</span><span
style="font-size: 10.5pt; line-height: 1.5;
background-color: window;"> </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">virbr0
8000.525400b1de42 yes
virbr0-nic</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">2.2 add bridge
interface <o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">the eth2 device is a
physical ethernet device,</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">[root@localhost ~]#
brctl addif br0 eth2</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">[root@localhost ~]#
brctl show</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">bridge name bridge
id STP enabled
interfaces</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">br0
8000.0025908ec0f0 no
eth2</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">virbr0
8000.525400b1de42 yes
virbr0-nic</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">2.3 run the
virt-manager and select the NIC option<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">I find the bridge
created above , configure it as fellow :</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">in "<b>Virtual Network
Interface</b> " setting:</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">Source device:
Host device tap0 (bridge br0)</span></p>
</div>
</blockquote>
</div>
</blockquote>
</blockquote>
<br>
I would figure that "Host device tap0" would make a macvtap
connection to tap0 (which would probably work, but be inefficient;
anyway, since the tap device created by libvirt is called "vnet0"
rather than "macvtap0", I know that's not the case, but *something*
doesn't add up). What you want to select would look something like
this on the version of virt-manager I'm using: "Bridge br0: Host
device eth2".<br>
<br>
<br>
<blockquote cite="mid:2015042022201347062321@foxmail.com"
type="cite">
<blockquote style="margin-top: 0px; margin-bottom: 0px;
margin-left: 0.5em;">
<div class="FoxDiv20150420220936035296">
<blockquote cite="mid:201504191002476058644@foxmail.com"
type="cite" style="margin-top: 0px;">
<div>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">Device model:
e1000</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">Mac address:
52:54:00:84:E3:62</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">2.4 I start the VM
using virt-manager<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">I get a vnet0 device
created by virt-manager,</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体">[root@localhost ~]# ifconfig </font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体">br0 Link encap:Ethernet HWaddr
00:25:90:8E:C0:F0 </font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> inet addr:172.16.1.189
Bcast:172.16.255.255 Mask:255.255.0.0</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> inet6 addr:
fe80::c0cd:89ff:fe61:2cf0/64 Scope:Link</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> UP BROADCAST RUNNING MULTICAST
MTU:1500 Metric:1</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> RX packets:62160 errors:0
dropped:1 overruns:0 frame:0</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> TX packets:22071 errors:0
dropped:0 overruns:0 carrier:0</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> collisions:0 txqueuelen:0 </font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> RX bytes:4007196 (3.8 MiB) TX
bytes:59626981 (56.8 MiB)</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体">eth2 Link encap:Ethernet HWaddr
00:25:90:8E:C0:F0 </font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> inet6 addr:
fe80::225:90ff:fe8e:c0f0/64 Scope:Link</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> UP BROADCAST RUNNING MULTICAST
MTU:1500 Metric:1</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> RX packets:982209 errors:0
dropped:47 overruns:0 frame:0</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> TX packets:61101 errors:0
dropped:0 overruns:0 carrier:0</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> collisions:0 txqueuelen:1000 </font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> RX bytes:89496644 (85.3 MiB) TX
bytes:61778801 (58.9 MiB)</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> Memory:fbe20000-fbe3ffff </font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体">vnet0 Link encap:Ethernet HWaddr
FE:54:00:84:E3:62 </font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> inet6 addr:
fe80::fc54:ff:fe84:e362/64 Scope:Link</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> UP BROADCAST RUNNING MULTICAST
MTU:1500 Metric:1</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> RX packets:5 errors:0 dropped:0
overruns:0 frame:0</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> TX packets:114 errors:0
dropped:0 overruns:0 carrier:0</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> collisions:0 txqueuelen:500 </font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt;"><span lang="EN-US"><font
face="宋体"> RX bytes:670 (670.0 b) TX
bytes:13720 (13.3 KiB)</font></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">both of the methods
above seems that the network of guest OS is OK at most
of environments, and I can get the attributes of the
virtual network device . They are seemed to be the
same.</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">about the tap0</span></b><b><span
style="font-family:宋体;mso-ascii-font-family:Calibri;
mso-hansi-font- family:Calibri">:</span><span
lang="EN-US"><o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">[root@localhost ~]#
ethtool -i tap0</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">driver: tun</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">version: 1.6</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">firmware-version: </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">bus-info: tap</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">supports-statistics: no</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">supports-test: no</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">supports-eeprom-access:
no</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">supports-register-dump:
no</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">supports-priv-flags: no</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">about the vnet0
created by virt-manager :<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">[root@localhost ~]#
ethtool -i vnet0<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">driver: tun</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">version: 1.6</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">firmware-version: </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">bus-info: tap</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">supports-statistics: no</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">supports-test: no</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">supports-eeprom-access:
no</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">supports-register-dump:
no</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">supports-priv-flags: no</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">but the action
between tap and vnet is not exactly the same</span></b><b><span
style="font-family:宋体;mso-ascii-font-family:
Calibri;mso-hansi-font-family:Calibri">!</span><span
lang="EN-US">I will describe it in the following.<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">this is my project </span></b><span
lang="EN-US"><a moz-do-not-send="true"
href="http://www.iciba.com/application_environment"><b><span
style="color:windowtext;text-decoration:none;text-underline:none">environment</span></b></a><b>:<o:p></o:p></b></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">hardware : intel xeon E5
2600 server from supermicro </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">host OS: centos 6.4
(kernel version is changed to 3.15.10 by me)</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">virtual software :
KVM+qemu 2.1.3</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">guest OS: centos 6.4
(kernel is not changed : 2.6.32 64bit)</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">when I establish the
network by <b>the first method: create a bridge with
the help of Linux commad: brctl</b>, tap0 device is
created in the host and assigned to the guest OS. tap0
device gets a name “eth0” in the guest OS.</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">I use “ping ” command to
test network state . I get the following result :</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">concept explanation :
<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">local host: the OS where
the guest OS is running </span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">remote host: another
server which is connected to the local host using
ethernet network .</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">and this is my results:</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">ping local host from
guest OS is OK, I get reply from local host;</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">ping remote host from
local host is OK, I get reply from remote host;</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span style="color:red" lang="EN-US">ping
remote host from guest OS is not OK, I don’t get any
reply from remote host; and this is my question.</span></b></p>
</div>
</blockquote>
</div>
</blockquote>
</blockquote>
<br>
<b>Usually this behavior indicates that the following sysctl is set
to 1:<br>
<br>
</b><br>
net.bridge.bridge-nf-call-iptables<br>
<br>
You can check for this with: "sysctl
net.bridge.bridge-nf-call-iptables". If it shows "1" set it to 0
like this:<br>
<br>
sysctl -w net.bridge.bridge-nf-call-iptable=1<br>
<br>
But again I wonder why you even want to go to the trouble of
creating your own tap devices and constructing a qemu commandline,
when libvirt will do all of that for you.<br>
<br>
<br>
<blockquote cite="mid:2015042022201347062321@foxmail.com"
type="cite">
<blockquote style="margin-top: 0px; margin-bottom: 0px;
margin-left: 0.5em;">
<div class="FoxDiv20150420220936035296">
<blockquote cite="mid:201504191002476058644@foxmail.com"
type="cite" style="margin-top: 0px;">
<div>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span style="color:red" lang="EN-US"><o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">when I establish the
network by <b>the second method: using virt-manager</b>,
at this time , vnet0 device is created in the host and
assigned to the guest OS. vnet0 device gets a name
“eth0” in the guest OS.</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">I also use “ping ”
command to test network state . I get the following
result :</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">ping local host from
guest OS is OK, I get reply from local host;</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">ping remote host from
local host is OK, I get reply from remote host;</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span style="color:red" lang="EN-US">ping
remote host from guest OS is OK, I get reply from
remote host;<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><b><span lang="EN-US">my question is :</span></b><span
lang="EN-US"><br>
<span style="color:red">why I cannot get reply when I
ping <b>remote host from guest OS using the first
method?</b><o:p></o:p></span></span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">I use the same bridge:
br0, so I think that the bridge: br0 is not
responsible for the fault. and I have also stop the
firewall .</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US">I guess the reason is
that there are some differences between the tap device
created by linux command and vnet device created by
virt-manager. could you please kindly give my some
advices to solve the problem ?</span></p>
<p class="MsoNormal" style="margin: 0px 0cm; text-align:
justify; font-size: 10.5pt; font-family: Calibri,
sans-serif;"><span lang="EN-US"><o:p> </o:p></span></p>
<!--EndFragment--></div>
<div style="font-size: 13px;">I would be grateful if you
could give me some advice . look forward to your reply !</div>
<div><br>
</div>
<div>weihua</div>
<hr style="width: 210px; height: 1px;" align="left"
color="#b5c4df" size="1"><br>
</blockquote>
<br>
</div>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
libvirt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/libvirt-users">https://www.redhat.com/mailman/listinfo/libvirt-users</a></pre>
</blockquote>
<br>
</body>
</html>