Background:
The company's IT Department purchased two new servers and one storage, and planned to perform virtualization. The storage was divided into two parts and allocated to the two servers respectively. The virtual machines to be installed on the host machine belong to different network segments, which involves multiple VLANs. Of course, this is not a very advanced technology and is the most common one. They asked me to provide technical support. I wrote down my ideas this time so that my IT colleagues could read them at any time and add clicks by the way. The new blog requires everyone's attention, so I will be more motivated to write more dry goods.
Device:
VMware-VMvisor-Installer-5.5.0-1331820.x86_64 X1
Poweredge r420 X2
Powervault md3200 X1
H3C S3100-26TP-SI (X1)
Ideas:
1. Download the installation image and burn it to a CD. Install esxi 5.5 on both servers (omitted)
2. Configure storage, which is relatively simple and skipped. (RAID 6 is used here)
3. in VMware esxi, there are multiple implementation modes of Multi-VLAN. Here I will only introduce the most common and practical methods, but also the most officially recommended VST (Virtual Switch tagging ), what I want to explain.
4. Configure trunk for H3C s3100
Steps:
1. Select the esxi host and find "network" in the "hardware" area in the drop-down list of the "configuration" tab. You will see the standard switch vswitch0 and click the Properties button on the right.
2. Go to the vswitch0 attribute, click Add in the lower left corner, select the virtual machine, and next, name the port group attribute and mark the VLAN. How can this be used conveniently and how can we mark it. For example, vmforyanfa and vlan id 4.
3. Set the CIDR Block (VLAN) of all virtual machines on the host and configure trunk.
4. The TCP/IP information of the esxi host is VLAN management information, which is not simply configured on the NIC. The IP address of esxi is not bound to the NIC, And the IP address is on the vmkernel. You can add another vmkernel port group and try it out. Note: When configuring esxi host information, select a VLAN for convenient management.
5. Switch configuration
Interface ethernet1/0/19
Port Link-type trunk
Port trunk permit VLAN all
Interface ethernet1/0/20
Port Link-type trunk
Port trunk permit VLAN all
Interface ethernet1/0/21
Port Link-type trunk
Port trunk permit VLAN all
Interface ethernet1/0/22
Port Link-type trunk
Port trunk permit VLAN all
The servers are both dual NICs and are all inserted on the switch port with the trunk configured.
6. The reason why two NICs are bound is for redundancy and for better load balancing. Select the created port group, click Edit, select the NIC binding tab, and set one Nic as active and one as standby as needed, of course, the other port groups should be reversed. If you have configured the multisample spanning tree (MST) Multi-Spanning Tree Protocol, you should be familiar with it.
7. Create a virtual machine, select the corresponding port group, and test the Internet access respectively.
8. Note: if we do not divide VLANs, we consider VLAN 1 by default. This is what network engineers usually think. Of course, I am also a network engineer. How can this problem be solved? At this time, I changed to no VLAN to find the problem. VMWare does this for H3C unpartitioned VLAN data packets, Cisco does not test. You can test it on your own or report it to me!
9. QQ: 920057952 (bright corner)
This article is from the "bright corner" blog, please be sure to keep this source http://larryzhao.blog.51cto.com/1030646/1535637