ͥåȥڥꥹ - SE̼η -

ͥåȥڥꥹȤλкȤǤͥåȥڥꥹȻι
̡ʤΥġ⡢μʤɤξǺܤޤкߥʡԤäƤޤ ͥåȥڥꥹ
кʤ麸κǤܤ֥ͥڡץ꡼ʵɾҡˤǡ
ͥåȥڥꥹȻ˹ʤȡͥåȥ˴ؤμ䵻ѤǤʤɲϤʸϤȤˤĤޤ
ˡλ˹ʤǤȤ뤳ȤǤޤ

ƥꡧ8.ͥåȥءL3 > 8.1 IPv4

IPɥ쥹Ȥϡɥ쥹ֽפȤդ̤ꡢIP̿ˤ뽻򤷤ޤ
ޤϡȤIPɥ쥹򸫤Ƥߤޤ礦Τ뤳ȤǤºݤ򸫤뤳Ȥǡ򤬿ޤޤ
֥ȡץܥ󤫤֥ե̾򤷤ƤƼ¹ԡפˡcmdפϤޤޥɤϤǤ̤ФƤ顢ipconfigפϤޤ
C:\>ipconfig
Windows IP

ͥå ץ ꥢ³:
   ³ͭ DNS եå . . . . .:
   󥯥 IPv6 ɥ쥹. . . . .: fe80::a2:xxx::
   IPv4 ɥ쥹 . . . . . . . . . . . .: 192.168.1.100
   ֥ͥå ޥ . . . . . . . . . .: 255.255.255.0
   ǥե ȥ . . . . . . .: 192.168.1.1

줬ߤʤPCꤵ줿IPɥ쥹Ǥ
IPɥ쥹ϡͥåȥνʤޤֹˤˤʤޤߤʤ̿ˤϡΤ褦192.168.1.100³ޤ
35123ʤޤ3-5-123ˤʤɤȤɽ롼뤬褦ˡIPɥ쥹ϡ4ĤΥ֥åɽޤ
IPɥ쥹ϡ0.0.0.0255.255.255.255ޤǤͤȤޤ

ʲϻͥ󥯤Ǥ
ʤMACɥ쥹IPɥ쥹ξɬפʤΤ

Windows8ξǤ
֥ͥåȥפ򱦥åơ֥ץѥƥס֥ץѹפꤷ³ʥͥåȤWi-Fiˤ򤷡åǡ֥ץѥƥס֥󥿡ͥåȥץȥС4TCP/IPv4)֥륯å
ip
ꤷ顢ޥɥץץȤΩ夲ipconfigǸƤߤȤǤ礦
ơIPɥ쥹ϥ󥿡ͥåȤν֤뤳Ȥ褯ޤ
㤨СĶĮ1-3-7פȤȤˡˬ䤷͹ؤϤޤ
ĿŪʸǡɤǤ⤤ɤ㤨뤫äǤϿʹ֤ʬ䤹ɽȤޤϡDNSɽ˶ᤤȹͤƤޤIPɥ쥹ϡ192.168.1.1ʤɤοɽʤΤǡٷ٤ˤɽǤϤʤȹͤƤޤ㤨˿ǼҤν̰ޤФοɽȡʲΤ褦ˤʤޤ
̰3541ʬ,13945ʬ

ԥ塼ǤϡIPɥ쥹012ʿ32ӥåȡ8Хȡˤɽޤ
11000000101010000000000100000001
Τ褦˽񤤤ƤϿʹ֤ˤʬˤΤǡ8ӥåȡ1ХȡˤĤ˶ڤꡢ10ʿѤɽƤޤ
11000000101010000000000100000001

192.168.1.1

IPɥ쥹ˤϡХIPɥ쥹ȥץ饤١IPɥ쥹2बޤ
ͥåȥڥꥹȤܻؤSE졩
ʤ2ढΤǤ
ǤϥǤ




