1. ARP: display and modifies the IP-to-Physical address translation table used by ARP
parameter: ARP -s inet_addr eth_addr [if_addr]
ARP -d inet_addr [if_addr]
ARP -a [inet_addr] [-N if_addr]
2. Netstat: display protocol statistic and current TCP/IP networking connection
parameter: netstat [-a] [-b] [-e] [-n] [-o] [-p proto] [-r] [-s] [-v] [interval]
3. Route: manipulates network routing tables
parameter: route [-f] [-p] [command[dest][MASK netmask][gateway]
[METRIC metric][IF interface]
command: PRINT ADD DELETE CHANGE
4. Net User: create and modifies user accounts (only on server)
parameter: net user
[username[password|*][options]][/DOMAIN]
username{password|*}/ADD[optons][/DOMAIN]
username[/DELETE][/DOMAIN]
5. Ipconfig: display IP addr, subnet mask, default gateway for each adapter bound to TCP/IP
parameter: ipconfig [/?|/all|/renew[adapter]|/release[adapter]|
/flushdns|/displaydns|/registerdns|/showclassid adapter|
/setclassid adapter [classid]]
6. Nbtstat: display protocol statistics & current TCP/IP connection using NBT (netBIOS over TCP/IP)
parameter: nbtstat [[-a RemoteName][-A IP addr][-C][-n][-r][-R][-RR][-s][-S][interval]]
7. Tracert
parameter: tracert [-d][-h max_hops][-j host-list][-w timeout] target
8. Ping
parameter: 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
9. Telnet
parameter: telnet [-a][-e escape char][-f logfile][-l user][-t term][host[port]]
10. Netsh: interactive CLI utility, allow you to list & change network layer
11. Nslookup: tools for query DNS
> set type=any/mx/ns
> server [name]|[IP]
12. Pathping: combine ping and tracert
parameter: pathping [-g host-list][-h max_hops][-i addr][-n][-p period]
[-q num_queries][-w timeout][-P][-R][-T][-4][-6] target
Thursday, April 23, 2009
Thursday, April 16, 2009
SSMTP - sending email from terminal
I just installing this application to sent email from command line/ terminal, it's call ssmtp. For ubuntu/ debian distro, you can trigger this command:
# sudo apt-get install ssmtp
After that you can edit /etc/ssmtp/ssmtp.conf:
AuthUser=[email address]
AuthPass=[email password]
FromLineOvveride=YES
mailhub=[smtp server]:[port]
UseSTARTTLS=YES
And you can test it by typing this simple script:
$ echo "This is a test" | ssmtp -s "Test" [destination email address]
# sudo apt-get install ssmtp
After that you can edit /etc/ssmtp/ssmtp.conf:
AuthUser=[email address]
AuthPass=[email password]
FromLineOvveride=YES
mailhub=[smtp server]:[port]
UseSTARTTLS=YES
And you can test it by typing this simple script:
$ echo "This is a test" | ssmtp -s "Test" [destination email address]
Wednesday, April 15, 2009
WM 6.5 for Treo 750
About two weeks ago, I had a chance to injecting Windows Mobile 6.5 (cooked ROM) to my old phone Palm Treo 750v :) Although it says that the specification of Palm Treo 750v is not qualified for this new OS from Microsoft, I just can't hold on to the temptation to see much more new features offered by it.
After a short time of trial, I decided to go back to Windows Mobile 6.1 (also a cooked ROM). It is not that I don't like WM 6.5, but it's more that this cooked ROM doesn't fit well to Palm device. It just lost all the simplicity and features that Palm devices have (I feel it when using my Palm Treo with WM 5.0, WM 6.0 and now WM 6.1). The major problem is I cannot use my Palm Treo without stylus on WM 6.5, I have to pull out my stylus everytime. That's never happened on WM 5.0 to 6.1 :D
Honestly, new Home UI, hexagon-like (without grid line) Program list, and excited feeling that my old gadget was able injected with this brand new OS is so great! Of course I'm still waiting that this cooked ROM will be available to be compatible with Palm device especially Palm Treo 750 :D Can't wait!
*For references and download this cooked ROM, you can go here
After a short time of trial, I decided to go back to Windows Mobile 6.1 (also a cooked ROM). It is not that I don't like WM 6.5, but it's more that this cooked ROM doesn't fit well to Palm device. It just lost all the simplicity and features that Palm devices have (I feel it when using my Palm Treo with WM 5.0, WM 6.0 and now WM 6.1). The major problem is I cannot use my Palm Treo without stylus on WM 6.5, I have to pull out my stylus everytime. That's never happened on WM 5.0 to 6.1 :D
Honestly, new Home UI, hexagon-like (without grid line) Program list, and excited feeling that my old gadget was able injected with this brand new OS is so great! Of course I'm still waiting that this cooked ROM will be available to be compatible with Palm device especially Palm Treo 750 :D Can't wait!
*For references and download this cooked ROM, you can go here
Saturday, January 24, 2009
Basic Cisco Router settings for LC connection
Here is how-to configure (most) Cisco Routers for Leased-Line connection:
> enable
# configure terminal
# interface Serial 0/0
# description [write description for current interface] => usually "Connected to ISP"
# ip address [IP] [subnet mask]
# no shutdown => enable current interface
# interface FastEthernet 0/0
# description [write description for current interface] => usually "Connected to LAN"
# ip address [IP] [subnet mask]
# no shutdown => enable current interface
# exit
# ip name-server [DNS1] [DNS2] .. [DNS 5] => up to 5 DNS
# ip route [destination network] [subnet mask] [host]
# exit
after that, you can check your configuration by typing this command:
# show running-config
don't forget to save it:
# write
and it's done! :-)
Labels:
cisco
Subscribe to:
Posts (Atom)