Chinaunix首页 | 论坛 | 博客
  • 博客访问: 537460
  • 博文数量: 105
  • 博客积分: 6010
  • 博客等级: 准将
  • 技术积分: 1132
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-15 09:57
文章分类

全部博文(105)

文章存档

2011年(1)

2009年(41)

2008年(63)

我的朋友

分类: LINUX

2008-10-16 17:03:46

解决方法:

   添加静态路由
添加到网络的路由

QUOTE:
# route add –net IP netmask MASK eth0


# route add –net IP netmask MASK gw IP


# route add –net IP/24 eth1

添加默认网关

QUOTE:
# route add default gw IP

[root@dxb network-scripts]# route add -net 192.168.128.0 netmask 255.255.255.0 gw 192.168.128.1 dev eth0

[root@dxb network-scripts]# netstat -r

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.228.0   192.168.128.1 255.255.255.0   UG        0 0          0 eth0
192.168.228.0   *               255.255.255.0   U         0 0          0 eth0
192.168.1.0     *               255.255.255.0   U         0 0          0 eth1
default         192.168.1.254   0.0.0.0         UG        0 0          0 eth1
[root@dxb network-scripts]#
阅读(775) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~