Re: 答复: 答复: 高级网络中vm获取不到ip地址问题

2014-09-24 文章 Darren Tang
如果你手动在虚拟机里面配置分配的IP地址,通信正常么

在 2014年9月24日 下午1:57,张仕博 zhang...@neusoft.com写道:

 不好意思,如下是我搭建环境的主要信息

 环境是vmware的
 两台主机,网络配置相同,第一块网卡做管理网,第四块网卡建的分布式交换机,来宾虚拟机都在分布式交换机上,并且第四块网卡连接的交换机trunk口。

 来宾网络有多个,对应不同的vlan,使用cloudstack的自定义网络(dhcp和dns服务)在分布式交换机上建出对应多个vlan的端口组。


 问题现象是同一个vlan内的来宾虚拟机如果碰巧和router在一个主机上,dhcp广播即可到达,如果来宾虚拟机在另外一台主机dhcp广播则不能到达router,进而获取不到ip地址。


 Dhcp广播通过抓包工具已经证实确实没有广播到另外的那台主机上,是不是可以肯定问题原因一定处在交换机上呢?




 -邮件原件-
 发件人: Darren Tang [mailto:darrentang...@gmail.com]
 发送时间: 2014年9月24日 13:33
 收件人: users-cn@cloudstack.apache.org
 主题: Re: 答复: 高级网络中vm获取不到ip地址问题

 麻烦你提供详细点的信息。

 两台主机几块网卡,都是怎么配置的,区域中管理,存储,来宾,公共流量是怎么定义的。交换机是怎么配置的。网段,vlan都是怎么配置的。。等等
 你得先把环境描述清楚,才方便大家帮你解决问题。

 dhcp获取ip地址共分为4个步骤,其中前3个步骤(请求,回应,确定) 是广播的。
 一般而言,vlan可以隔离广播域和冲突域,如果只是在一台主机中有效,那问题还应该在网络层面。

 在 2014年9月24日 下午1:22,张仕博 zhang...@neusoft.com写道:

  有没有网络方面的高手给仔细分析下
 
  该问题已经确认到dhcp广播报文没能跨主机广播,仅仅在一台主机内收到广播,而交换机上又没有配置什么针对dhcp的配置,有没有网络方面的高手帮
  忙分析分析,交换机是H3C
  5510三层交换机设备
 
 
 
  -邮件原件-
  发件人: 张仕博 [mailto:zhang...@neusoft.com]
  发送时间: 2014年9月23日 17:47
  收件人: 'users-cn@cloudstack.apache.org'
  主题: 答复: 高级网络中vm获取不到ip地址问题
 
  我通过如下方式测试了一下网络连通性
  在主机A(没有router的那台)新建一台虚拟机,给这个虚拟机配置静态IP,用的就是就是同一个来宾ip段内的ip
  通过这个机器ping主机B(有router的那台)上同段的机器可以ping通
 
 
  -邮件原件-
  发件人: Darren Tang [mailto:darrentang...@gmail.com]
  发送时间: 2014年9月23日 17:35
  收件人: users-cn@cloudstack.apache.org
  主题: Re: 高级网络中vm获取不到ip地址问题
 
  没得说,来宾网络有问题,重点检查物理网络,vlan,trunk等等配置。
  虚拟机和vr在一台机器上能获取ip,不再同一台机器上就不能获取。  现象已经很明显了。
  各主机之间的同一个来宾网络不通。
 
  2014-09-23 13:39 GMT+08:00 张仕博 zhang...@neusoft.com:
 
   Vmware环境中两台主机A和B,router在主机B上,新建虚拟机如果在主机B上,则可以
   dhcp获取ip地址,但是如果新建虚拟机分到了主机A上,则分不到ip地址,使用的网络
   是分布式交换机网络,虚拟机A和B都与router在同一个网络内。
   经测试,网络连通性应该没有问题,已通过其他虚拟机测试过与router、与主机的连通
   性,
  
   哪位高手给支个招如何排查?
  
   
   --
   - Confidentiality Notice: The
   information contained in this e-mail and any accompanying
   attachment(s) is intended only for the use of the intended recipient
   and may be confidential and/or privileged of Neusoft Corporation,
   its subsidiaries and/or its affiliates. If any reader of this
   communication is not the intended recipient, unauthorized use,
   forwarding, printing, storing, disclosure or copying is strictly
   prohibited, and may be unlawful.If you have received this
   communication in error,please immediately notify the sender by
   return e-mail, and delete the original message and all copies from
   your system. Thank you.
  
   
   --
   -
  
 
  --
  - Confidentiality Notice: The information
  contained in this e-mail and any accompanying attachment(s) is
  intended only for the use of the intended recipient and may be
  confidential and/or privileged of Neusoft Corporation, its
  subsidiaries and/or its affiliates. If any reader of this
  communication is not the intended recipient, unauthorized use,
  forwarding, printing, storing, disclosure or copying is strictly
  prohibited, and may be unlawful.If you have received this
  communication in error,please immediately notify the sender by return
  e-mail, and delete the original message and all copies from your
  system. Thank you.
 
  --
  -
 

 ---
 Confidentiality Notice: The information contained in this e-mail and any
 accompanying attachment(s)
 is intended only for the use of the intended recipient and may be
 confidential and/or privileged of
 Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader
 of this communication is
 not the intended recipient, unauthorized use, forwarding, printing,
 storing, disclosure or copying
 is strictly prohibited, and may be unlawful.If you have received this
 communication in error,please
 immediately notify the sender by return e-mail, and delete the original
 message and all copies from
 your system. Thank you.

 ---



Re: 答复: 答复: 答复: 高级网络中vm获取不到ip地址问题

2014-09-24 文章 Darren Tang
分布式交换机这个相对来说复杂点,这样沟通太慢,如果可以,加我qq吧。ak_qq:1770098846

在 2014年9月24日 下午2:22,张仕博 zhang...@neusoft.com写道:

 经过测试将这个没有获取到ip的机器直接配置成router分配的ip,可以正常通信

 -邮件原件-
 发件人: Darren Tang [mailto:darrentang...@gmail.com]
 发送时间: 2014年9月24日 14:11
 收件人: users-cn@cloudstack.apache.org
 主题: Re: 答复: 答复: 高级网络中vm获取不到ip地址问题

 如果你手动在虚拟机里面配置分配的IP地址,通信正常么

 在 2014年9月24日 下午1:57,张仕博 zhang...@neusoft.com写道:

  不好意思,如下是我搭建环境的主要信息
 
  环境是vmware的
  两台主机,网络配置相同,第一块网卡做管理网,第四块网卡建的分布式交换机,来宾虚拟机都在分布式交换机上,并且第四块网卡连接的交换机trunk口
  。
 
  来宾网络有多个,对应不同的vlan,使用cloudstack的自定义网络(dhcp和dns服务)在分布式交换机上建出对应多个vlan的端口组
  。
 
 
  问题现象是同一个vlan内的来宾虚拟机如果碰巧和router在一个主机上,dhcp广播即可到达,如果来宾虚拟机在另外一台主机dhcp广播则不
  能到达router,进而获取不到ip地址。
 
 
  Dhcp广播通过抓包工具已经证实确实没有广播到另外的那台主机上,是不是可以肯定问题原因一定处在交换机上呢?
 
 
 
 
  -邮件原件-
  发件人: Darren Tang [mailto:darrentang...@gmail.com]
  发送时间: 2014年9月24日 13:33
  收件人: users-cn@cloudstack.apache.org
  主题: Re: 答复: 高级网络中vm获取不到ip地址问题
 
  麻烦你提供详细点的信息。
 
  两台主机几块网卡,都是怎么配置的,区域中管理,存储,来宾,公共流量是怎么定义的。交换机是怎么配置的。网段,vlan都是怎么配置的。。等等
  你得先把环境描述清楚,才方便大家帮你解决问题。
 
  dhcp获取ip地址共分为4个步骤,其中前3个步骤(请求,回应,确定) 是广播的。
  一般而言,vlan可以隔离广播域和冲突域,如果只是在一台主机中有效,那问题还应该在网络层面。
 
  在 2014年9月24日 下午1:22,张仕博 zhang...@neusoft.com写道:
 
   有没有网络方面的高手给仔细分析下
  
   该问题已经确认到dhcp广播报文没能跨主机广播,仅仅在一台主机内收到广播,而交换机上又没有配置什么针对dhcp的配置,有没有网络方面的高
   手帮
   忙分析分析,交换机是H3C
   5510三层交换机设备
  
  
  
   -邮件原件-
   发件人: 张仕博 [mailto:zhang...@neusoft.com]
   发送时间: 2014年9月23日 17:47
   收件人: 'users-cn@cloudstack.apache.org'
   主题: 答复: 高级网络中vm获取不到ip地址问题
  
   我通过如下方式测试了一下网络连通性
   在主机A(没有router的那台)新建一台虚拟机,给这个虚拟机配置静态IP,用的就是就是同一个来宾ip段内的ip
   通过这个机器ping主机B(有router的那台)上同段的机器可以ping通
  
  
   -邮件原件-
   发件人: Darren Tang [mailto:darrentang...@gmail.com]
   发送时间: 2014年9月23日 17:35
   收件人: users-cn@cloudstack.apache.org
   主题: Re: 高级网络中vm获取不到ip地址问题
  
   没得说,来宾网络有问题,重点检查物理网络,vlan,trunk等等配置。
   虚拟机和vr在一台机器上能获取ip,不再同一台机器上就不能获取。  现象已经很明显了。
   各主机之间的同一个来宾网络不通。
  
   2014-09-23 13:39 GMT+08:00 张仕博 zhang...@neusoft.com:
  
Vmware环境中两台主机A和B,router在主机B上,新建虚拟机如果在主机B上,则可以
dhcp获取ip地址,但是如果新建虚拟机分到了主机A上,则分不到ip地址,使用的网络
是分布式交换机网络,虚拟机A和B都与router在同一个网络内。
经测试,网络连通性应该没有问题,已通过其他虚拟机测试过与router、与主机的连通
性,
   
哪位高手给支个招如何排查?
   
--
--
--
- Confidentiality Notice: The
information contained in this e-mail and any accompanying
attachment(s) is intended only for the use of the intended
recipient and may be confidential and/or privileged of Neusoft
Corporation, its subsidiaries and/or its affiliates. If any reader
of this communication is not the intended recipient, unauthorized
use, forwarding, printing, storing, disclosure or copying is
strictly prohibited, and may be unlawful.If you have received this
communication in error,please immediately notify the sender by
return e-mail, and delete the original message and all copies from
your system. Thank you.
   
--
--
--
-
   
  
   
   --
   - Confidentiality Notice: The
   information contained in this e-mail and any accompanying
   attachment(s) is intended only for the use of the intended recipient
   and may be confidential and/or privileged of Neusoft Corporation,
   its subsidiaries and/or its affiliates. If any reader of this
   communication is not the intended recipient, unauthorized use,
   forwarding, printing, storing, disclosure or copying is strictly
   prohibited, and may be unlawful.If you have received this
   communication in error,please immediately notify the sender by
   return e-mail, and delete the original message and all copies from
   your system. Thank you.
  
   
   --
   -
  
 
  --
  - Confidentiality Notice: The information
  contained in this e-mail and any accompanying attachment(s) is
  intended only for the use of the intended recipient and may be
  confidential and/or privileged of Neusoft Corporation, its
  subsidiaries and/or its affiliates. If any reader of this
  communication is not the intended recipient, unauthorized use,
  forwarding, printing, storing, disclosure or copying is strictly
  prohibited, and may be unlawful.If you have received this
  communication in error,please immediately notify the sender by return
  e-mail, and delete the original message and all copies from your
  system. Thank you.
 
  --
  -
 

 ---
 Confidentiality Notice: The information contained in this e-mail and any
 accompanying