LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: wanshi83

双网卡的奇怪问题

[复制链接]
 楼主| 发表于 2004-12-21 11:32:57 | 显示全部楼层
有没有人能帮忙解答?困惑了很久阿……
 楼主| 发表于 2004-12-24 14:42:21 | 显示全部楼层
已经解决了^_^
烦了俺挺久的
ip rule add from (YourFirstIP) to 192.168.0.0/24 table 1

ip rule add from (YourSecondIP) to 192.168.0.0/24 table 2

然后我们再添加路由表,命令如下

ip route add to 192.168.0.0/24 dev eth0 scope link protocol kernel src (YourFirstIP) table 1

ip route add to 192.168.0.0/24 dev eth1 scope link protocol kernel src (YourSecondIP) table 2
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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