cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 张能钦 <zhan...@yanxintec.com>
Subject 虚拟机无法ping通网关
Date Thu, 09 Apr 2015 03:24:01 GMT

大家好,我的虚拟机ping不通网关,麻烦帮忙排除下,谢谢

物理机计算节点 有4网卡
公共流量第1块网卡eth0   交换机 trunk允许 107-110vlan
来宾第4块网卡        交换机  trunk允许    105,106,110vlan
服务器网络如下
[root@compute1 sysconfig]# ifconfig
breth0-107 Link encap:Ethernet  HWaddr 2C:44:FD:92:FB:18
          inet6 addr: fe80::2e44:fdff:fe92:fb18/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:82175 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4092654 (3.9 MiB)  TX bytes:1188 (1.1 KiB)

breth3-110 Link encap:Ethernet  HWaddr 2C:44:FD:92:FB:1B
          inet6 addr: fe80::2e44:fdff:fe92:fb1b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6888 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:196692 (192.0 KiB)  TX bytes:468 (468.0 b)

cloudbr0  Link encap:Ethernet  HWaddr 2C:44:FD:92:FB:18
          inet6 addr: fe80::2e44:fdff:fe92:fb18/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:273501 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:22107453 (21.0 MiB)  TX bytes:1968 (1.9 KiB)

cloud0    Link encap:Ethernet  HWaddr FE:00:A9:FE:00:39
          inet addr:169.254.0.1  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::f4ac:f3ff:fe10:c2eb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13217 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14671 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2162708 (2.0 MiB)  TX bytes:2214728 (2.1 MiB)

cloudbr1  Link encap:Ethernet  HWaddr 2C:44:FD:92:FB:19
          inet addr:172.16.108.22  Bcast:172.16.108.255  Mask:255.255.255.0
          inet6 addr: fe80::2e44:fdff:fe92:fb19/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:900598 errors:0 dropped:0 overruns:0 frame:0
          TX packets:784149 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3533116883 (3.2 GiB)  TX bytes:74952754 (71.4 MiB)

cloudbr2  Link encap:Ethernet  HWaddr 2C:44:FD:92:FB:1A
          inet addr:172.16.109.22  Bcast:172.16.109.255  Mask:255.255.255.0
          inet6 addr: fe80::2e44:fdff:fe92:fb1a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:879540 errors:0 dropped:0 overruns:0 frame:0
          TX packets:897163 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:407963617 (389.0 MiB)  TX bytes:663269588 (632.5 MiB)

cloudbr3  Link encap:Ethernet  HWaddr 2C:44:FD:92:FB:1B
          inet6 addr: fe80::2e44:fdff:fe92:fb1b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18363 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1212467 (1.1 MiB)  TX bytes:468 (468.0 b)

eth0      Link encap:Ethernet  HWaddr 2C:44:FD:92:FB:18
          inet6 addr: fe80::2e44:fdff:fe92:fb18/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:485001 errors:0 dropped:0 overruns:0 frame:0
          TX packets:149443 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:85427991 (81.4 MiB)  TX bytes:93747283 (89.4 MiB)
          Interrupt:32

eth0.107  Link encap:Ethernet  HWaddr 2C:44:FD:92:FB:18
          inet6 addr: fe80::2e44:fdff:fe92:fb18/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:200959 errors:0 dropped:0 overruns:0 frame:0
          TX packets:117287 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:51187885 (48.8 MiB)  TX bytes:91421029 (87.1 MiB)

eth1      Link encap:Ethernet  HWaddr 2C:44:FD:92:FB:19
          inet6 addr: fe80::2e44:fdff:fe92:fb19/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9082809 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5360400 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:12959196052 (12.0 GiB)  TX bytes:5038179710 (4.6 GiB)
          Interrupt:36

eth2      Link encap:Ethernet  HWaddr 2C:44:FD:92:FB:1A
          inet6 addr: fe80::2e44:fdff:fe92:fb1a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3495712 errors:0 dropped:0 overruns:0 frame:0
          TX packets:440208 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4888320808 (4.5 GiB)  TX bytes:52528752 (50.0 MiB)
          Interrupt:32

