마음의 안정을 찾기 위하여 - 두개의 랜카드에서 원하는 랜카드를 통해 데이타를 보낼려면
2260809
483
315
관리자새글쓰기
태그위치로그방명록
별일없다의 생각
dawnsea's me2day/2010
색상(RGB)코드 추출기(Color...
Connection Generator/2010
최승호PD, '4대강 거짓말 검...
Green Monkey**/2010
Syng의 생각
syng's me2DAY/2010
천재 작곡가 윤일상이 기획,...
엘븐킹's Digital Factory/2010
두개의 랜카드에서 원하는 랜카드를 통해 데이타를 보낼려면
Windows | 2010/06/24 12:29
[두개의 랜카드가 장착되어 있는 PC]
1번 랜카드 : 192.168.10.2  - 인터넷 서핑
2번 랜카드 : 192.168.10.3 - 장비와 통신

[장비 아이피]
1번 장비 아이피 : 10.1.1.2
2번 장비 아이피 : 10.1.1.3


위의 상황에서 2번 랜카드만을 이용해서 장비와 통신을 하고자 하려면 어떻게 해야할까?
이러한 상황을 해결하기 위해서 사용되는 명령어가 바로 "route" 명령어이다.

route 명령어의 도움말은 다음과 같다.
Manipulates network routing tables.

ROUTE [-f] [-p] [command [destination]
                  [MASK netmask]  [gateway] [METRIC metric]  [IF interface]

  -f           Clears the routing tables of all gateway entries.  If this is
               used in conjunction with one of the commands, the tables are
               cleared prior to running the command.
  -p           When used with the ADD command, makes a route persistent across
               boots of the system. By default, routes are not preserved
               when the system is restarted. Ignored for all other commands,
               which always affect the appropriate persistent routes. This
               option is not supported in Windows 95.
  command      One of these:
                 PRINT     Prints  a route
                 ADD       Adds    a route
                 DELETE    Deletes a route
                 CHANGE    Modifies an existing route
  destination  Specifies the host.
  MASK         Specifies that the next parameter is the 'netmask' value.
  netmask      Specifies a subnet mask value for this route entry.
               If not specified, it defaults to 255.255.255.255.
  gateway      Specifies gateway.
  interface    the interface number for the specified route.
  METRIC       specifies the metric, ie. cost for the destination.

All symbolic names used for destination are looked up in the network database
file NETWORKS. The symbolic names for gateway are looked up in the host name
database file HOSTS.

If the command is PRINT or DELETE. Destination or gateway can be a wildcard,
(wildcard is specified as a star '*'), or the gateway argument may be omitted.

If Dest contains a * or ?, it is treated as a shell pattern, and only
matching destination routes are printed. The '*' matches any string,
and '?' matches any one char. Examples: 157.*.1, 157.*, 127.*, *224*.
Diagnostic Notes:
    Invalid MASK generates an error, that is when (DEST & MASK) != DEST.
    Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1
             The route addition failed: The specified mask parameter is invalid.
 (Destination & Mask) != Destination.

Examples:

    > route PRINT
    > route ADD 157.0.0.0 MASK 255.0.0.0  157.55.80.1 METRIC 3 IF 2
             destination^      ^mask      ^gateway     metric^    ^
                                                         Interface^
      If IF is not given, it tries to find the best interface for a given
      gateway.
    > route PRINT
    > route PRINT 157*          .... Only prints those matching 157*
    > route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2

      CHANGE is used to modify gateway and/or metric only.
    > route PRINT
    > route DELETE 157.0.0.0
    > route PRINT


[정답]
route add 10.1.1.2 mask 255.255.255.255 192.168.0.3
route add 10.1.1.3 mask 255.255.255.255 192.168.0.3

[참고]
10.1.1.x 대역을 전부 192.168.0.3으로 보내고 싶으면 다음과 같이 하면 됩니다.

route add 10.1.1.0 mask 255.255.255.0 192.168.0.3

※ route add시 "-P"옵션을 부여하면 윈도우 부팅후에도 route 추가 내역이 지속해서 적용된다.

2010/06/24 12:29 2010/06/24 12:29
Article tag list Go to top
View Comment 3
Trackback URL :: 이 글에는 트랙백을 보낼 수 없습니다
From. syng's me2DAY 2010/06/24 15:57삭제
Syng의 생각
두개의 랜카드에서 원하는 랜카드를 통해 데이타를 보낼려면 http://j.mp/dddu0T
From. 구차니 2010/06/24 17:00
답글달기삭제
음.. 갑자기 드는 생각인데
route add 10.1.1.3 mask 255.255.255.255 192.168.0.3 대신
route add 10.1.1.3/24 192.168.0.3 이렇게도 되려나요? ^^;
From. 행복을찾아서 2010/06/25 12:57
답글달기삭제
안녕하세요~ㅎ 궁금해서 여쭤봐요~
상위처럼 셋팅하면 PC와 장비가 공유가 가능한지요??(네트웍 초보라)
From. 그리움 2010/06/26 11:06
삭제
공유 문제와는 별개의 내용입니다.
위의 예는 두개의 랜카드를 사용중일때 두개의 랜카드중 특정 랜카드만을 이용해서 특정 대상(위에서는 장비라고 지칭하였습니다)과의 통신을 하도록 하기 위한 셋팅을 설명한 내용입니다.
PREV : [1] : NEXT
 
 
 
 
: [1] ... [229][230][231][232][233][234][235][236][237] ... [936] :
«   2024/03   »
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
전체 (936)
출판 준비 (0)
My-Pro... (41)
사는 ... (517)
블로그... (22)
My Lib... (32)
게임 ... (23)
개발관... (3)
Smart ... (1)
Delphi (93)
C Builder (0)
Object... (0)
VC, MF... (10)
Window... (1)
Open API (3)
Visual... (0)
Java, JSP (2)
ASP.NET (0)
PHP (5)
Database (12)
리눅스 (29)
Windows (25)
Device... (1)
Embedded (1)
게임 ... (0)
Web Se... (2)
Web, S... (21)
잡다한... (6)
프로젝트 (0)
Personal (0)
대통령... (13)
Link (2)