亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? network-routing.html

?? FreeBSD安裝說明概述 FreeBSD 提供了一個以文字為主
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta name="generator" content="HTML Tidy, see www.w3.org" /><title>Gateways and Routes</title><meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7" /><link rel="HOME" title="FreeBSD 使用手冊" href="index.html" /><link rel="UP" title="Advanced Networking" href="advanced-networking.html" /><link rel="PREVIOUS" title="Advanced Networking" href="advanced-networking.html" /><link rel="NEXT" title="Wireless Networking" href="network-wireless.html" /><link rel="STYLESHEET" type="text/css" href="docbook.css" /><meta http-equiv="Content-Type" content="text/html; charset=GB2312" /></head><body class="SECT1" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"alink="#0000FF"><div class="NAVHEADER"><table summary="Header navigation table" width="100%" border="0" cellpadding="0"cellspacing="0"><tr><th colspan="3" align="center">FreeBSD 使用手冊</th></tr><tr><td width="10%" align="left" valign="bottom"><a href="advanced-networking.html"accesskey="P">Prev</a></td><td width="80%" align="center" valign="bottom">Chapter 19. Advanced Networking</td><td width="10%" align="right" valign="bottom"><a href="network-wireless.html"accesskey="N">Next</a></td></tr></table><hr align="LEFT" width="100%" /></div><div class="SECT1"><h1 class="SECT1"><a id="NETWORK-ROUTING" name="NETWORK-ROUTING">19.2. Gateways andRoutes</a></h1><i class="AUTHORGROUP"><span class="CONTRIB">Contributed by</span> Coranth Gryphon.</i> <p>For one machine to be able to find another over a network, there must be a mechanismin place to describe how to get from one to the other. This is called <iclass="FIRSTTERM">routing</i>. A ``route'' is a defined pair of addresses: a``destination'' and a ``gateway''. The pair indicates that if you are trying to get tothis <span class="emphasis"><i class="EMPHASIS">destination</i></span>, communicatethrough this <span class="emphasis"><i class="EMPHASIS">gateway</i></span>. There arethree types of destinations: individual hosts, subnets, and ``default''. The ``defaultroute'' is used if none of the other routes apply. We will talk a little bit more aboutdefault routes later on. There are also three types of gateways: individual hosts,interfaces (also called ``links''), and Ethernet hardware addresses (MAC addresses).</p><div class="SECT2"><h2 class="SECT2"><a id="AEN25235" name="AEN25235">19.2.1. An Example</a></h2><p>To illustrate different aspects of routing, we will use the following example from <ttclass="COMMAND">netstat</tt>:</p><pre class="SCREEN"><samp class="PROMPT">%</samp> <kbd class="USERINPUT">netstat -r</kbd>Routing tablesDestination      Gateway            Flags     Refs     Use     Netif Expiredefault          outside-gw         UGSc       37      418      ppp0localhost        localhost          UH          0      181       lo0test0            0:e0:b5:36:cf:4f   UHLW        5    63288       ed0     7710.20.30.255     link#1             UHLW        1     2421example.com      link#1             UC          0        0host1            0:e0:a8:37:8:1e    UHLW        3     4601       lo0host2            0:e0:a8:37:8:1e    UHLW        0        5       lo0 =&#62;host2.example.com link#1             UC          0        0224              link#1             UC          0        0</pre><p>The first two lines specify the default route (which we will cover in the <ahref="network-routing.html#NETWORK-ROUTING-DEFAULT">next section</a>) and the <ttclass="HOSTID">localhost</tt> route.</p><p>The interface (<var class="LITERAL">Netif</var> column) that this routing tablespecifies to use for <var class="LITERAL">localhost</var> is <ttclass="DEVICENAME">lo0</tt>, also known as the loopback device. This says to keep alltraffic for this destination internal, rather than sending it out over the LAN, since itwill only end up back where it started.</p><p>The next thing that stands out are the addresses beginning with <ttclass="HOSTID">0:e0:</tt>. These are Ethernet hardware addresses, which are also known asMAC addresses. FreeBSD will automatically identify any hosts (<ttclass="HOSTID">test0</tt> in the example) on the local Ethernet and add a route for thathost, directly to it over the Ethernet interface, <tt class="DEVICENAME">ed0</tt>. Thereis also a timeout (<var class="LITERAL">Expire</var> column) associated with this type ofroute, which is used if we fail to hear from the host in a specific amount of time. Whenthis happens, the route to this host will be automatically deleted. These hosts areidentified using a mechanism known as RIP (Routing Information Protocol), which figuresout routes to local hosts based upon a shortest path determination.</p><p>FreeBSD will also add subnet routes for the local subnet (<ttclass="HOSTID">10.20.30.255</tt> is the broadcast address for the subnet <ttclass="HOSTID">10.20.30</tt>, and <tt class="HOSTID">example.com</tt> is the domain nameassociated with that subnet). The designation <var class="LITERAL">link#1</var> refers tothe first Ethernet card in the machine. You will notice no additional interface isspecified for those.</p><p>Both of these groups (local network hosts and local subnets) have their routesautomatically configured by a daemon called <b class="APPLICATION">routed</b>. If this isnot run, then only routes which are statically defined (i.e. entered explicitly) willexist.</p><p>The <var class="LITERAL">host1</var> line refers to our host, which it knows byEthernet address. Since we are the sending host, FreeBSD knows to use the loopbackinterface (<tt class="DEVICENAME">lo0</tt>) rather than sending it out over the Ethernetinterface.</p><p>The two <var class="LITERAL">host2</var> lines are an example of what happens when weuse an <span class="CITEREFENTRY"><span class="REFENTRYTITLE">ifconfig</span>(8)</span>alias (see the section on Ethernet for reasons why we would do this). The <varclass="LITERAL">=&gt;</var> symbol after the <tt class="DEVICENAME">lo0</tt> interfacesays that not only are we using the loopback (since this address also refers to the localhost), but specifically it is an alias. Such routes only show up on the host thatsupports the alias; all other hosts on the local network will simply have a <varclass="LITERAL">link#1</var> line for such routes.</p><p>The final line (destination subnet <var class="LITERAL">224</var>) deals withmulticasting, which will be covered in another section.</p><p>Finally, various attributes of each route can be seen in the <varclass="LITERAL">Flags</var> column. Below is a short table of some of these flags andtheir meanings:</p><div class="INFORMALTABLE"><a id="AEN25285" name="AEN25285"></a><table border="0" frame="void" class="CALSTABLE"><col /><col /><tbody><tr><td>U</td><td>Up: The route is active.</td></tr><tr><td>H</td><td>Host: The route destination is a single host.</td></tr><tr><td>G</td><td>Gateway: Send anything for this destination on to this remote system, which willfigure out from there where to send it.</td></tr><tr><td>S</td><td>Static: This route was configured manually, not automatically generated by thesystem.</td></tr><tr><td>C</td><td>Clone: Generates a new route based upon this route for machines we connect to. Thistype of route is normally used for local networks.</td></tr><tr><td>W</td><td>WasCloned: Indicated a route that was auto-configured based upon a local area network(Clone) route.</td></tr><tr><td>L</td><td>Link: Route involves references to Ethernet hardware.</td></tr></tbody></table></div></div><div class="SECT2"><h2 class="SECT2"><a id="NETWORK-ROUTING-DEFAULT" name="NETWORK-ROUTING-DEFAULT">19.2.2.Default Routes</a></h2><p>When the local system needs to make a connection to a remote host, it checks therouting table to determine if a known path exists. If the remote host falls into a subnetthat we know how to reach (Cloned routes), then the system checks to see if it canconnect along that interface.</p><p>If all known paths fail, the system has one last option: the ``default'' route. Thisroute is a special type of gateway route (usually the only one present in the system),and is always marked with a <var class="LITERAL">c</var> in the flags field. For hosts ona local area network, this gateway is set to whatever machine has a direct connection tothe outside world (whether via PPP link, DSL, cable modem, T1, or another networkinterface).</p><p>If you are configuring the default route for a machine which itself is functioning asthe gateway to the outside world, then the default route will be the gateway machine atyour Internet Service Provider's (ISP) site.</p><p>Let us look at an example of default routes. This is a common configuration:</p><p class="LITERALLAYOUT">[Local2]&nbsp;&nbsp;&lt;--ether--&gt;&nbsp;&nbsp;[Local1]&nbsp;&nbsp;&lt;--PPP--&gt;&nbsp;[ISP-Serv]&nbsp;&nbsp;&lt;--ether--&gt;&nbsp;&nbsp;[T1-GW]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p><p>The hosts <tt class="HOSTID">Local1</tt> and <tt class="HOSTID">Local2</tt> are atyour site. <tt class="HOSTID">Local1</tt> is connected to an ISP via a dial up PPPconnection. This PPP server computer is connected through a local area network to anothergateway computer through an external interface to the ISPs Internet feed.</p><p>The default routes for each of your machines will be:</p><div class="INFORMALTABLE"><a id="AEN25325" name="AEN25325"></a><table border="0" frame="void" class="CALSTABLE"><col />

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩国产高清在线| 日日摸夜夜添夜夜添精品视频| 中文字幕一区日韩精品欧美| 亚洲国产精品一区二区久久| 韩国成人在线视频| 欧美三级韩国三级日本一级| 国产午夜精品久久久久久免费视 | 中文字幕在线一区| 91麻豆免费看| 欧美xxx久久| 五月天精品一区二区三区| av中文字幕亚洲| 欧美videofree性高清杂交| 亚洲人xxxx| 成人国产精品免费观看视频| 日韩午夜在线播放| 亚洲第一精品在线| 色屁屁一区二区| 国产欧美日韩不卡免费| 久久精品国产一区二区| 欧美日韩亚洲综合一区二区三区| 中文字幕中文字幕一区二区| 国产在线麻豆精品观看| 日韩三级.com| 日本午夜精品视频在线观看 | 青青青爽久久午夜综合久久午夜| 亚洲一区在线电影| 成人综合婷婷国产精品久久蜜臀| 一区二区三区成人| 成人看片黄a免费看在线| xfplay精品久久| 看电影不卡的网站| 欧美一区国产二区| 热久久免费视频| 日韩一区二区三区视频在线观看 | 成人福利电影精品一区二区在线观看| 精品国产露脸精彩对白| 另类小说综合欧美亚洲| 日韩一级片网址| 蜜臀va亚洲va欧美va天堂| 日韩一二三区视频| 日本伊人午夜精品| 精品精品国产高清a毛片牛牛 | 亚洲综合久久久久| 亚洲成人av资源| 欧美日韩精品高清| 香蕉久久一区二区不卡无毒影院 | 中文字幕精品在线不卡| 欧美日韩在线播放三区四区| 亚洲综合在线视频| 在线播放欧美女士性生活| 日韩激情一二三区| 精品欧美乱码久久久久久1区2区| 精品一区二区日韩| 国产精品私人影院| 色天天综合色天天久久| 亚洲第一主播视频| 久久男人中文字幕资源站| 成人午夜电影网站| 一个色妞综合视频在线观看| 538prom精品视频线放| 久久99精品久久只有精品| 欧美国产精品一区二区| 在线观看av不卡| 久久国产精品第一页| 国产女同性恋一区二区| 在线观看www91| 韩国欧美国产1区| 一区二区三区日韩欧美精品| 欧美一区二区不卡视频| 国产98色在线|日韩| 亚洲成人高清在线| 国产日韩精品一区二区三区在线| 91免费视频观看| 精品在线播放午夜| 一区二区三区四区在线免费观看| 日韩欧美一区二区久久婷婷| 91在线精品一区二区| 青青草原综合久久大伊人精品 | 日本不卡视频在线观看| 成人免费视频视频在线观看免费| 国产精品丝袜一区| 日韩一区二区高清| 色哦色哦哦色天天综合| 精彩视频一区二区| 亚洲一区二区中文在线| 日本一区二区三区免费乱视频| 在线观看免费视频综合| 国产精品一线二线三线精华| 亚洲第一搞黄网站| 中文字幕在线观看一区二区| 日韩三级电影网址| 欧洲人成人精品| 91精品国产综合久久久久| av日韩在线网站| 激情五月婷婷综合网| 亚洲电影你懂得| 最新欧美精品一区二区三区| 欧美成人r级一区二区三区| 色婷婷综合久久久中文字幕| 国产成人免费xxxxxxxx| 人人精品人人爱| 国产女人18毛片水真多成人如厕| 精品黑人一区二区三区久久| 日韩成人一区二区| 亚洲天堂精品在线观看| 久久精品日产第一区二区三区高清版| 欧美女孩性生活视频| 91色综合久久久久婷婷| 国产91丝袜在线观看| 狂野欧美性猛交blacked| 亚洲成av人影院| 一区二区三区不卡在线观看| 国产精品成人免费在线| 国产喷白浆一区二区三区| 欧美成人一区二区三区在线观看| 欧美丰满高潮xxxx喷水动漫| 在线观看www91| 欧美这里有精品| 91福利精品第一导航| 色综合天天性综合| 欧美日产在线观看| 在线亚洲精品福利网址导航| 色悠悠久久综合| 国产午夜精品美女毛片视频| 欧美精品一区二区在线观看| 欧美一区二区三区不卡| 欧美电影一区二区| 欧美一区二区三区小说| 日韩一卡二卡三卡国产欧美| 日韩精品一区二区三区中文精品 | 欧美一区二区免费观在线| 日韩一区二区在线看片| 欧美电视剧免费全集观看| 欧美本精品男人aⅴ天堂| 久久精品夜色噜噜亚洲a∨| 国产精品护士白丝一区av| 亚洲美女在线国产| 亚洲mv在线观看| 蓝色福利精品导航| 成人免费毛片嘿嘿连载视频| 99国产精品国产精品毛片| 欧美亚洲国产一区在线观看网站| 欧美日本在线播放| 久久夜色精品国产噜噜av| 中文字幕日韩精品一区| 亚洲动漫第一页| 国产在线国偷精品免费看| av在线一区二区三区| 欧美精品久久一区| 国产欧美一区二区精品秋霞影院 | 中文字幕电影一区| 亚洲一区二区在线播放相泽 | 国产伦精品一区二区三区视频青涩 | 精品伊人久久久久7777人| 国产91精品一区二区| 国产精品日产欧美久久久久| 夜夜嗨av一区二区三区四季av| 麻豆精品在线播放| 91浏览器打开| 日韩视频在线观看一区二区| 中文字幕一区二区三区精华液| 五月婷婷色综合| 福利电影一区二区| 91精品国产一区二区| 国产精品网友自拍| 蜜臀av亚洲一区中文字幕| 99re免费视频精品全部| 精品国产乱码久久久久久夜甘婷婷 | 免费观看91视频大全| 91丨porny丨户外露出| 日韩午夜小视频| 亚洲综合成人在线| 成人激情校园春色| 日韩精品一区二区三区蜜臀 | 色婷婷综合久久| 国产日韩欧美高清| 久久精品国产亚洲高清剧情介绍 | 综合分类小说区另类春色亚洲小说欧美 | 欧美高清在线一区| 久久99精品国产麻豆婷婷| 欧美三级日韩三级| 亚洲裸体xxx| aaa亚洲精品一二三区| 久久无码av三级| 精品一区二区精品| 欧美一区二区三区色| 亚洲妇熟xx妇色黄| 在线观看免费亚洲| 亚洲美腿欧美偷拍| 99久久精品免费看国产免费软件| 精品国产免费一区二区三区香蕉| 亚洲人成亚洲人成在线观看图片| 国产一区二区视频在线播放| 欧美一区二区视频免费观看| 亚洲免费观看视频| 91麻豆蜜桃一区二区三区| 国产精品久久久爽爽爽麻豆色哟哟| 国产精品99久久久久久久女警| 日韩手机在线导航|