- 论坛徽章:
- 0
|
系统:CentOS 5.4
本机IP: 192.168.1.173
网关: 192.168.1.1
1) ping 局限网的其它机器可以ping通。
2) ping 网关可以ping通。
3) iptables 服务已经停止。
[root@v1 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:18:F3:F3:FF:53
inet addr:192.168.1.173 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::218:f3ff:fef3:ff53/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6805 errors:0 dropped:0 overruns:0 frame:0
TX packets:1635 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1509910 (1.4 MiB) TX bytes:233939 (228.4 KiB)
Interrupt:177 Base address:0xa000
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:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1064 (1.0 KiB) TX bytes:1064 (1.0 KiB)
[root@v1 ~]# cat /etc/resolv.conf
# generated by NetworkManager, do not edit!
nameserver 202.96.134.34
nameserver 202.96.128.68
[root@v1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.1.255
HWADDR=00:18:f3:f3:ff:53
IPADDR=192.168.1.173
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
GATEWAY=192.168.1.1
TYPE=Ethernet
[root@v1 ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 |
|