| Free Software at Schools: Installing and Maintaining a Debian-Edu Network; Also Known as Skolelinux | ||
|---|---|---|
| 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
coyote#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
coyote#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
coyote#ifconfig
Shows verbose information about your network cards.
coyote# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:DA:43:7A:E9
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:27541711 errors:0 dropped:0 overruns:0 frame:0
TX packets:34408201 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:4029268333 (3842.6 MiB) TX bytes:2039998168 (1945.4 MiB)
Interrupt:14 Base address:0x8000
eth1 Link encap:Ethernet HWaddr 00:90:27:74:66:3B
inet addr:193.116.174.121 Bcast:193.156.179.127 Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34739492 errors:0 dropped:0 overruns:0 frame:0
TX packets:25470323 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:2060262113 (1964.8 MiB) TX bytes:3837976022 (3660.1 MiB)
Interrupt:12 Base address:0x1000
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:83 errors:0 dropped:0 overruns:0 frame:0
TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9112 (8.8 kiB) TX bytes:9112 (8.8 kiB)
coyote#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
coyote#route
coyote#traceroute
Useful to trace the route a network packet takes; a nice way to find out where the problem really lies.
coyote#showcfg
Another command that gives information about the state of the network cards.
Coyote running configuration display utility. Internet up (eth1): YES Local network up (eth0): YES ---------------Internet configuration------------ IP Address 193.156.172.101 (DHCP Assigned) Netmask 255.255.255.128 Gateway 193.116.172.1 ---------------Local configuration--------------- IP Address 10.0.2.1 Netmask 255.255.254.0 Broadcast 10.0.3.255 ---------------Resolver configuration------------ domain holmlia.gs.oslo.no nameserver 193.156.192.40 nameserver 193.156.192.50 ------------------------------------------------- 2:52pm up 80 days, 8:09, load average: 0.00, 0.00, 0.00
coyote#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
coyote#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