메뉴 건너뛰기

조회 수 5461 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
Windows route 명령어
아래의 경우(먼저 linux route 명령어 참조)는 사실 default gateway(리눅스로 구성된..)를 만지고 있는 사람이 쓰게 된다.
그럼 게이트가 2개일때 User(대부분의 User가 Windows 시스템을 쓴다는 가정하에...)에서는 또는 default gateway가 윈도우 시스템이라면 게이트를 이동시킬 수 없는 것인가?
물론 Windows에서도 이동시킬 수 있다.
먼저 자신의 routing table을 보려면
route print
명령어를 이용하면 된다.
그리고 라우팅 추가는
route add 211.218.150.200 mask 255.255.255.255 192.168.0.2
하면 되고, 윈도우에서는 뒤에 -p옵션을 주면 컴퓨터를 리붓하더라도 없어지지 않는다.
그러면... default gateway가 있음에도 불구하고 다른 경로를 통해서 트래픽이 나가게 된다.
User Default gateway www.naver.com
192.168.0.3 192.168.0.1 ↑ ↓
↑↓ ↑ ↓
↑↓ ↑ ↓
↑↓ ↑ ↓
↑ → → → → → → → → → gate2 → → → → → → → → ↓
← ← ← ← ← ← ← ← 192.168.0.2← ← ← ← ← ← ← ← ←

route 명령어 설명은 아래 help파일 참조...


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 acros
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 inval
(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 DELETE 157.0.0.0
> route PRINT

  1. 윈도우 실행 명령어 모음

    Date2014.02.27 Views10013
    Read More
  2. 아파치 SSL 보안서버 , 보안서버인증서 : 윈도우서버

    Date2016.04.05 Views8176
    Read More
  3. windows tasklist 사용법

    Date2014.02.27 Views7552
    Read More
  4. DNS서버(네임서버) 설치

    Date2014.04.29 Views6703
    Read More
  5. 웹기획자를 꼭 필요한 파워목업 프로그램

    Date2016.08.23 Views6299
    Read More
  6. windows 방화벽 실행 오류시 복구방안

    Date2014.02.27 Views5898
    Read More
  7. Subversion으로 소스코드 관리하기

    Date2015.04.20 Views5882
    Read More
  8. 윈도우 프로세스 조회 사이트

    Date2014.02.27 Views5733
    Read More
  9. Windows 에서 route 사용하기

    Date2014.02.27 Views5461
    Read More
  10. windows 2003 server mmc 스냅인 오류

    Date2014.02.27 Views5450
    Read More
  11. IIS 구성 정보 백업/복구 이전하기

    Date2015.07.01 Views5376
    Read More
  12. Window FindStr 사용방법

    Date2014.02.27 Views5367
    Read More
  13. [windows] ftp passive mode 설정

    Date2014.02.27 Views5352
    Read More
  14. iis 6.0 업로드 및 다운로드 용량 제한

    Date2015.07.01 Views5340
    Read More
  15. iis7 설정 backup & restore(복원) 하기

    Date2014.02.27 Views5293
    Read More
  16. DNS 백업 및 복원하기

    Date2014.02.27 Views5291
    Read More
  17. DIR 명령어

    Date2014.02.27 Views5206
    Read More
  18. windows 방화벽 실행 오류시 복구방안

    Date2014.02.27 Views5177
    Read More
  19. DOS 명령어

    Date2014.02.27 Views5153
    Read More
  20. win 2003 smtp 587 설정

    Date2015.07.01 Views4991
    Read More
Board Pagination Prev 1 2 Next
/ 2

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved