Routing Table 정보추가 For Windows
조건 : 내가 사용하는 노트북에는 NIC 두개 존재하였음
0x10004 : route print에서 나오는 정보 입니다.(아래 예제에서는 0x2)
위의 명령어는 시스템을 재부팅하면 제거됩니다.
영구적으로 기록시키기 위해서는 -p 를 주어야 합니다.
route -p 위와 상동
Example
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 14 85 08 91 c4 ...... Marvell Yukon 88E8001/8003/8010 PCI Gigabit Ethernet Controller - 패킷 스케줄러 미니 포트
===========================================================================
현재 나의 노트북 (작업 이전)
Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 1f 29 83 38 92 ...... Broadcom NetLink Gigabit Ethernet - 패킷 스케줄러 미니 포트
0x20004 ...00 0b 2b 17 26 f8 ...... Realtek RTL8150 USB 10/100 Fast Ethernet Adapter - 패킷 스케줄러
미니 포트
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.24.124.1 10.24.124.29 20
0.0.0.0 0.0.0.0 150.23.13.1 150.23.13.37 20
10.24.124.0 255.255.255.128 10.24.124.29 10.24.124.29 20
10.24.124.29 255.255.255.255 127.0.0.1 127.0.0.1 20
10.255.255.255 255.255.255.255 10.24.124.29 10.24.124.29 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
150.23.13.0 255.255.255.0 150.23.13.37 150.23.13.37 20
150.23.13.37 255.255.255.255 127.0.0.1 127.0.0.1 20
150.23.255.255 255.255.255.255 150.23.13.37 150.23.13.37 20
224.0.0.0 240.0.0.0 10.24.124.29 10.24.124.29 20
224.0.0.0 240.0.0.0 150.23.13.37 150.23.13.37 20
255.255.255.255 255.255.255.255 10.24.124.29 10.24.124.29 1
255.255.255.255 255.255.255.255 150.23.13.37 150.23.13.37 1
Default Gateway: 150.23.13.1
===========================================================================
Persistent Routes:
None
현재 나의 노트북 (작업 결과)
Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 1f 29 83 38 92 ...... Broadcom NetLink Gigabit Ethernet - 패킷 스케줄러 미니 포트
0x20004 ...00 0b 2b 17 26 f8 ...... Realtek RTL8150 USB 10/100 Fast Ethernet Adapter - 패킷 스케줄러
미니 포트
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.24.124.1 10.24.124.29 20
0.0.0.0 0.0.0.0 150.23.13.1 150.23.13.37 20
10.24.124.0 255.255.255.128 10.24.124.29 10.24.124.29 20
10.24.124.0 255.255.255.128 10.24.124.1 10.24.124.29 1
10.24.124.29 255.255.255.255 127.0.0.1 127.0.0.1 20
10.255.255.255 255.255.255.255 10.24.124.29 10.24.124.29 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
150.23.13.0 255.255.255.0 150.23.13.37 150.23.13.37 20
150.23.13.37 255.255.255.255 127.0.0.1 127.0.0.1 20
150.23.255.255 255.255.255.255 150.23.13.37 150.23.13.37 20
224.0.0.0 240.0.0.0 10.24.124.29 10.24.124.29 20
224.0.0.0 240.0.0.0 150.23.13.37 150.23.13.37 20
255.255.255.255 255.255.255.255 10.24.124.29 10.24.124.29 1
255.255.255.255 255.255.255.255 150.23.13.37 150.23.13.37 1
Default Gateway: 150.23.13.1
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
10.24.124.0 255.255.255.128 10.24.124.1 1
Windows Help
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.
gateway Specifies gateway.
interface the interface number for the specified route.
METRIC specifies the metric, ie. cost for the destination.
Examples:
> route PRINT
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*
CHANGE is used to modify gateway and/or metric only.
> route PRINT
> route PRINT