找回密码
 注册
查看: 430|回复: 0

route and static-routes?我快要晕了~

[复制链接]
发表于 2003-2-24 22:49:55 | 显示全部楼层 |阅读模式
route and static-routes?我快要晕了~!~
我用的是redhat 8.0 ,单网卡。
我的/etc/sysconfig/network是:
NETWORKING=yes
HOSTNAME=qflinux
GATEWAY=192.168.0.1

我的/etc/sysconfig/static-routes是:
eth0 net 192.168.1.0 netmask 255.255.255.0 gw 192.168.0.254
eth0 net 192.168.2.0 netmask 255.255.255.0 gw 192.168.0.254
eth0 net 192.168.3.0 netmask 255.255.255.0 gw 192.168.0.254

还有
[root@qflinux sysconfig]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:05:5D:26:AE:69
          inet addr:192.168.0.254  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8084 errors:0 dropped:0 overruns:0 frame:0
          TX packets:269 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:653535 (638.2 Kb)  TX bytes:31880 (31.1 Kb)
          Interrupt:5 Base address:0x9000

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:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:700 (700.0 b)  TX bytes:700 (700.0 b)

[root@qflinux root]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     192.168.0.254   255.255.255.0   UG    0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-3-6 02:13 , Processed in 0.023252 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表