반응형

시작 → 실행(R) → 열기(O) - " cmd /k ipconfig" 를 입력 여기서 /k는 쉘을 종료하지 않도록하는 명령행 옵션이다.

이렇게 쓰기 싫으면 그냥 cmd 치고 창 열어 놓고 하면 된다

Win95, 98은 cmd 가 아니고 command다


" Window ip Configuration "


그중에.. ip Address를 보면.. 지금 내 pc의 ip dhcp는 랜카드의 주소지만, Adsl등은 전화 접속 어댑터의 주소임 헷갈리지 말것


IP 해제는 " ipconfig/release 그럼 전부 다 0.0.0.0 으로 나옴

이러면 당연히 Internet이 않되고, 새로 Ip를 받을려면 " ipconfig/renew "

더 자세한 ip 정보는 " ipconfig -all "


그리고 죽어도 Command Mode는 싫다는 사람은 바탕화면에 있는 네트웍 환경에서도 할수있다


1. ipconfig

자신의 IP주소를 나타내주고 gateway,subnet mask까지
더 자세한 내용을 알고싶으시면 -all 옵션


[ 속성 ]

Error: unrecongnized or incomplete command line.

USAGE:
    ipconfig [/? | /all | /renew [adapter] | /release [adapter] |
              /flushdns | /displaydns | /registerdns |
              /showclassid adapter |
              /setclassid adapter [classid] ]

where
    adapter         Connection name
                   (wildcard characters * and ? allowed, see examples)

    Options:
       /?           Display this help message
       /all         Display full configuration information.
       /release     Release the IP address for the specified adapter.
       /renew       Renew the IP address for the specified adapter.
       /flushdns    Purges the DNS Resolver cache.
       /registerdns Refreshes all DHCP leases and re-registers DNS names
       /displaydns  Display the contents of the DNS Resolver Cache.
       /showclassid Displays all the dhcp class IDs allowed for adapter.
       /setclassid  Modifies the dhcp class id.


The default is to display only the IP address, subnet mask and
default gateway for each adapter bound to TCP/IP.


For Release and Renew, if no adapter name is specified, then the IP address leases for all adapters bound to TCP/IP will be released or renewed.


For Setclassid, if no ClassId is specified, then the ClassId is removed.


Examples:
    > ipconfig                   ... Show information.
    > ipconfig /all              ... Show detailed information
    > ipconfig /renew            ... renew all adapters
    > ipconfig /renew EL*        ... renew any connection that has its
                                     name starting with EL
    > ipconfig /release *Con*    ... release all matching connections,
                                     eg. "Local Area Connection 1" or
                                         "Local Area Connection 2"

2. arp

arp명령어는 네트워크에서 데이터를 전달할때 데이터를 교환하는 컴퓨터의 IP주소와
물리적인 주소 목록을 잠시동안 보관하는 arp cache를 볼수있도록 출력하는 명령


[ 속성 ]

Displays and modifies the IP-to-Physical address translation tables used by
address resolution protocol (ARP).

ARP -s inet_addr eth_addr [if_addr]
ARP -d inet_addr [if_addr]
ARP -a [inet_addr] [-N if_addr]

  -a            Displays current ARP entries by interrogating the current
                protocol data.  If inet_addr is specified, the IP and Physical
                addresses for only the specified computer are displayed.  If
                more than one network interface uses ARP, entries for each ARP
                table are displayed.
  -g            Same as -a.
  inet_addr     Specifies an internet address.
  -N if_addr    Displays the ARP entries for the network interface specified
                by if_addr.
  -d            Deletes the host specified by inet_addr. inet_addr may be
                wildcarded with * to delete all hosts.
  -s            Adds the host and associates the Internet address inet_addr
                with the Physical address eth_addr.  The Physical address is
                given as 6 hexadecimal bytes separated by hyphens. The entry
                is permanent.
  eth_addr      Specifies a physical address.
  if_addr       If present, this specifies the Internet address of the
                interface whose address translation table should be modified.
                If not present, the first applicable interface will be used.
Example:
  > arp -s 157.55.85.212   00-aa-00-62-c6-09  .... Adds a static entry.
  > arp -a                                    .... Displays the arp table.


3. netstat

netstat는 네트워크를 통한 접속종류와 상태를 보여주는 명령어

