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

RAKsmart推出7.59美元/月,云服务器产品Cloud Server,KVM架构1核1G内存40G硬盘1M带宽基础配置

近期RAKsmart上线云服务器Cloud Server产品,KVM架构1核1G内存40G硬盘1M带宽基础配置7.59美元/月!RAKsmart云服务器Cloud Server位于美国硅谷机房,下单可选DIY各项配置,VPC网络/经典网络,大陆优化/精品网线路,1-1000Mbps带宽,支持Linux或者Windows操作系统,提供Snap和Backup。RAKsmart机房是一家成立于2012年...

Webhosting24:$1.48/月起,日本东京NTT直连/AMD Ryzen 高性能VPS/美国洛杉矶5950X平台大流量VPS/1Gbps端口/

Webhosting24宣布自7月1日起开始对日本机房的VPS进行NVMe和流量大升级,几乎是翻倍了硬盘和流量,价格依旧不变。目前来看,日本VPS国内过去走的是NTT直连,服务器托管机房应该是CDN77*(也就是datapacket.com),加上高性能平台(AMD Ryzen 9 3900X+NVMe),还是有相当大的性价比的。此外在6月30日,又新增了洛杉矶机房,CPU为AMD Ryzen 9...

hostkey俄罗斯、荷兰GPU显卡服务器/免费Windows Server

Hostkey.com成立于2007年的荷兰公司,主要运营服务器出租与托管,其次是VPS、域名、域名证书,各种软件授权等。hostkey当前运作荷兰阿姆斯特丹、俄罗斯莫斯科、美国纽约等数据中心。支持Paypal,信用卡,Webmoney,以及支付宝等付款方式。禁止VPN,代理,Tor,网络诈骗,儿童色情,Spam,网络扫描,俄罗斯色情,俄罗斯电影,俄罗斯MP3,俄罗斯Trackers,以及俄罗斯法...

routeadd为你推荐
中国微信5游戏ios支持ipad支持ipad重庆宽带测速重庆电信测速我的网速溢出tcpip上的netbios网络连接详细信息上的netbios over tcpip是什么意思?win7如何关闭445端口如何关闭WIN7自动配置 IPV4 地址 169.254重庆电信宽带管家重庆电信宽带安装收费ipad上不了网平板电脑 能连接网络不能上网google分析google分析打不开了?
买域名 中国十大域名注册商 过期已备案域名 gitcafe 炎黄盛世 世界测速 hktv cloudlink 空间登入 独享主机 外贸空间 美国凤凰城 全能空间 中国linux lamp是什么意思 lamp架构 酸酸乳 群英网络 美国主机侦探 reboot 更多