ХIPɥ쥹ϡ줿ءܤξˤϡJPNICˤ˿ơƤΤǤѤޤ顢ʣϤޤ󡣤IPv4ɥ쥹32ӥåȤ43ĤޤIPɥ쥹ϳ餷ƤΤǤǡIPɥ쥹θϳкΰĤȤơ󥿡ͥåȤ³ʤĤ줿ץ饤١ȥͥåȥˤƤϡץ饤١IPɥ쥹Ȥ褦ˤʤޤĤ줿ͥåȥѤޤ顢IPɥ쥹¾ȽʣƤ⹽ޤ󡣤Ǥ顢ץ饤١IPɥ쥹ïѿɬפʤͳ˹IPɥ쥹Ǥޤ

ֹ˹ͤƤߤޤ礦03-7215-xxxxʤɤֹȤΤNTTʤɤ̿ҤƤޤֹϼͳǤޤԤХIPɥ쥹Ԥץ饤١IPɥ쥹Τ褦ʤΤȤͤޤξԤΰ㤤ǤХIPɥ쥹ϡ֥ХŪʡˡפȤդ̤ꡢȤĤʤ륤󥿡ͥåȤ̿ѤǤޤץ饤١ȥɥ쥹ϡ֥ץ饤١ȡʻŪʡˡפȤդ̤ꡢΤ褦ʻŪʥͥåȥǤѤǤޤ󡣵դˡХIPɥ쥹ŪʥͥåȥѤ뤳ȤϲǽǤ
ХIP


ץ饤١ȥɥ쥹Ƥ줿ü饤󥿡ͥåȤ³ˤϡǥХIPɥ쥹ѴɬפޤʸҤNATNAPT

ʲˡ2ĤIPɥ쥹ޤ
ХIPɥ쥹ץ饤١IPɥ쥹
줿ؤ˿ơƤïǤ⼫ͳ˹IPɥ쥹Ǥ
ɥ쥹ϰץ饤١IPɥ쥹ǻꤵ줿ϰϰʳ10.0.0.0/8
172.16.0.0/12
192.168.0.0/16
ϰ󥿡ͥåȤˤѲǽȿʤɤĤͥåȥΤߡ󥿡ͥåȤ˽ФˤNATˤꥰХIPɥ쥹ˤ̿
ޥ㥹ȥɥ쥹ʤɡѤǤʤΤΤޤ

IPɥ쥹γƤϡŪȿǡꥫե˥ˤICANN(Internet Corporation for Assigned Names and Numbers:)ԤޤܤξJPNICƤޤºݡ桹ѤϡJPNICǤϤʤץХISPˤ˿뤳Ȥˤʤޤ

γؽˤϴطʤΤǻͤǤ
ҤѤʤɤ˻Ȥ롢ǼIPɥ쥹 ϰʲǤ

IPv4
192.0.2.0/24
198.51.100.0/24
203.0.113.0/24
 
IPv6
2001:db8::/32

ɥᥤ
example.co.jp
example.com

IPɥ쥹ϥͥåȥɥ쥹ȥۥȥɥ쥹ʤޤ ϡ羮ޤޤʹ񤫤ʤ褦ˡͥåȥ羮ޤޤʥͥåȥΤޤʥ֥ͥåȡˤʤޤ
ơ˥ѥʤɤüޤ ɤΥͥåȥ°Ƥ뤫ɽѤΤͥåȥɥ쥹ǡüꤹΤۥȥɥ쥹Ǥ
ͥåȥɥ쥹



ˤ羮͡ʥͥåȥޤ礭ˤäơ4ĤΥ饹ʬƤޤ
饹A絬ϸ
ͥåȥɥ쥹Ƭ8ӥå
Ʋǽü16777214ġ224-2
饹B浬ϸ
ͥåȥɥ쥹Ƭ16ӥå
Ʋǽü65534ġ216-2
饹Cϸ
ͥåȥɥ쥹Ƭ8ӥå
Ʋǽü254ġ28-2
ϥ֥ͥåȥޥγǰΤǡΥ饹ʬϤޤ̣ޤ
ʤߤˡΥ饹γǰǤΥͥåȥɥ쥹򥯥饹եȤ֥ͥåȥޥˤäƼͳ˥ͥåȥɥ쥹ϰϤꤹΤ򥯥饹쥹Ȥޤ

ʳ˥饹D饹EȤΤꡢŪ㤤ޤ
ʲޤ

饹A饹B饹C饹D饹E
絬ϸ浬ϸϸޥ㥹Τ˳
ͥåȥɥ쥹Ƭ8ӥåƬ16ӥåƬ24ӥå32ӥå-
ۥȥɥ쥹Ĺ24ӥå16ӥå8ӥå--
Ʋǽü16,777,21465,5342540-
ƬΥӥåȡ2ʿɽ0Ϥޤ10Ϥޤ110Ϥޤ1110Ϥޤ1111Ϥޤ
IPɥ쥹ϰ0.0.0.0127.255.255.255128.0.0.0191.255.255.255192.0.0.0223.255.255.255224.0.0.0239.255.255.255240.0.0.0255.255.255.255

IPv4
֥֥פɤΤήǤꡢ֥֥եפȤͤϾʤΤǤ
褢٤Ѥϡ֥֥եפȻפޤͥ򷫤֤ȡV2ʥ֥ġˡסV3ʥ֥꡼פȸ֥֥ˡס֥֥פȤϸޤ
sef6 

ȾѸǸȾܸȤΤԼǤΤ͡
̤ꡣܸνϸǤϡɤߤȷɤߤ碌ΤܤǤȤСε˽ФƤñǸȡּήפϤɤⲻɤߤǡ֤塦夦פɤߡ֤뤸夦פȤɤߤޤ
㳰ޤϡֽȢɤߡפȸޤ֤夦פɤߤǡ֤ϤפɤߤǤ
IPv4⤽ʡֽȢɤߡפΰĤʤΤ⡣

ʤߤˡפǤȤʤ֥ϡե󥹸Ǥ
饹ȣ

IPv6
֥֥פήǤꡢ֥֥åפȤͤϾʤΤǤ
֥֥åפȯȡƬˡWAˤʤäƤɤפήƤޤޤ
饹2 

H19FE54ˤǤϥ֥ͥåȥޥȤơ֥ۥȥɥ쥹ξʬ䤷,ʣΤ꾮ͥåȥ뤿˻ѤפȽҤ٤ƤޤޤH28IP70ˤǤϡ֥ͥåȥޥȤơIPɥ쥹˴ޤޤͥåȥɥ쥹ȡΥͥåȥ°ġΥԥ塼Υۥȥɥ쥹ʬפȽҤ٤Ƥޤ

IPɥ쥹ϽȤäޤIPɥ쥹ֹȻפäƤ⤤⤷ޤ
Ϥ밸ȤƤϽǡä򤫤ֹǡɤ̿ꤹΤˤʤޤ
ơǤֹȹͤäʤޤ
03-1234-xx01ʤɤȡڤäɽ롣ɤǤѤ0ABJֹ椬ХIPɥ쥹ͤȤȡȤֹ椬ץ饤١IPɥ쥹ֹϼǤѤʤ
뤬֥ͥåȥޥɬꤹɬפ롣֥ͥåȥޥϡͥåȥɥ쥹ȥۥȥɥ쥹ʬ뤿ΤΤ
ͥåȥɥ쥹ʬ1ꤷۥȥɥ쥹ʬ0ꤹ롣

2ʿɽ
IPɥ쥹11000000101010000000000100000001
֥ͥåȥޥ 11111111111111111111111100000000  
                                 
10ʿɽ
IPɥ쥹192.168.1.1
֥ͥåȥޥ255.255.255.0

嵭Ǥȡ192.168.1.ͥåȥɽ1ۥȤΥɥ쥹ɽɤޤǤͥåȥǡɤ餬ۥȤڤΤ
ľΩ
äλԳ֤ȻƤޤ͡
ޤ줿Ȥֹϡ07495-4-1xx4Ǥ
07495פϰɽ4-1xx4פμ²ȤֹǤ
ϰǤϡ07495뤹뤳ȤʤäǤޤ
θ塢͸Ȥˤꡢ0749-54-1xx4פѤäǤ
0749פϰɽ54-1xx4פμ²ȤֹȤʤäǤ
֥ͥåȥޥȤȡ夬夺줿Ȥˤʤޤ

͡IPɥ쥹ֹʪʤΤǡ˹ͤΤ˽⤷ʤʬṲ̄ΤΤϻ¤
subunet

