免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1531 | 回复: 4
打印 上一主题 下一主题

node1上的网关是多少?node2上的网关是多少呢? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-09-24 10:08 |只看该作者 |倒序浏览
VMware下,安装10g,一共2个节点,分别叫做 node1、node2。

在node1节点上, 运行 route,看到的 结果是:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.100.0   *               255.255.255.0   U     0      0        0 eth0
10.10.17.0      *               255.255.255.0   U     0      0        0 eth1
192.168.9.0     *               255.255.255.0   U     0      0        0 eth2
169.254.0.0     *               255.255.0.0     U     0      0        0 eth2
default         node1           0.0.0.0         UG    0      0        0 eth0
default         node1           0.0.0.0         UG    0      0        0 eth0


在node2节点上,运行route,看到的 结果是:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.100.0   *               255.255.255.0   U     0      0        0 eth0
10.10.17.0      *               255.255.255.0   U     0      0        0 eth1
192.168.9.0     *               255.255.255.0   U     0      0        0 eth2
169.254.0.0     *               255.255.0.0     U     0      0        0 eth2
default         192.168.9.1     0.0.0.0         UG    0      0        0 eth2


我想问的是:node1上的网关是多少?node2上的网关是多少呢?

非常谢谢大家啊。

论坛徽章:
59
2015七夕节徽章
日期:2015-08-24 11:17:25ChinaUnix专家徽章
日期:2015-07-20 09:19:30每周论坛发贴之星
日期:2015-07-20 09:19:42ChinaUnix元老
日期:2015-07-20 11:04:38荣誉版主
日期:2015-07-20 11:05:19巳蛇
日期:2015-07-20 11:05:26CU十二周年纪念徽章
日期:2015-07-20 11:05:27IT运维版块每日发帖之星
日期:2015-07-20 11:05:34操作系统版块每日发帖之星
日期:2015-07-20 11:05:36程序设计版块每日发帖之星
日期:2015-07-20 11:05:40数据库技术版块每日发帖之星
日期:2015-07-20 11:05:432015年辞旧岁徽章
日期:2015-07-20 11:05:44
2 [报告]
发表于 2010-09-24 11:23 |只看该作者
是你自己配置的吗?默认来说,VMWARE的网关(采用NAT和HOST)都是x.x.x.2。

论坛徽章:
0
3 [报告]
发表于 2010-09-24 14:24 |只看该作者
我的节点,不论node1、还是node2,都含有2个网卡,网卡全部采用Bridged连接方式。

如果不管VMware的环境,单从 Linux下的 route 的 结果来看:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.100.0   *               255.255.255.0   U     0      0        0 eth0
10.10.17.0      *               255.255.255.0   U     0      0        0 eth1
192.168.9.0     *               255.255.255.0   U     0      0        0 eth2
169.254.0.0     *               255.255.0.0     U     0      0        0 eth2
default         node1           0.0.0.0         UG    0      0        0 eth0
default         node1           0.0.0.0         UG    0      0        0 eth0

表明的网关 是 多少呢?

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.100.0   *               255.255.255.0   U     0      0        0 eth0
10.10.17.0      *               255.255.255.0   U     0      0        0 eth1
192.168.9.0     *               255.255.255.0   U     0      0        0 eth2
169.254.0.0     *               255.255.0.0     U     0      0        0 eth2
default         192.168.9.1     0.0.0.0         UG    0      0        0 eth2

表明的网关 是 多少呢?


我看不懂,不好意思。

谢谢大家。
一路征程一路笑 该用户已被删除
4 [报告]
发表于 2010-09-24 14:43 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
5 [报告]
发表于 2010-09-25 13:35 |只看该作者
也就是说:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.100.0   *               255.255.255.0   U     0      0        0 eth0
10.10.17.0      *               255.255.255.0   U     0      0        0 eth1
192.168.9.0     *               255.255.255.0   U     0      0        0 eth2
169.254.0.0     *               255.255.0.0     U     0      0        0 eth2
default         node1           0.0.0.0         UG    0      0        0 eth0
default         node1           0.0.0.0         UG    0      0        0 eth0

表明的网关 是  node1,

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.100.0   *               255.255.255.0   U     0      0        0 eth0
10.10.17.0      *               255.255.255.0   U     0      0        0 eth1
192.168.9.0     *               255.255.255.0   U     0      0        0 eth2
169.254.0.0     *               255.255.0.0     U     0      0        0 eth2
default         192.168.9.1     0.0.0.0         UG    0      0        0 eth2

表明的网关 是 192.168.9.1, 是吗?


非常谢谢大家啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP