<pingmachine_name > **USE**--( Check if you can contact another machine [give the machine's name Or IP]. Press [<Ctrl>C] when done [it keeps going]),
<route -n > **USE**--( It Shows the kernel routing table.),
<nslookup host_to_find > **USE**--( Query your default domain name server [DNS] for an Internet name [Or IP number] host_to_find, This way you can check if your DNS works, You can also find out the name of the host of which you only know the IP number),
<traceroute host_to_trace > **USE**--( Have a look how you messages travelled to[ host_to_trace]-which is either a host name or IP number ),
<ipfwadm -F -p m > **USE**--( [for RH5.2, seen next command for RH6.0],Set up the firewall IP forwarding policy to masquerading, Purpose:-- All computers from your home network will appear to the outside world as one very busy machine and for example- You will be allowed to browse the Internet from all computers at once.),
<echo 1 > /proc/sys/net/ipv4/ip_forward >
<ipfwadm-wrapper -F -p deny >
<ipfwadm-wrapper -F -a m -S xxx.xxx.xxx.0/24 -D 0.0.0.0/0 > **USE**--( [three commands, RH6.0], Does the same as the previous command. Substitute the "x"s with digits of your class "C" IP address that you assigned to your home network ),
<ifconfig > **USE**--( [As root] Display info on the network interfaces Currently active (ethernet, ppp, etc), Your first ethernet should show up as eth0, second as eth1 etc, first ppp over modem as ppp0, second as ppp1 etc, The "lo" is the "loopback only" interface which should be always active, Use the options [see <ifconfig --help>] to configure the interfaces. ),
<ifup interface_name > **USE**--( [/sbin/ifup to it run as a user] Startup a network interface,For e.g as follows:
ifup eth0
ifup ppp0
Users can start up or shutdown the ppp interface only when the right permission was checked during the ppp setup (using netconf ), To start a ppp interface [Dial-up Connection]. I normally use kppp available under kde menu "internet".),
<ifdown interface_name > **USE**--( [/sbin/ifdown to run it as a user], Shut down the network interface.),
<netstat | more > **USE**--( Displays a lot information on the status of your network.),.
No comments:
Post a Comment