-a 내 네트워크에 대기중인 상태도 확인가능


-n (도메인 이름 검색 생략)스위치를 추가해주시면 좀더 빠른검색이 됨
Ex) netstat -na


-s 각각의 프로토콜에서 전송된 패킷의 양도 확인가능


LISTEN :

서버의 데몬이 떠서 접속 요청을 기다리는 상태


SYS-SENT :

로컬의 클라이언트 어플리케이션이 원격 호스트에 연결을 요청한 상태


SYN_RECEIVED :

서버가 원격 클라이언트로부터 접속 요구를 받아 클라이언트에게 응답을 하였지만 아직 클라이언트에게 확인 메시지는 받지 않은 상태


ESTABLISHED :

3 Way-Handshaking 이 완료된 후 서로 연결된 상태


FIN-WAIT1 , CLOSE-WAIT , FIN-WAIT2 :

서버에서 연결을 종료하기 위해 클라이언트에게 종결을 요청하고 회신을 받아 종료하는 과정의 상태


CLOSING :

흔하지 않지만 주로 확인 메시지가 전송도중 분실된 상태


TIME-WAIT :

연결은 종료되었지만 분실되었을지 모를 느린 세그먼트를 위해 당분간 소켓을 열어놓은 상태


CLOSED :

완전히 종료

4. nslookup

nslookup은 IP로 도메인이름을 알아보거나 도메인이름의 IP를 확인할때


[ 속성 ]

C:\>nslookup
Default Server:  ReveroF
Address:  ***.***.135.135

> help
Commands:   (identifiers are shown in uppercase, [] means optional)
NAME            - print info about the host/domain NAME using default server
NAME1 NAME2     - as above, but use NAME2 as server
help or ?       - print info on common commands
set OPTION      - set an option
    all                 - print options, current server and host
    [no]debug           - print debugging information
    [no]d2              - print exhaustive debugging information
    [no]defname         - append domain name to each query
    [no]recurse         - ask for recursive answer to query
    [no]search          - use domain search list
    [no]vc              - always use a virtual circuit
    domain=NAME         - set default domain name to NAME
    srchlist=N1[/N2/.../N6] - set domain to N1 and search list to N1,N2, etc.
    root=NAME           - set root server to NAME
    retry=X             - set number of retries to X
    timeout=X           - set initial time-out interval to X seconds
    type=X              - set query type (ex. A,ANY,CNAME,MX,NS,PTR,SOA,SRV)
    querytype=X         - same as type
    class=X             - set query class (ex. IN (Internet), ANY)
    [no]msxfr           - use MS fast zone transfer
    ixfrver=X           - current version to use in IXFR transfer request
server NAME     - set default server to NAME, using current default server
lserver NAME    - set default server to NAME, using initial server
finger [USER]   - finger the optional NAME at the current default host
root            - set current default server to the root
ls [opt] DOMAIN [> FILE] - list addresses in DOMAIN (optional: output to FILE)
    -a          -  list canonical names and aliases
    -d          -  list all records
    -t TYPE     -  list records of the given type (e.g. A,CNAME,MX,NS,PTR etc.)
view FILE           - sort an 'ls' output file and view it with pg
exit            - exit the program


5. ping

ping은 네트워크가 연결이 잘 안될때 임의의 주소로 핑을 날려서 잘받았나
확인해보는 명령어


[ 속성 ]

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
            [-r count] [-s count] [[-j host-list] | [-k host-list]]
            [-w timeout] target_name

Options:
    -t             Ping the specified host until stopped.
                   To see statistics and continue - type Control-Break;
                   To stop - type Control-C.
    -a             Resolve addresses to hostnames.
    -n count       Number of echo requests to send.
    -l size        Send buffer size.
    -f             Set Don't Fragment flag in packet.
    -i TTL         Time To Live.
    -v TOS         Type Of Service.
    -r count       Record route for count hops.
    -s count       Timestamp for count hops.
    -j host-list   Loose source route along host-list.
    -k host-list   Strict source route along host-list.
    -w timeout     Timeout in milliseconds to wait for each reply.


6. tracert
tracert는 네트워크의 병목현상을 확인하는데 도움
임의의 사이트로 접속하는동안 거치는 라우터의 IP가나오고 그에대한
그것에 대한 ping값이 보임


[ 속성 ]

반응형

+ Recent posts