content.html

来自「ccna」· HTML 代码 · 共 223 行

HTML
223
字号
<html>    <head>        <meta content="en-us" http-equiv="Content-Language">        <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">        <link type="text/css" rel="stylesheet" href="../../../../../css/ccna.css">        <script src="../../../../../js/framesetHelper.js" language="JavaScript"></script><script language="JavaScript">        window.scrollTo(0,0);        function newPage(pageID) {            alert("COMMING SOON!!\nThis feature is currently in development.");        }        function launchMoreInfo(oid) {            dash = oid.indexOf('-');            sub1 = oid.substring(0,dash);            sub2 = oid.substring(dash+1);                                            // this is an URL base on the                                        // system that generated the static                                        // download of the curriculum.            httpref = "http://nomar.sdf.cisco.com/servlet/org.cli.delivery.rendering.servlet.MIServlet/Static=true,LMSID=DTUI,Engine=dynamic,Theme=cnamstheme,Style=ccna,Language=en,Version=2,RootID=knet-v214aCV47051/CHAPID=null/RLOID=null/RIOID=null/";                        newref = httpref + sub1 +"/"+ sub2 +"/moreinfoframeset.html";            //alert("new newref :\n" + newref);            window.open(newref,'MoreInfo','toolbar=no,status=yes,menubar=no,location=no,scrollbars=yes,height=442,width=756,left=20,top=20,resizable=yes')        }        function launchContentResource(contentID) {            top.currentSupport = 0;                        dash = contentID.indexOf('-');            sub1 = contentID.substring(0,dash);            sub2 = contentID.substring(dash+1);                        numbackParams = "CHAPID=" + "knet-v214aCH47510" + "/RLOID=" + "knet-v214aRLO47818" + "/RIOID=" + "knet-v214aRIO123676";                        ContentRef = "../../../../../"+ numbackParams + "/"+ sub1 +"/"+ sub2 +"/";                        eval('parent.frames.content_frame.location.href="'+ContentRef+'content.html"');            eval('parent.frames.media_frame.location.href="'+ContentRef+'media.html"');            eval('parent.frames.navigation_frame.location.href="'+ContentRef+'contentresourcenav.html"');            top.currentSupport++;            top.firstSupportPage = contentID;            top.prevPage = contentID;            top.contentResourceID = contentID;        }                        function launchReference(rioID, rloID, chapterID)        {            contentID = "knet-v214aCV47051";            dash = contentID.indexOf('-');            sub1 = contentID.substring(0,dash);            sub2 = contentID.substring(dash+1);                        numbackParams = "CHAPID=" + chapterID + "/RLOID=" + rloID + "/RIOID=" + rioID;                        ContentRef = "../../../../../"+ numbackParams + "/"+ sub1 +"/"+ sub2 +"/";        			            eval('top.frames.main_frame.location.href="'+ContentRef+'referencecontroller_crf.html"');                        chapter = "knet-v214aCH47510";            ch_dash = chapter.indexOf('-');            ch_sub1 = chapter.substring(0,ch_dash);            ch_sub2 = chapter.substring(ch_dash+1);                        params = "CHAPID=" + chapter + "/RLOID=" + "knet-v214aRLO47818" + "/RIOID=" + "knet-v214aRIO123676";                        returnRef = "../../../../../"+ params + "/"+ ch_sub1 +"/"+ ch_sub2 +"/pageframeset.html";                                    top.prevPage = returnRef;                }        function launchFile(filepath) {              newWindow = window.open(filepath,"","top=70,left=120,width="+(screen.width*.50)+",height="+(screen.height*.50)+",resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,status=yes");            /*            if (is.ie && filepath.lastIndexOf(".pdf") != -1) {                pageTimer = setInterval("winLoadCheck()", 1000);            }            */        }        function winLoadCheck() {            if (newWindow.document.readyState == 'complete') {                           clearInterval(pageTimer);                newWindow.location.reload();            }        }          // BrowserCheck Object  // provides most commonly needed browser checking variables  // 19990326  // Copyright (C) 1999 Dan Steinman  // Distributed under the terms of the GNU Library General Public License  // Available at http://www.dansteinman.com/dynapi/  function BrowserCheck() {  	var b = navigator.appName  	if (b=="Netscape") this.b = "ns"  	else if (b=="Microsoft Internet Explorer") this.b = "ie"  	else this.b = b  	this.v = parseInt(navigator.appVersion)  	this.ns = (this.b=="ns" && this.v>=4)  	this.ns4 = (this.b=="ns" && this.v==4)  	this.ns5 = (this.b=="ns" && this.v==5)  	this.ie = (this.b=="ie" && this.v>=4)  	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)  	this.ie5 = (navigator.appVersion.indexOf('MSIE 5.0')>0)  	this.ie55 = (navigator.appVersion.indexOf('MSIE 5.5')>0)  	if (this.ie5) this.v = 5  	this.min = (this.ns||this.ie)  }  // automatically create the "is" object  is = new BrowserCheck()</script>    </head>    <body onLoad="window.focus();" alink="#000000" vlink="#000000" link="#000000" bgcolor="#E7E7E7" background="../../../../../images/ccna/common/bg.gif">        <table width="100%" cellspacing="0" cellpadding="2" border="0"><tr>                <td bgcolor="#000000"><img height="1" width="2" border="0" src="../../../../../images/ccna/common/transdot.gif"></td><td class="rlohdr"><img height="1" width="2" border="0" src="../../../../../images/ccna/common/transdot.gif"></td><td valign="top" class="rlohdr">10.7</td><td width="100%" class="rlohdr">                    <table width="90%" cellpadding="0" cellspacing="0" border="0">                        <tr>                            <td class="rlohdr">Creating a Subnet</td>                        </tr>                    </table>                </td>            </tr>            <tr>                <td bgcolor="#000000"><img height="1" width="2" border="0" src="../../../../../images/ccna/common/transdot.gif"></td><td class="riohdr"><img height="1" width="2" border="0" src="../../../../../images/ccna/common/transdot.gif"></td><td valign="top" class="riohdr">10.7.2</td><td width="100%" class="riohdr">                    <table width="90%" cellpadding="0" cellspacing="0" border="0">                        <tr>                            <td class="riohdr">Determining subnet mask size</td>                        </tr>                    </table>                </td>            </tr>            <tr>                <td colspan="4">                    <table width="90%" cellspacing="0" cellpadding="0" border="0">                        <tr>                            <td class="smtext">                                <p>                                </p><table cellpadding="0" cellspacing="0" width="100%" border="0" xmlns:java="http://xml.apache.org/xslt/java">                                    <tr>                                        <td width="100%"><img height="10" width="1" border="0" src="../../../../../images/ccna/common/transdot.gif"></td>                                    </tr>                                    <tr>                                        <td width="100%">                                            <table bgcolor="#000000" bordercolor="#000000" cellspacing="0" bordercolorlight="#000000" width="100%" border="0">                                                <tr>                                                    <td width="100%">                                                        <table bgcolor="#FFFFFF" cellspacing="0" cellpadding="2" width="100%" border="0">                                                            <tr>                                                                <td valign="middle"><img height="22" width="22" border="0" src="../../../../../images/ccna/common/inotes.gif"></td><td valign="middle"><span class="cstitle">Instructor Note</span></td>                                                            </tr>                                                            <tr>                                                                <td valign="top">&nbsp;</td><td valign="top"><span class="cstext">                                                                        <p>The more bits stolen, the more possible combinations of those bits. More combinations means more subnetwork numbers.</p>                                                                        <p>This TI is related to CCNA Certification Exam Objectives #7, #29, #30, and #36.</p>                                                                    </span></td>                                                            </tr>                                                        </table>                                                    </td>                                                </tr>                                            </table>                                        </td>                                    </tr>                                </table><p>Subnet masks use the same format as IP addresses. They are 32 bits long and divided into four octets, written in dotted decimal format. Subnet masks contain all 1s in the desired subnet bit positions as well as the network bit positions, which are determined by the address class. They contain all 0s (zeros) in the remaining bit positions, designating them as the host portion of an address.</p><p>By default, if no bits are borrowed, the subnet mask for a Class B network would be 255.255.0.0, which is the dotted decimal equivalent of 1s in the 16 bits corresponding to the Class B network number.</p><p>If 8 bits were to be borrowed for the subnet field, the subnet mask would include 8 additional 1 bits, and would become 255.255.255.0.</p><p>For example, if the subnet mask 255.255.255.0 was associated with the Class B address 130.5.2.144 (8 bits borrowed for subnetting), the router would know to route this packet to subnet 130.5.2.0 rather than to just network 130.5.0.0 <img border="0" src="../../../../../CHAPID=knet-v214aCH47510/RLOID=knet-v214aRLO47818/RIOID=knet-v214aRIO123676/knet/v214adataimage1/1.gif" width="12" height="12"></p><p>Another example is the Class C address 197.15.22.131, with a subnet mask of 255.255.255.224. With a value of 224 in the final octet (11100000 in binary), the 24 bit Class C network portion has been extended by 3 bits, to make the total 27 bits. The 131 in the last octet now presents the third usable host address in the subnet 197.15.22.128.<img border="0" src="../../../../../CHAPID=knet-v214aCH47510/RLOID=knet-v214aRLO47818/RIOID=knet-v214aRIO123676/knet/v214adataimage2/2.gif" width="12" height="12"> The routers in the Internet that do not know the subnet mask will only worry about routing to the Class C network 197.15.22.0, while the routers inside that network, knowing the subnet mask, will be looking at 27 bits to make a routing decision.</p></td>                        </tr>                    </table>                </td>            </tr></table>        <p>        </p>        <table width="100%" cellspacing="0" cellpadding="2" border="0" valign="bottom">            <tr>                <td></td>            </tr>        </table>    </body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?