stackencapsulationEachrouteadd

routeadd  时间:2021-05-24  阅读:()
TCP/IPnetworkingTCP/IPAnetworkingprotocolsuiteUseseveralprotocols,mainonesaretcpandip.
IPstandsforInternetProtocolTCPstandsforTransmissionControlProtocol.
ThenativelanguageoftheInternetSupportedbymostOSs(Unix,MacOS,Windows,Netware,etc)DefinesauniformprogramminginterfacetodifferenttypesofnetworkhardwareTCP/IPandInternet1969ARPAnetExperimentalpacket-switchingnetworkStudyrobust,reliable,vendor-independentdatacommunicationVerysuccessful1975ARPAnetbecameoperationnetworkDevelopmentcontinuingTCP/IPwasdeveloped1983TCP/IPprotocolswereadoptedasMilitaryStandardsTCP/IPwasimplementedinBerkeleyUnix.
ARPAnetwasdividedintoMILNETandARPAnetTCP/IPandInternet1985NSFNetConnectedtothethenexistingInternet(MILNETplusARPAnet)LinkedtogetherthefiveNSFsupercomputercentersWantedtoextendthenetworktoeveryscientist1987newNSFNetbackboneFasterThree-tieredtopology:backbone,regionalnetworks,andlocalnetworks.
TCP/IPandInternet1990ARPAnetpassedoutofexistence1995NSFnetceaseditsroleasaprimaryInternetbackbonenetworkTodayInternetisbuildbycommercialproviders.
InfrastructureisbeingcreatedbyNationalnetworkprovider,callertier-oneprovidersRegionalnetworkproviderLocalaccessanduserservicesisprovidedbyInternetServiceProviders(ISPs)NetworkAccessPoints(NAPS):majorinterconnectionpointsTCP/IPandInternetHowtheinternetismanagedtodayCommercialforceSeveralorganizationInternetCorporationforAssignedNamesandNumbers(ICANN)www.
icann.
orgInternetEngineeringTaskForce(IETE)www.
ietf.
orgInternetSociety(ISOC)www.
isoc.
orgTCP/IPandInternetNetworkstandardsanddocumentationRequestforComments(RFC)Over4000hasbeencreatedFYSTDBCPDispatchcentralforRFC-relatedmatterswww.
rfc-editor.
orgNetworkingRoadMapTCP/IPcomponentsIP,theInternetProtocolroutesdatapacketsfromonemachinetoanotherICMP,theInternetControlMessageProtocolProvidesseveralkindsoflow-levelsupportforIPErrormessageRoutingassistanceDebugginghelpARP,theAddressResolutionProtocolTranslatesIPaddressestohardwareaddressesNetworkingRoadMapUDP,theUserDatagramProtocolDeliversdatatospecificapplicationsonthedestinationmachineProvides"unverified","besteffort"transportforindividualmessagesTCP,theTransmissionControlProtocolDeliversdatatospecificapplicationsonthedestinationmachineProvidesreliable,flowcontrolled,errorcorrectedconversationbetweenprocessesontwohosts.
TCP/IPnetworkmodelUTPcopper,fiber,radiawavesARP,DeviceDriversIPICMPTCPUDPARPSSH,FTP,WEBDNS,QuakeTraeroutePhysicallayerLinkLayerNetworkLayerTransportLayerApplicationLayerPacketsandencapsulationDatatravelsonanetworkintheformofpacketsEachpacketconsistsofAheader–whereitcamefromandwhereit'sgoing,protocolinfo,checksum,etc.
Apayload-dataAsapackettravelsdowntheprotocolstackencapsulationEachprotocoladdsitsownheaderinformationEachprotocol'sfinishedpacketbecomesthepayloadpartofthepacketgeneratedbythenextprotocol.
Onareceivingmachine,theencapsulationisreversedasthepackettravelsbackuptheprotocolstack.
PacketsandEncapsulationExample:AtypicalnetworkpacketEthernetheaderIPheaderUDPheaderApplicationdataEthernetCRCUDPpacket(108bytes)IPpacket(128bytes)Ethernetframe(146bytes)AddressingPacketsaddressingPacketsmustbeproperlyaddressedinordertoreachtheirdestinationAddressingschemesMAC(mediaaccesscontrol)addressesforhardwareIPaddressesforsoftwareHostnamesforpeoplePorts16bitnumberAddressparticularprocessesorservicesWell-knownportsaredefinedin/etc/servicesUnixsystemsrestrictaccessportunder1024toroot.
AddressingAddresstypesUnicast–addressesthatrefertoasinglehost(interface)Multicat–addressesthatidentifyagroupofhostsBroadcast–addressesthatincludeallhostsonthelocalnetworkIPaddressesFourbyteslongNetworkpartandhostpartWrittenasdecimalnumbers,oneforeachbyteseparatedbyperiodsWhen127isthefirstbyteofanaddress,itdenotesthe"loopbacknetwork"Lookbackaddress127.
0.
0.
1-localhostAddressingIPaddressclassesThetraditionalclassdeterminewhichbytesoftheaddresswereinthenetworkportionandwhichwereinthehostportionA1-126N.
H.
H.
HVeryearlynetworkB128-191N.
N.
H.
Hlargesites(65536)C192-223N.
N.
N.
H(256)D224-239MultipleaddressesE240-254ExperimentaladdressesAddressingSubnettingandnetmasksHostportionofanaddressis"borrowed"toextendthenetworkportionThisreassignmentisdonebyusingifconfigcommandtoassociateanexplicit"subnetmask"withanetworkinterface.
EachbitofthenetmaskthatcorrespondstothenetworkportionofanIPaddressissetto1,hostbitsaresetto0ThedivisionofnetworkpartandhostpartneednotfallonabyteboundaryNetworkbitsmustbecontiguousandmustappearatthehighorderendoftheaddressesAddressingNotationIpaddressnetmaskIpaddress/lengthofthenetworkpart128.
138.
243.
0/26Example128.
138.
243.
100/24NetmaskNetworkBroadcast128.
138.
243.
100/26100=01100100NetmaskNetworkBroadcastUseipcalctogetthevalues.
AddressingTheIPaddresscrisisFundamentalproblemswiththeoriginalclassallocatingschemeRunoutofBclassesRoutingtableweregrowingsolargeIPaddresswereallocatedonafirst-com,first-servedbasiswithnolocalityofreferencesolutionsShortterm:ClasslessInter-DomainRouting(CIDR)IPV6:extendtheaddressto16bytes665,570,793,348,866,943,898,599addressesAddressingAddressallocationRegionalIPaddressregistriesARINNorthandSouthAmericaAPNICAsia/PacificregionRIPEEuropeandsurroundingareasPrivateaddressesPacketsbearingprivateaddressescannotgetintointernetIPaddressreservedforprivateuse10.
0.
0.
0/8172.
16.
0.
0/12192.
168.
0.
0/16RoutingRoutingistheprocessofdirectingapacketthroughthemazeofnetworksthatstandbetweenitssourceanditsdestination.
Routinginfoisstoredinatableinthekernel.
Examineituse"netstat–r"ConfiguredynamicallyConfigurestatically#routeadd–net132.
236.
220.
64netmask255.
255.
255.
192132.
236.
212.
6#routeadddefault132.
236.
227.
1ARPTheaddressResolutionProtocoldiscoversthehardwareaddressassociatedwithaparticularIPaddress.
APRusesbroadcastpackets,cannotcrossnetworks"Doesanyoneknowthehardwareaddressfor128.
138.
116.
4"Checkthearpcachetablewitharpcommand#/usr/sbin/arp–aRARPReversetranslationQueryacentralservertodiscoveritsownaddressNeedconfigurationAdditionsofmachinestoanetworkBasicstepsareAssignaIPaddressandhostnameSetupthenewhosttoconfigureitsnetworkinterfacesatboottimeSetupadefaultrouteandperhapsfancierroutingPointtoaDNSnameserver,toallowaccesstotherestoftheInternet.
DebuggingAlwaystorebootifchangesaffectbootingAssigninghostnamesandIPaddressesMappinghostnamestoIPHostsfileNISorNIS+DNSOrCombinationaboveHostsfile/etc/hostsEachlinestartwithIP,continueswithvarioussymbolicnamesbywhichthataddressisknown.
EntriesLocalhost,gateway,specialhosts,…ReplicatesamehostsfileonmachinesConfigurehostnameCommandhostnamerunattheboottimeConfigurationfileAssigninghostnamesandIPaddressesConfigurenetworkinterfaces:ifconfigEnableordisablenetworkinterfaceSetIPaddressSetsubnetmaskSetotheroptionsRunattheboottime(usecommandwiththevaluefromconfigurefiles)Format$ifconfiginterfaceaddressoptions…up|downEx:#ifconfigeth0128.
138.
240.
7network255.
255.
255.
0upAssigninghostnamesandIPaddressesInterfacename:IdentifiesthehardwaretowhichthecommandappliesTwoorthreecharacterdevicenamefollowedbyanumber.
Theloopbackinterfaceisnamedlo0ThecommoninterfacenamesareIe0,le0,ln0,we0,hme0,eri0,lan0,…Displaytheinterfaces$netstat–iDisplaythesettingofinterfaces$ifconfig–aAssigninghostnamesandIPaddressesConfigurethenetworkinterfaceTheifconfigcommandssupportmanyoptionsSpecifyaddressSpecifynetmask,otherwiseitusesaddressclass(A,B,C)SpecifybroadcastDefaultcanbecalculatedfromIP+netmaskSomesitessetittoavoidcertaintypesofdenialofserviceattacks.
Notgood.
ActivateordeactivatethedevicedriverUsekeyworkup,down.
Ifconfigallowsyoutoconfigureainterfacecardbyhand,butthevalueisonlyinkernel.
Tomakeitsurvivethereboot,changetherightconfigurationfileConfigurestaticroutesCommandroutedefinesstaticroutesStaticroutewillstayintheroutingtableinmostcaseconfigurethedefaultroutingwhenaddingahosttolocalnetworkRoutingisperformedatwhatlayerThepackets'destinationIPiscomparedwiththeroute,ifitmatches,thepacketisforwardedtothe"nextgateway"IPaddressassociatedwiththatrouteRoutingaddedwhenconfiguretheinterface-PacketsdestinedforhostonadirectoryconnectednetworkDefaultrouteisinvokedwhenthereisnoroutethatmatchesthedestinationaddress.
ConfigurestaticroutesTheformat:#routeop[type]destinationgateway[hop-count]WhereOp:add,delete,get,change,flush,monitorDestination:hostaddress,networkaddress,orthekeyword"default"(0.
0.
0.
0)Gateway:amachinetowhichpacketsshouldbeforwardedMustbeonadirectlyconnectednetworkForwardingcanonlybeperformedonehopatatimeType:-net,-hostChecktheroutingtable:#netstat-nrConfigurestaticroutesdefaultroute#routeadddefaultgateway_ip_addressChangetheconfigurefileSolaris:/etc/defaultrouterHp-UX:/net/rc.
config.
d/netconfRedhat:/etc/sysconfig/networkConfiguringDNSToconfigureamachineasaDNSclientConfigure/etc/resolv.
confListDBSdomainsthatshouldbesearchedtoresolvenamethatareincompleteLinetheIPaddressesofthenameserverstocontactfornamelookupsExample:[ruihong@dafinn~]$more/etc/resolv.
confsearchcs.
mtu.
educsl.
mtu.
edumtu.
edunameserver141.
219.
152.
253nameserver141.
219.
152.
254ConfiguringDNSConfiguretheserviceswitchfileWhichonetakeeffect/etc/hosts,NIS,DNSSolaris,Hp-UX,Redhat:/etc/nsswitch.
confExample:hosts:filesnisdnsClause:[NOTFOUND=return]NetworkconfigurationfilesbysystemAll/etc/hosts/etc/recolv.
confSolaris/etc/hostname.
ifname/etc/nodename/etc/defaultrouter/etc/inet/netmasks/etc/inet/hostsHP-UX/etc/rc.
config.
d/netconfRedHat/etc/sysconfig/networkNetwork-scripts/ifcfg-ifnamePracticeCheckIPaddress/netmask/broadcastrouteArptableHostnameDNSModifyHostnameDnsresearchlistPingwoprDnsserversRemotedefaultroutePingwoprAddthedefaultroutebackagainRebootDHCPDynamicHostConfigurationProtocolDistributenetworkandadministrativeparameterstoDHCPclient,includeIPaddressandnetmasksGatewaysDNSnameserversSysloghostsWINsServers,Xfontservers,proxyservers,NTPserversTFTPservers(forloadingabootimage)Andmore…DHCPHowDHCPworksClientsends"WhoamI"DHCPDISCOVERmessageTobroadcast255.
255.
255.
255With0.
0.
0.
0asitsownaddressServerrespondswithOFFERmessagesClientsendsbackaREQUESTmessagesServerrespondswithACKorNAKClientrenewtheleasebysendinganotherREQUESTmessage

