| Free Software at Schools: Installing and Maintaining a Skolelinux/Debian-edu Network; Based on Debian Sarge, prerelease pr05 | ||
|---|---|---|
| Prev | Chapter 3. Firewall/Router for Skolelinux/Debian-edu | Next |
Useful commands in Coyote Linux.
ping
Useful to find out if the network is working. This command will see if there is any connection to Skolelinux/Debian-edu main server
coyote# ping -c5 10.0.2.2 PING 10.0.2.2 (10.0.2.2): 56 data bytes 64 bytes from 10.0.2.2: icmp_seq=0 ttl=64 time=0.9 ms 64 bytes from 10.0.2.2: icmp_seq=1 ttl=64 time=0.5 ms
uptime
This command gives you the time Coyote Linux has been running since last boot.
coyote# uptime 2:37pm up 80 days, 7:55, load average: 0.00, 0.00, 0.00
dmesg
This command prints the information that the Linux kernel has found on your machine, things such as amount of RAM, CPU, network cards. If the output from dmesg is too much for the size of your screen, then you can pipe the output to the pager 'more', and use SPACE to read it all,
dmesg|more
ifconfig
Shows verbose information about your network cards.
coyote# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:FC:F8:D2:44
inet addr:10.0.2.1 Bcast:10.0.3.255 Mask:255.255.254.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:314723 errors:0 dropped:0 overruns:0 frame:0
TX packets:312105 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:53700845 (51.2 MiB) TX bytes:277496136 (264.6 MiB)
Interrupt:11 Base address:0x7000
eth1 Link encap:Ethernet HWaddr 00:E0:18:A8:B1:BA
inet addr:192.168.100.133 Bcast:192.168.100.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:307395 errors:0 dropped:0 overruns:0 frame:0
TX packets:281202 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:272404311 (259.7 MiB) TX bytes:47880640 (45.6 MiB)
Interrupt:10 Base address:0xb800 Memory:e3000000-e3000038
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:14565 errors:0 dropped:0 overruns:0 frame:0
TX packets:14565 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1290756 (1.2 MiB) TX bytes:1290756 (1.2 MiB)
lsmod
This command lists loaded driver modules- useful to see which driver modules are used by the network cards.
coyote# lsmod Module Size Used by eepro100 17516 1 3c59x 24408 1 mii 1852 0 [eepro100] ip_nat_quake3 1608 0 (unused) ip_nat_mms 2448 0 (unused) ip_nat_h323 2044 0 (unused) ip_nat_amanda 1020 0 (unused)
In this listing, you'll see that the network card driver modules Intel pro100 and 3com series 3c59x which include 3c590, 3c595, 3c900, 3c905 are loaded. See Section 3.12
route
traceroute
Useful to trace the route a network packet takes; a nice way to find out where the problem really lies.
showcfg
Another command that gives information about the state of the network cards.
Coyote running configuration display utility. Internet (eth1): UP LAN network (eth0): UP -------------Internet configuration-------------- IP Address 192.168.100.133 (Static) Netmask 255.255.255.0 Gateway 192.168.100.2 ----------------LAN configuration---------------- IP Address 10.0.2.1 Netmask 255.255.254.0 Broadcast 10.0.3.255 ----------------DNS configuration---------------- domain localdomain nameserver 213.184.200.1 nameserver 213.184.200.2 ------------------------------------------------- 10:51am up 7 days, 20:53, load average: 0.00, 0.00, 0.00 Press enter to return to system menu.
free
Use this command to see how much RAM you have in the machine, and how much is being used. This machine has 32MB of RAM.
coyote# free
total used free shared buffers
Mem: 30860 6004 24856 0 0
Swap: 0 0 0
Total: 30860 6004 24856
menu
This commands starts the Coyote Linux Menu
Coyote Linux Gateway -- Configuration Menu 1) Edit main configuration file 2) Change system password 3) Edit rc.local script file 4) Custom firewall rules file 5) Edit firewall configuration 6) Edit port forward configuration c) Show running configuration f) Reload firewall r) Reboot system w) Write configuration to disk
reboot
coyote#reboot
This will reboot your Coyote Linux
shutdown
coyote#halt
This will turn off your Coyote Linux