Ū򸫤Ƥߤޤ礦
25ӥåȤΥ֥ͥå
192.168.0.0/25192.168.0.0192.168.0.127ˡǽʥѥ126

24ӥåȤΥ֥ͥå
192.168.0.0/24192.168.0.0192.168.0.255ˡǽʥѥ254

23ӥåȤΥ֥ͥå
192.168.0.0/26192.168.0.0192.168.1.255ˡǽʥѥ510

֥ͥå



򤤤Ƥߤ褦
111PV4ͥåȥѤĹ֥ͥåȥޥȤơΤϤɤ줫
255.255.255.1
255.255.255.32
255.255.255.64
255.255.255.128

ϡ

饹쥹ȥ饹ե
Υ饹γǰǤΥͥåȥɥ쥹򥯥饹եȤ֥ͥåȥޥˤäƼͳ˥ͥåȥɥ쥹ϰϤꤹΤ򥯥饹쥹Ȥޤ
Ĥ

饹եȤǰ
˺ƤΤǤϤʤǤ
ΤˤǤ뤬γǰĤäƤ롣㤨СʻȤäƤͤϾʤRIPv1Ǥϡ饹եγǰʤ

VLSMVariable Length Subnet MaskĹ֥ͥåȥޥ
ޤ꼪ʤդǤVLSMVariable Length Subnet MaskĹ֥ͥåȥޥˤȤդޤ
֥ͥåȥޥϲĹʤΤͤùޤȤ̤Ǥֱ˱ޡסֹޡפΤ褦ˡΤȤäƤȻפͤ⤤Ǥ礦
ͤȤƤϡ֥֥ͥåȥޥϥͥåȥɥ쥹ȥۥȥɥ쥹ʬ뤿ΤΡס֤Υ֥ͥåȥޥ򡢥饹γǰˤȤ줺˲ĹˤΤVLSMפȤ٤ǹͤƤФǤ礦
ʲΤ褦ˡĤȿˤơʥ֥ͥåĹΥͥåȥȤळȤǽǤ
subnet
CIDRClassless Inter Domain Routing
4 

֥ͥåȥޥ
CIDRƱ̣Ǥ
ޤɤ⽾Υ饹γǰȤäѤ餦Ȥ̣ǡƱȹͤƤ⤤Ǥ礦CIDRγǰ˶ᤤΤϥ֥ͥåȥޥȤդꡢѤɽVLSMȤդǤ͡
ͤǤ֥ͥåȤ򾮤ڤ뤳ȤǡIPɥ쥹󤹤륤᡼ޤ͡㤨С10.0.0.0Υͥåȥϡ饹AʬवΤǡ10.0.0.0/8ǤѤǤͥåȥʤʤޤ10.0.0.0/24ȤСꤿΥ֥ͥåȤʬǤޤ
CIDRγǰϵդǤȤޤ
ʲΤ褦ˡ3ĤΥ饹CΥͥåȥʥѡͥåȲˤޤС롼ƥ󥰥ơ֥ϤȤƤ⤹äꤷޤºݡ뤳Ȥǡ롼ƥ󥰽Ϲ®ˤʤޤ
192.168.1.0/24
192.168.2.0/24ޤȤʷϩˤ
192.168.3.0/24192.168.0.0/16Ȥƥ롼ƥ󥰤Ԥޤ
CIDRRRoutingʤΤǡγǰΤۤ᡼䤹⤷ޤ

ץեåĹ
֥ͥåȥޥȥåȡ192.168.1.1255.255.255.0ˤǽ񤯤ΤǤϤʤ192.168.1.1/24Ƚ̤Ǥ礦νCIDRɽȸޤޤǤϥץեåĹ24ӥåȤȤȤ¿ȻפޤΥץեåϡˤϥɥ쥹ץեåǤץեåprefixˤȤϡƬΰ̣ǡΰ̣ĤʸƬʬǤsetꤹ뤿ƬĤunset⤽Ǥ
Ƭΰ̣ȤϾޤɥ쥹ץեåϡȾʬĤޤͥåȥɥ쥹ؤޤ
ͤǤץեåȿиϥեåsuffixˤǤɥᥤ̾άȤˤĤΤȤDNSեåޤ
ʲDNSեå̤Ǥseeeko.comޤdns
ᤷˡpingޥɤwwwpingǤޤȰʲΤ褦ˡseeeko.com䴰ޤ
ping

