[Question] Một số IP command lines |
06/09/2008 09:51:36 (+0700) | #1 | 149972 |
|
Xuan Hy
Locked
|
0 |
|
|
Joined: 29/06/2008 12:40:55
Messages: 75
Offline
|
|
Hôm nay mình xin chia sẽ vài lệnh trong các OS khác nhau, bạn nào có lệnh nào hay thì them vào nha
==========================
DOS / Windows IP Command Lines
Display Connection Configuration: ipconfig /all
Display DNS Cache Info Configuration: ipconfig /displaydns
Clear DNS Cache: ipconfig /flushdns
Release All IP Address Connections: ipconfig /release
Renew All IP Address Connections: ipconfig /renew
Re-Register the DNS connections: ipconfig /registerdns
Change/Modify DHCP Class ID: ipconfig /setclassid
Network Connections: control netconnections
Network Setup Wizard: netsetup.cpl
Test Connectivity: ping www.x.com [x = tên web site]
Trace IP address Route: tracert
Displays the TCP/IP protocol sessions: netstat
Display Local Route: route
Display Resolved MAC Addresses: arp
Display Name of Computer Currently on: hostname
Display DHCP Class Information: ipconfig /showclassid
UNIX IP Command Lines
Display Current Config for all NIC's: ifconfig
Display Current Config for dc0: ifconfig dc0
Assign IP/Subnet: ifconfig dc0 inet 192.168.1.2 netmask 255.255.255.0
Assign Gateway: route delete default && route add default 192.168.1.1
Assign multiple IP's: ifconfig dc0:0 192.168.1.2
Assign second IP: ifconfig dc0:1 192.168.1.3
Disable network card: ifconfig dc0 down
Enable network card: ifconfig dc0 up
Linux IP Command Lines
Display Current Config for all NIC's: ifconfig
Display Current Config for eth0: ifconfig eth0
Assign IP: ifconfig eth0 192.168.1.2
Assign IP/Subnet: ifconfig eth0 192.168.1.2 netmask 255.255.255.0
Assign Default Gateway: route add default gw 192.168.1.1
Assign multiple IP's: ifconfig eth0:0 192.168.1.2
Assign second IP: ifconfig eth0:1 192.168.1.3
Disable network card: ifconfig eth0 down
Enable network card: ifconfig eth0 up
View current routing table: route "or" route -n
View arp cache: arp "or" arp -n
Ping: ping -c 3 192.168.1.1
Trace Route: traceroute www.x.com [x = tên web site]
Trace Path: tracepath www.x.com [x = tên web site]
DNS Test: host www.x.com [x = tên web site]
Advanced DNS Test: dig www.x.com [x = tên web site]
Reverse Lookup: host 66.11.119.69
Advanced Reverse Lookup: dig -x 66.11.119.69
Xuân Hy |
|
|
|
|
[Question] Re: Một số IP command lines |
06/09/2008 10:35:06 (+0700) | #2 | 149979 |
congminh923
Member
|
0 |
|
|
Joined: 26/02/2008 22:35:52
Messages: 278
Location:
Offline
|
|
Mình xin bổ sung lệnh netsh dùng cho windows
Thông tin : vào cmd, gõ netsh /? và bấm enter |
|
|
Users currently in here |
1 Anonymous
|
|
Powered by JForum - Extended by HVAOnline
hvaonline.net | hvaforum.net | hvazone.net | hvanews.net | vnhacker.org
1999 - 2013 ©
v2012|0504|218|
|
|