热门关键字:  ubuntu  分区  Fedora  linux系统进程  函数

linux 下常见网络故障判断

来源: 作者: 时间:2008-08-18 Tag: 点击:

使用 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]#


相关文章:
eG Citrix 监控器
Ethernet的帧格式和结构
华为(Quidway AR18-22-24)路由器配置实例
简单利用路由黑洞解决DDOS流量攻击
我的linux试验题目
如何在HMC上激活网络时间协议NTP
Resin泛解析 - 三级域名最优应用方案
Resin多域名绑定 + 泛解析
resin 负载均衡
linksys wap54g 设置注意事项
acegi RememberMe&退出&匿名登陆
vnd命令~
LINUX网卡绑定
TCP包首部
IP包首部格式
指纹锁也不靠谱 电脑“破解”六大事件!
linux配置网关
使用 SCTP 优化网络
IPv4/IPv6过渡技术和方案分析
用三个源码包libnet、libnids、libpcap轻松搭建Li
Extensible Messaging and Presence Protocol (XM
组建CISCO多层交换网络入门
CISCO多层交换机的初始配置和排错
实施和配置VLAN
理解和配置802.1Q/802.1S和802.1W生成树协议
理解和配置cisco特定的生成树协议特性和STP排错
配置第二层和第三层的特性
理解和配置VLAN间的路由选择
理解和配置多层交换
理解和配置cisco多层交换网络中的服务质量