ڻ͡ۥޥȤ
maskʥޥˤϤ¸Τ褦ˡ٤ҤΤȤ失ޥʤ̥쥹顼Υޥΰ̣ǤȤʤȤ̣ޤ֥ͥåȥޥǤϡ֥ͥåȤ˴طΤʤȤʤȤǡͥåȥɥ쥹ʬޤ

10ʿɽ
IPɥ쥹192.168.1.1
֥ͥåȥޥ255.255.255.0

2ʿɽ
IPɥ쥹11000000101010000000000100000001
֥ͥåȥޥ 11111111111111111111111100000000

ξԤANDѡˤˤ黻򤹤Ȱʲˤʤޤ
2ʿɽ
11000000101010000000000100000000

10ʿɽ
192.168.1.0
줬ͥåȥɥ쥹ȤȤʬޤ

ʸ޼ͽ
192.168.1.0/24192.168.2.0/24ʤɤȡͥåȥñ̤ʤɤʬΥ롼ʤޤL3åˤ򶭳֤ޤҤǤϡñ̤ʬΤȻƤޤ
ϥƥ 


ʤȤʬΤǤ
ͳ
Ʊ쥻ȤǤС֥ɥ㥹ȥѥåȤƤή롣̵̤ʥȥեåŬڤ¤ȤΤĤͳǤ
ۤŤ 

Ǥ⡢֥ɥ㥹ȥѥåȤʤơ
ޤˤήʤ礷ͳǤϤʤǤ͡
ˤǤ⡢륹Ǥäꡢ롼פʤɤǥͥåȥԤ硢Ʊ쥻Ƥü˱ƶǤ롣ﳲɽ경Ȥ̣ǤϡŬڤʬǤƤ٤Ǥ礦
aa
ͳ
ƥ򤷤䤹롣
ȤʬƤСȴ֤ǤΥե륿󥰤Ǥޤ㤨С롼ˤƥե륿󥰤ǤޤL2SWǤϡIPɥ쥹١Υե륿󥰤ʤǤ뵡뤫⤷ޤ󤬡˴ŪˤϤǤޤ
ޤФFWʤɤǡ̳192.168.1.0/24ˤϵĤĶ192.168.2.0/24ˤϥʤʤɤν򤹤Τ⡢ꤷ䤹
bb
1 
Ʊ쥻ȤǤ⡢
̳üIPɥ쥹ĶüIPɥ쥹̤˥ե륿󥰤вǽǤ͡
ǽɡݤǤȤǽ񤤤ñǤ֤äꡢܤʬˤΤϡƥߥޤ줬ˤʤꡢǤޤ

sef4

ƱȤ˰ۤʤͥåȥ򺮺ߤɤʤޤ
㤨СɤƱL2SW³Ǥ
줾졢̿ϲǽǤäʤȤޤǤ⡢ͥåȥȤ㤦ƱΤ̿Ǥޤ
ͥåȥڥꥹ_ۤʤͥåȥ

ǶΥ롼ȤʤǤIPɥ쥹Ǥޤ
1ĤIF2ĤIPǤΤǤ˥롼ƥ󥰤⤷Ƥޤ
ʤΤǡ嵭ιL2SWξ˥롼֤롼ˤƥIPɥ쥹ꤹȡ嵭ΥͥåȥѤǤޤʲϡCisco롼ǤΥIPɥ쥹Ǥ
interface FastEthernet0/0
 ip address 172.16.1.254 255.255.255.0 secondaryIPɥ쥹
 ip address 192.168.1.254 255.255.255.0̾IPɥ쥹
 duplex auto
 speed auto

4

ͥåȤΥإå顢IPΥإå顢ʤ𤷤Ƥޤ




̵Ф褦Ȥˡʤͤ롣ʤߤƤ쥤䣲ǻȤ륤ͥåȥե졼ι¤ȡ쥤䣳ǻȤIPѥåȤι¤ǧƤۤ
ip
IPv4ΥإåϡŪˤ20ХȤǤ롣ղþĤ뤳Ȥdzĥ뤳Ȥǽ
ܤȤϰʲ

