{"id":261,"date":"2016-10-26T16:37:54","date_gmt":"2016-10-26T07:37:54","guid":{"rendered":"http:\/\/jook.pe.kr\/?p=261"},"modified":"2016-10-26T16:37:54","modified_gmt":"2016-10-26T07:37:54","slug":"%eb%9d%bc%ec%9a%b0%ed%8c%85%ed%85%8c%ec%9d%b4%eb%b8%94-%ec%b6%94%ea%b0%80%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/jook.pe.kr\/?p=261","title":{"rendered":"\ub77c\uc6b0\ud305\ud14c\uc774\ube14 \ucd94\uac00\ud558\uae30"},"content":{"rendered":"<p>1. \uc218\ub3d9 \ub77c\uc6b0\ud305 \ud14c\uc774\ube14 \ucd94\uac00<\/p>\n<p>&nbsp;<\/p>\n<p>&#8211; \uc218\ub3d9\uc73c\ub85c \ub77c\uc6b0\ud305 \ud14c\uc774\ube14\uc744 \ucd94\uac00\ud560 \uacbd\uc6b0\ub294 \uc2dc\uc2a4\ud15c\uc744 \ub9ac\ubd80\ud305\ud560 \ub54c \uc7ac \uc124\uc815\ud574\uc57c \ud55c\ub2e4<\/p>\n<p>&nbsp;<\/p>\n<p>route add {-host|-net} Target[\/prefix] [gw Gw] [dev]<br \/>\nroute del {-host|-net} Target[\/prefix] [gw Gw] [dev]<\/p>\n<p>[root@localhost ~]# route add -net 192.168.10.0\/24 gw 192.168.0.1 dev eth1<br \/>\n[root@localhost ~]# route add -host 192.168.20.100 gw 192.168.0.1 dev eth1<\/p>\n<p>&nbsp;<br \/>\n2. \ubd80\ud305\uc2dc \uc790\ub3d9 \ud65c\uc131\ud654 \ub418\ub3c4\ub85d \ub77c\uc6b0\ud305 \ud14c\uc774\ube14 \ucd94\uac00<\/p>\n<p>&nbsp;<\/p>\n<p>&#8211; \uc544\ub798\uc640 \uac19\uc774 \ub450\uac00\uc9c0 \ud615\uc2dd\uc73c\ub85c \uc124\uc815\ud30c\uc77c\uc5d0 \ucd94\uac00 \ud560 \uc218 \uc788\ub2e4<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost ~]# cat \/etc\/sysconfig\/network-scripts\/route-eth1<br \/>\n192.168.10.0\/24 via 192.168.0.1<br \/>\n192.168.20.100 via 192.168.0.1<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost ~]# cat \/etc\/sysconfig\/network-scripts\/route-eth1<br \/>\nADDRESS0=192.168.10.0<br \/>\nNETMASK0=255.255.255.0<br \/>\nGATEWAY0=192.168.0.1<br \/>\nADDRESS1=192.168.20.100<br \/>\nNETMASK1=255.255.255.255<br \/>\nGATEWAY1=192.168.0.1<\/p>\n<p>&nbsp;<br \/>\n3. Routing table \uc801\uc6a9<\/p>\n<p>&#8211; \uc218\ub3d9\uc73c\ub85c \ub77c\uc6b0\ud305 \ud14c\uc774\ube14\uc744 \ucd94\uac00\ud55c \uacbd\uc6b0\ub294 route \uba85\ub839\uc73c\ub85c \ubc14\ub85c \ud655\uc778\uc774 \uac00\ub2a5\ud558\ub2e4<br \/>\n\uc124\uc815\ud30c\uc77c\uc5d0 \ucd94\uac00\ud55c \uacbd\uc6b0\ub294 network \ub370\ubaac\uc744 \ub9ac\uc2a4\ud0c0\ud2b8 \ud558\uac70\ub098 \/etc\/sysconfig\/network-scripts \ub514\ub809\ud1a0\ub9ac\uc548\uc5d0 \uc788\ub294 ifup-routes \uba85\ub839\uc744 \uc0ac\uc6a9\ud55c\ub2e4.<\/p>\n<p>[root@localhost ~]# cd \/etc\/sysconfig\/network-scripts\/<br \/>\n[root@localhost network-scripts]# .\/ifup-routes eth1<\/p>\n<p>&nbsp;<br \/>\n4. Routing table \ud655\uc778<\/p>\n<p>&nbsp;<\/p>\n<p>&#8211; route \uba85\ub839 \ub610\ub294 route -n \uc73c\ub85c \ud655\uc778<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost ~]# route<br \/>\nKernel IP routing table<br \/>\nDestination Gateway Genmask Flags Metric Ref Use Iface<br \/>\n192.168.0.0 * 255.255.255.0 U 0 0 0 eth0<br \/>\n192.168.10.0 192.168.0.1 255.255.255.0 U 0 0 0 eth1<br \/>\n192.168.20.100 192.168.0.1 255.255.255.255 U 0 0 0 eth1<br \/>\n169.254.0.0 * 255.255.0.0 U 0 0 0 eth0<br \/>\ndefault 192.168.32.2 0.0.0.0 UG 0 0 0 eth0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \uc218\ub3d9 \ub77c\uc6b0\ud305 \ud14c\uc774\ube14 \ucd94\uac00 &nbsp; &#8211; \uc218\ub3d9\uc73c\ub85c \ub77c\uc6b0\ud305 \ud14c\uc774\ube14\uc744 \ucd94\uac00\ud560 \uacbd\uc6b0\ub294 \uc2dc\uc2a4\ud15c\uc744 \ub9ac\ubd80\ud305\ud560 \ub54c \uc7ac \uc124\uc815\ud574\uc57c \ud55c\ub2e4 &nbsp; route<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,7],"tags":[],"_links":{"self":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts\/261"}],"collection":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=261"}],"version-history":[{"count":0,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts\/261\/revisions"}],"wp:attachment":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=261"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}