eth3      Link encap:Ethernet  HWaddr 2C:44:FD:92:FB:1B
          inet6 addr: fe80::2e44:fdff:fe92:fb1b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18850 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2385 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1621714 (1.5 MiB)  TX bytes:152998 (149.4 KiB)
          Interrupt:36

eth3.110  Link encap:Ethernet  HWaddr 2C:44:FD:92:FB:1B
          inet6 addr: fe80::2e44:fdff:fe92:fb1b/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6849 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:292134 (285.2 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:265743 errors:0 dropped:0 overruns:0 frame:0
          TX packets:265743 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:36198795 (34.5 MiB)  TX bytes:36198795 (34.5 MiB)

vnet0     Link encap:Ethernet  HWaddr FE:00:A9:FE:00:39
          inet6 addr: fe80::fc00:a9ff:fefe:39/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:432 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:694 (694.0 b)  TX bytes:19488 (19.0 KiB)

vnet1     Link encap:Ethernet  HWaddr FE:A6:10:00:00:51
          inet6 addr: fe80::fca6:10ff:fe00:51/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:27368 errors:0 dropped:0 overruns:0 frame:0
          TX packets:208244 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:2731865 (2.6 MiB)  TX bytes:24183244 (23.0 MiB)

vnet2     Link encap:Ethernet  HWaddr FE:7A:E4:00:00:F1
          inet6 addr: fe80::fc7a:e4ff:fe00:f1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:82199 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:252 (252.0 b)  TX bytes:5245344 (5.0 MiB)

vnet3     Link encap:Ethernet  HWaddr FE:00:A9:FE:00:D9
          inet6 addr: fe80::fc00:a9ff:fefe:d9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:434 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:790 (790.0 b)  TX bytes:19604 (19.1 KiB)

vnet4     Link encap:Ethernet  HWaddr FE:D9:76:00:00:DA
          inet6 addr: fe80::fcd9:76ff:fe00:da/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:375890 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2201552 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:26034749 (24.8 MiB)  TX bytes:14053570054 (13.0 GiB)

vnet5     Link encap:Ethernet  HWaddr FE:59:34:00:00:F2
          inet6 addr: fe80::fc59:34ff:fe00:f2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:82198 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:252 (252.0 b)  TX bytes:5245266 (5.0 MiB)

vnet6     Link encap:Ethernet  HWaddr FE:54:32:00:01:F1
          inet6 addr: fe80::fc54:32ff:fe00:1f1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7676041 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5067849 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:14419246418 (13.4 GiB)  TX bytes:28012196022 (26.0 GiB)

vnet7     Link encap:Ethernet  HWaddr FE:00:A9:FE:03:B0
          inet6 addr: fe80::fc00:a9ff:fefe:3b0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:162 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:736 (736.0 b)  TX bytes:7540 (7.3 KiB)

vnet8     Link encap:Ethernet  HWaddr FE:B5:E0:00:00:16
          inet6 addr: fe80::fcb5:e0ff:fe00:16/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14849 errors:0 dropped:0 overruns:0 frame:0
          TX packets:102657 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:1488774 (1.4 MiB)  TX bytes:11922109 (11.3 MiB)

vnet9     Link encap:Ethernet  HWaddr FE:BE:34:00:00:66
          inet6 addr: fe80::fcbe:34ff:fe00:66/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:45255 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:516 (516.0 b)  TX bytes:2890012 (2.7 MiB)

vnet10    Link encap:Ethernet  HWaddr FE:95:14:00:01:12
          inet6 addr: fe80::fc95:14ff:fe00:112/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7965 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53565 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:1017574 (993.7 KiB)  TX bytes:4416687 (4.2 MiB)

vnet11    Link encap:Ethernet  HWaddr FE:00:A9:FE:01:65
          inet6 addr: fe80::fc00:a9ff:fefe:165/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:150 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:0 (0.0 b)  TX bytes:6756 (6.5 KiB)

vnet12    Link encap:Ethernet  HWaddr FE:CB:48:00:00:4A
          inet6 addr: fe80::fccb:48ff:fe00:4a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:127018 errors:0 dropped:0 overruns:0 frame:0
          TX packets:232676 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:13261023 (12.6 MiB)  TX bytes:461646741 (440.2 MiB)

vnet13    Link encap:Ethernet  HWaddr FE:D3:92:00:00:67
          inet6 addr: fe80::fcd3:92ff:fe00:67/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:97695 errors:0 dropped:0 overruns:0 frame:0
          TX packets:148495 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:75684227 (72.1 MiB)  TX bytes:45310980 (43.2 MiB)

vnet14    Link encap:Ethernet  HWaddr FE:1F:E0:00:01:C7
          inet6 addr: fe80::fc1f:e0ff:fe00:1c7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2821 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4124 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:122016 (119.1 KiB)  TX bytes:177946 (173.7 KiB)

vnet15    Link encap:Ethernet  HWaddr FE:00:A9:FE:01:EC
          inet6 addr: fe80::fc00:a9ff:fefe:1ec/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:819 errors:0 dropped:0 overruns:0 frame:0
          TX packets:861 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:152755 (149.1 KiB)  TX bytes:153323 (149.7 KiB)

vnet16    Link encap:Ethernet  HWaddr FE:77:3A:00:01:C8
          inet6 addr: fe80::fc77:3aff:fe00:1c8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6644 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:1783 (1.7 KiB)  TX bytes:282395 (275.7 KiB)

vnet17    Link encap:Ethernet  HWaddr FE:67:66:00:01:C9
          inet6 addr: fe80::fc67:66ff:fe00:1c9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4086 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2431 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:173079 (169.0 KiB)  TX bytes:103457 (101.0 KiB)

[root@compute1 sysconfig]#


[root@compute1 sysconfig]# brctl show
bridge name bridge id STP enabled interfaces
breth0-107 8000.2c44fd92fb18 no eth0.107
vnet13
vnet2
vnet5
vnet9
breth3-110 8000.2c44fd92fb1b no eth3.110
vnet14
vnet16
vnet17
cloud0 8000.fe00a9fe0039 no vnet0
vnet11
vnet15
vnet3
vnet7
cloudbr0 8000.2c44fd92fb18 no eth0
cloudbr1 8000.2c44fd92fb19 no eth1
vnet10
vnet6
cloudbr2 8000.2c44fd92fb1a no eth2
vnet1
vnet12
vnet4
vnet8
cloudbr3 8000.2c44fd92fb1b no eth3
[root@compute1 sysconfig]#



虚拟机网络如下
[root@compute1 sysconfig]# virsh dumpxml i-2-23-VM
<domain type='kvm' id='26'>
  <name>i-2-23-VM</name>
  <uuid>17700c17-6693-4d18-a34e-16d5adb3bbc5</uuid>
  <description>CentOS 6.5 (64-bit)</description>
  <memory unit='KiB'>1048576</memory>
  <currentMemory unit='KiB'>1048576</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <cputune>
    <shares>1000</shares>
  </cputune>
  <os>
    <type arch='x86_64' machine='rhel6.6.0'>hvm</type>
    <boot dev='cdrom'/>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <cpu>
  </cpu>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/data/primary/291b0eab-13d3-4179-8d89-a18f15a26496'/>
      <target dev='vda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw' cache='none'/>
      <target dev='hdc' bus='ide' tray='open'/>
      <readonly/>
      <alias name='ide0-1-0'/>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='ide' index='0'>
      <alias name='ide0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <interface type='bridge'>
      <mac address='06:67:66:00:01:c9'/>
      <source bridge='breth3-110'/>
      <bandwidth>
        <inbound average='25600' peak='25600'/>
        <outbound average='25600' peak='25600'/>
      </bandwidth>
      <target dev='vnet17'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/7'/>
      <target port='0'/>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/7'>
      <source path='/dev/pts/7'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='5906' autoport='yes' listen='172.16.109.22'>
      <listen type='address' address='172.16.109.22'/>
    </graphics>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='none'>
      <alias name='balloon0'/>
    </memballoon>
  </devices>
</domain>

[root@compute1 sysconfig]# virsh dumpxml i-2-23-VM | grep net
      <target dev='vnet17'/>
      <alias name='net0'/>
[root@compute1 sysconfig]#

网关为172.16.110.252

虚拟机ip为172.16.110.52
[cid:_Foxmail.1@7cb9f54f-a266-ee12-cb1e-09376bb10e57]

现在在二层交换机 都抓不到任何这个虚拟机ip的数据包,在服务器上抓包只有arp请求的包发出去,请帮忙看下
________________________________
张能钦
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message