使用 ifconfig 看看是否有网络卡的运作
[root@cait-linux sysconfig]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:3D:A3:E9
inet addr:10.10.81.136 Bcast:10.10.81.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe3d:a3e9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:241487 errors:0 dropped:0 overruns:0 frame:0
TX packets:1733 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19337378 (18.4 MiB) TX bytes:177187 (173.0 KiB)
Interrupt:10 Base address:0x1400
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:7767 errors:0 dropped:0 overruns:0 frame:0
TX packets:7767 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10676226 (10.1 MiB) TX bytes:10676226 (10.1 MiB)
[root@cait-linux sysconfig]# ping -c 5 10.10.81.1
PING 10.10.81.1 (10.10.81.1) 56(84) bytes of data.
64 bytes from 10.10.81.1: icmp_seq=0 ttl=255 time=6.82 ms
64 bytes from 10.10.81.1: icmp_seq=1 ttl=255 time=1.76 ms
64 bytes from 10.10.81.1: icmp_seq=2 ttl=255 time=0.433 ms
64 bytes from 10.10.81.1: icmp_seq=3 ttl=255 time=0.724 ms
64 bytes from 10.10.81.1: icmp_seq=4 ttl=255 time=1.43 ms
--- 10.10.81.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4002ms
rtt min/avg/max/mdev = 0.433/2.235/6.826/2.344 ms, pipe 2
[root@cait-linux sysconfig]#
[root@cait-linux sysconfig]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.10.81.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 10.10.81.1 0.0.0.0 UG 0 0 0 eth0
[root@cait-linux sysconfig]#
[root@cait-linux sysconfig]# vi /etc/xinetd.d/telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}
~
[root@cait-linux sysconfig]# tail -n 10 /etc/serices
tail: cannot open `/etc/serices' for reading: No such file or directory
[root@cait-linux sysconfig]# tail -n 10 /etc/services
binkp 24554/udp # Binkley
asp 27374/tcp # Address Search Protocol
asp 27374/udp # Address Search Protocol
tfido 60177/tcp # Ifmail
tfido 60177/udp # Ifmail
fido 60179/tcp # Ifmail
fido 60179/udp # Ifmail
# Local services
[root@cait-linux sysconfig]#
