linux 路由器信息失败,架设简单路由器失败:-(

谢谢指点。不过现在的路由表内容是

[root@centos ~]# 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 eth1

192.168.0.0     *               255.255.255.0   U     0      0        0 eth0

169.254.0.0     *               255.255.0.0     U     0      0        0 lo

default         192.168.0.153   0.0.0.0         UG    0      0        0 eth0

也不可以。

删掉网关route del default后

[root@centos ~]# 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 eth1

192.168.0.0     *               255.255.255.0   U     0      0        0 eth0

169.254.0.0     *               255.255.0.0     U     0      0        0 lo

还是在192.168.1.151上仅可以ping 192.168.0.153,不可以ping通192.168.0.2。依旧request time out 。

检查[root@centos ~]# vi /etc/sysconfig/network

NETWORKING=yes

HOSTNAME=centos.dtl.com.cn

ifconfig结果是

[root@centos ~]# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:0C:F1:E6:19:03

inet addr:192.168.0.153  Bcast:192.168.0.255  Mask:255.255.255.0

inet6 addr: fe80::20c:f1ff:fee6:1903/64 Scope:Link

UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

RX packets:6024 errors:0 dropped:0 overruns:0 frame:0

TX packets:1354 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:532134 (519.6 KiB)  TX bytes:185409 (181.0 KiB)

eth1      Link encap:Ethernet  HWaddr 00:00:E8:18:9B:5E

inet addr:192.168.1.154  Bcast:192.168.1.255  Mask:255.255.255.0

inet6 addr: fe80::200:e8ff:fe18:9b5e/64 Scope:Link

UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

RX packets:2122 errors:0 dropped:0 overruns:0 frame:0

TX packets:151 errors:3 dropped:0 overruns:0 carrier:6

collisions:0 txqueuelen:1000

RX bytes:167987 (164.0 KiB)  TX bytes:14444 (14.1 KiB)

Interrupt:10 Base address:0xcc00

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:1160 (1.1 KiB)  TX bytes:1160 (1.1 KiB)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值