1)С(4bit)IPΥС󡣥С4

2)Hedder Length(ޤIHL:IP Header Length)(4bit)IPإåΥإåĹ32ӥåȤβܤǼղþդ뤳Ȥ32ӥåȤܤˤʤʤϡإåΥץ˵ͤʪPadding?ˤ뤳Ȥǡ32ӥåȤܤˤ롣̾20Х(=160ӥåȡˤʤΤǡˤ5롣

3)ToS(Type of Service)(8bit):ToSȤѤDiffServȤѤ2ѥ󤬤롣Tosξϡ3ӥåȤͥ٤Ĥ롣DiffServξ6ӥåȤͥ٤Ĥ롣ɤˤƤ⤽ۤɻȤʤ

4)ѥåĹ(16bit)16bitΤ216=65535ХȤ祵Ǥ⤳Υϥե饰ȤΤΤǤϤʤºݤˤ1500٤MAX2ХȤ⤢ΤǷ夬ޤ͡

5)̻ҡե饰Ȳ줿ѥåȤ̤륰롼ֹߤʤʤΡ礭ΥѥåȤե饰Ȳ줿硢μ̻ҤƱѥåȤȤΩƤƸΥѥåȤˤ롣ɤνǺȤΩƤˤϥե饰ȥեåȤȽǤ롣

6)ե饰(3bit)1ӥåܤReserved BitȤͽ󤵤ƤΤѤޤ2ӥåܤDF(Dont Flagment)ӥåȤǡȥե饰ȲʥѥåȤʬˤʤ3ӥåܤMore FlagmentsǤꡢƱ̻ҤǤʾΥե饰Ȳ줿ѥåȤ뤫򼨤Ʊ켱̻ҤΥѥåȤǡΥӥåȤ̵ΤǽѥåȤˤʤ롣

7)ե饰ȥեå(13ӥåȡˡե饰Ȳ줿ѥåȤΰ֤򤷤᤹ˤäơʬ䤵줿Ʊ켱̻ҤΥѥåȤȤΩƽʬ롣ƬѥåȤΥե饰ȥեåȤ0

8)TTL(Time To Live):ΥѥåȤ¸֡̾128Ϥޤꡢ롼Ķ1ĤĸäƤ0ˤʤä餳ΥѥåȤѴ롣εǽʤȡͥåȥʱήѥåȤ¸ߤƤޤ

9)ץȥֹ(8ӥåȡˡ
 ץȥֹϸҡʲˤޤ

10)إåå(8ӥåȡˡإåƤǧ뤿Τ

11)IPɥ쥹(32ӥåȡˡIPɥ쥹

12)IPɥ쥹(32ӥåȡˡIPɥ쥹

13)ץ(32ӥå x N:ä˻Ȥʤ롼ƥ󥰤پʤɤΥץ뤳ȤǤ롣IPѥåȤ32ܤˤɬפ뤿ᡢ;äʬϵͤʪ롣2)Hedder LengthȴϢץСͤ礭ʤ롣

ǤϡIPإåȤƤ롣
H18NW 22
IPv4IPإå˴ޤޤΤϤɤ줫

MACɥ쥹ݡֹ
ֹ桡¸߻֡TTL

򡧥

ץȥֹ
ֹ桡ץȥ롡
1 ICMP Internet Control Message Protocol  
2 IGMP Internet Group Management Protocol  
6 TCP  Transmission Control Protocol   
8 EGP  Exterior Gateway Protocol  
9 IGP  any private interior gateway    
17 UDP  User Datagram Protocol   
41 IPv6  
46 RSVP Reservation Protocol   
47 GRE  General Routing Encapsulation  
50 ESP  Encap Security Payload 
51 AH  Authentication Header
58 IPv6-ICMP ICMP for IPv6   
88 EIGRP      
89 OSPF      
103 PIM   Protocol Independent Multicast  
112 VRRP Virtual Router Redundancy Protocol 
133 FC Fibre Channel 


ݥ󥵡ɥ

ΥڡΥȥåץ