hostio荷兰10Gbps带宽,10Gbps带宽,€5/月,最低配2G内存+2核+5T流量

成立于2006年的荷兰Access2.IT Group B.V.(可查:VAT: NL853006404B01,CoC: 58365400) 一直运作着主机周边的业务,当前正在对荷兰的高性能AMD平台的VPS进行5折优惠,所有VPS直接砍一半。自有AS208258,vps母鸡配置为Supermicro 1024US-TRT 1U,2*AMD Epyc 7452(64核128线程),16条32G D...

提速啦:美国多IP站群云服务器 8核8G 10M带宽 7IP 88元/月

提速啦(www.tisula.com)是赣州王成璟网络科技有限公司旗下云服务器品牌,目前拥有在籍员工40人左右,社保在籍员工30人+,是正规的国内拥有IDC ICP ISP CDN 云牌照资质商家,2018-2021年连续4年获得CTG机房顶级金牌代理商荣誉 2021年赣州市于都县创业大赛三等奖,2020年于都电子商务示范企业,2021年于都县电子商务融合推广大使。资源优势介绍:Ceranetwo...

RAKsmart:美国圣何塞服务器限量秒杀$30/月起;美国/韩国/日本站群服务器每月189美元起

RAKsmart怎么样?RAKsmart是一家由华人运营的国外主机商,提供的产品包括独立服务器租用和VPS等,可选数据中心包括美国加州圣何塞、洛杉矶、中国香港、韩国、日本、荷兰等国家和地区数据中心(部分自营),支持使用PayPal、支付宝等付款方式,网站可选中文网页,提供中文客服支持。本月商家继续提供每日限量秒杀服务器月付30.62美元起,除了常规服务器外,商家美国/韩国/日本站群服务器、1-10...

routeadd为你推荐
http://www.huajinsc.cn/支持ipadpublicationethics.orgtracerouteping命令和traceroute(tracert )在功能上的区别有哪些?win7关闭135端口win7系统怎么关闭135端口?网上很多方法都不好用!css选择器CSS中的选择器分几种?联通合约机iphone5联通合约机iphone5和电信合约机Iphone5哪个好杀毒软件免费下载2013排行榜哪里有免费好用的杀毒软件苹果5.1完美越狱ios5.1能不能完美越狱?fastreport2.5罗斯2.5 现在能卖多少啊!?!!!
1g虚拟主机 万网域名管理 edis isatap ev证书 web服务器架设软件 全能主机 老左正传 中国网通测速 免费mysql数据库 yundun 乐视会员免费领取 沈阳idc 镇江高防服务器 restart ncp是什么 美国代理服务器 月付空间 游戏服务器 低价 更多