Vxlan sophomore to get IP addresses across the Internet through a DHCP server

Source: Internet
Author: User
Tags get ip openvswitch

Vxlan sophomore to get IP addresses across the Internet through a DHCP server

1. Test topology diagram

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/84/1A/wKioL1eFzLXR7RaRAABi9NshIq0122.png-wh_500x0-wm_3 -wmp_4-s_1053059994.png "title=" 1.PNG "alt=" Wkiol1efzlxr7raraabi9nshiq0122.png-wh_50 "/>

Figure (1)

Topology Description:

A, Linux router is to use Linux in VMware to enable three interfaces into the post-host-only mode, Vmnet1, Vmnet2, Vmnet3 (note that in VMware to use this experiment to shut down the network DHCP service, so as not to affect the experimental effect), Vmnet1 corresponds to Eth0,vmnet2 corresponding to eth1,vmnet3 corresponding to Eth3;

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/84/1A/wKioL1eFzaTTzgGMAAAP17XRMOQ519.png "title=" 2.PNG " alt= "Wkiol1efzattzggmaaap17xrmoq519.png"/>

B, VXLAN-SW1 use two network card, use VMNET1 corresponding eth0 to connect to the VMNET1 corresponding eth0 interface of the Linux router, so VXLAN-SW1 eth0 Port bridge to the Linux router eth0 port, Then vmnet4 the corresponding eth1 port to connect a LINUXDHCP server vmnet4 corresponding eth0 port;

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/84/1B/wKiom1eFzbKRUbM5AAAKCWyRTDw918.png "title=" 3.PNG " alt= "Wkiom1efzbkrubm5aaakcwyrtdw918.png"/>

C, the same reason, vxlan-sw2 use vmnet2 corresponding eth0 port to connect to the Linux router Vmnet2 corresponding eth1 port, vmnet5 corresponding eth1 linuxdhcp client vmnet5 corresponding eth0 port ;

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/84/1B/wKiom1eFzb2T7TkSAAAIzIeyldo116.png "title=" 4.PNG " alt= "Wkiom1efzb2t7tksaaaizieyldo116.png"/>

D, VXLAN-SW3 use vmnet3 corresponding eth0 port to connect the Linux router vmnet3 corresponding eth2 port, vmnet6 corresponding ETH1 connection windowsxp client VMNET6 corresponding eth0 port;

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/84/1A/wKioL1eFzc2iOu1BAAAJtphm-qU649.png "title=" 5.PNG " alt= "Wkiol1efzc2iou1baaajtphm-qu649.png"/>

E, the Linux DHCP server uses the Vmnet4,linux DHCP client to use the VMNET6 with Vmnet5,windows xp DHCP client;


Address planning:

Linux routers:

Eth0 1.1.1.10/24

Eth1 2.2.2.10/24

Eth2 3.3.3.10/24

VXLAN-SW1:

Eth0 1.1.1.1/24

Eth1 192.168.1.1/24

VXLAN-SW2:

Eth0 2.2.2.1/24

Eth1 192.168.1.2/24

VXLAN-SW3:

Eth0 3.3.3.1/24

Eth1 192.168.1.3/24

Linux dhcpserver:

Eht0:192.168.1.10/24

Linux dhcpclient:

ETH0:DHCP Client

Windows Xpclient:

ETH0:DHCP Client

Initial configuration of the NIC:

Linux Routers:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/84/1A/wKioL1eFzgGhmvxHAAGNBUFmXQc422.png "title=" 6.PNG " alt= "Wkiol1efzgghmvxhaagnbufmxqc422.png"/>

Routing table: (because the Linux router does not configure any private network routes as a public network router, so no routing entries need to be configured)

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/84/1A/wKioL1eFziTA8iMgAABLf2hGkgI724.png "title=" 7.PNG " alt= "Wkiol1efzita8imgaablf2hgkgi724.png"/>

VXLAN-SW1:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/84/1B/wKiom1eFzkaBX379AAB6drk_uFE876.png "title=" 8.PNG " alt= "Wkiom1efzkabx379aab6drk_ufe876.png"/>

As for the eth1 port because there is a need to create a bridge interface after detailed description;

Routing table:

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/84/1A/wKioL1eFzmiRsXJPAABJs0rpZ6Y313.png "title=" 9.PNG " alt= "Wkiol1efzmirsxjpaabjs0rpz6y313.png"/>

VXLAN-SW2:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/84/1A/wKioL1eFzojQNe6PAAB56FMh73Y533.png "title=" 10.PNG "alt=" Wkiol1efzojqne6paab56fmh73y533.png "/>

Routing table:

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/84/1B/wKiom1eFzqqQi0fBAABL1hfUiMY972.png "title=" 11.PNG "alt=" Wkiom1efzqqqi0fbaabl1hfuimy972.png "/>

VXLAN-SW3:

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/84/1B/wKioL1eFzsywKbFOAAB55wFY_2w151.png "title=" 12.PNG "alt=" Wkiol1efzsywkbfoaab55wfy_2w151.png "/>

Routing table:

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/84/1B/wKioL1eFzuuzfYnKAABBNgqnYuE487.png "title=" 13.PNG "alt=" Wkiol1efzuuzfynkaabbngqnyue487.png "/>

VXLAN-VX1 Openvswich-related configuration:

Create a bridge interface Br0

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/84/1B/wKioL1eFzw7y-ZfbAAAFbUjdv2o046.png "title=" 14.PNG "alt=" Wkiol1efzw7y-zfbaaafbujdv2o046.png "/>

Adding eth1 to the Br0 bridge interface, Eth1 also becomes a two-tier interface

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/84/1B/wKiom1eFzynTGWIbAAAXcVMXcCU186.png "title=" 15.PNG "alt=" Wkiom1efzyntgwibaaaxcvmxccu186.png "/>

Configuring the BR0 three-tier interface:

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/84/1B/wKiom1eF0gjyksNqAAAcRqF1fZ0079.png "title=" 16.PNG "alt=" Wkiom1ef0gjyksnqaaacrqf1fz0079.png "/>

To view the interface configuration:

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/84/1B/wKiom1eF0jHjck0CAADcWxXYoo0080.png "title=" 17.PNG "alt=" Wkiom1ef0jhjck0caadcwxxyoo0080.png "/>

To create a Vxlan interface and add a tunnel:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/84/1B/wKioL1eF0mzwMQZJAAA9SQtYkO0433.png "title=" 18.PNG "alt=" Wkiol1ef0mzwmqzjaaa9sqtyko0433.png "/>

To view the Openvswitch configuration:

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/84/1B/wKioL1eF0o6y1gaWAAAjN9wSw-s766.png "title=" 19.PNG "alt=" Wkiol1ef0o6y1gawaaajn9wsw-s766.png "/>

VXLAN-VX2 Openvswich-related configuration:

Create a bridge interface Br0

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/84/1B/wKioL1eF0q7wuwgKAAAFQSRj2m0081.png "title=" 20.PNG "alt=" Wkiol1ef0q7wuwgkaaafqsrj2m0081.png "/>

Adding eth1 to the Br0 bridge interface, Eth1 also becomes a two-tier interface

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/84/1B/wKiom1eF0svwNq3FAAAYLWupZBc309.png "title=" 21.PNG "alt=" Wkiom1ef0svwnq3faaaylwupzbc309.png "/>

Configuring the BR0 three-tier interface:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/84/1B/wKioL1eF0uijj6FIAAAYLuUGx0E675.png "title=" 22.PNG "alt=" Wkiol1ef0uijj6fiaaayluugx0e675.png "/>

To view the interface configuration:

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/84/1B/wKioL1eF0xPwF1JmAADpVmRVJhs732.png "title=" 23.PNG "alt=" Wkiol1ef0xpwf1jmaadpvmrvjhs732.png "/>

To create a Vxlan interface and add a tunnel:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/84/1B/wKioL1eF1GLCuDSdAAAfAArJl_E232.png "title=" 24.PNG "alt=" Wkiol1ef1glcudsdaaafaarjl_e232.png "/>

To view the Openvswitch configuration:

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/84/1B/wKiom1eF1IDRw9hYAAAaJLyvKiQ397.png "title=" 25.PNG "alt=" Wkiom1ef1idrw9hyaaaajlyvkiq397.png "/>

VXLAN-VX2 Openvswich-related configuration:

Create a bridge interface Br0

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/84/1B/wKioL1eF1KOzK-q5AAADqBujxfU230.png "title=" 26.PNG "alt=" Wkiol1ef1kozk-q5aaadqbujxfu230.png "/>

Adding eth1 to the Br0 bridge interface, Eth1 also becomes a two-tier interface

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/84/1B/wKiom1eF1L7DUyS5AAAEOrCMLN0173.png "title=" 27.PNG "alt=" Wkiom1ef1l7duys5aaaeorcmln0173.png "/>

Configuring the BR0 three-tier interface:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/84/1B/wKioL1eF1ODSrC9uAAATQKfWAAM072.png "title=" 28.PNG "alt=" Wkiol1ef1odsrc9uaaatqkfwaam072.png "/>

To view the interface configuration:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/84/1B/wKiom1eF1QCTic8MAADhnh2Li4U562.png "title=" 29.PNG "alt=" Wkiom1ef1qctic8maadhnh2li4u562.png "/>

To create a Vxlan interface and add a tunnel:

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/84/1B/wKiom1eF1R2DVy3XAAAZ792XiAQ839.png "title=" 30.PNG "alt=" Wkiom1ef1r2dvy3xaaaz792xiaq839.png "/>

To view the Openvswitch configuration:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/84/1C/wKiom1eF1TyDogSPAAAY3O4Osq4763.png "title=" 31.PNG "alt=" Wkiom1ef1tydogspaaay3o4osq4763.png "/>

Linux dhcpserver Configuration

Interface configuration:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/84/1C/wKiom1eF1Vqj4cY6AAB5PMpaSX0441.png "title=" 32.PNG "alt=" Wkiom1ef1vqj4cy6aab5pmpasx0441.png "/>

Routing configuration:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/84/1B/wKioL1eF1YCx_MeoAAA-vKvhxLw801.png "title=" 33.PNG "alt=" Wkiol1ef1ycx_meoaaa-vkvhxlw801.png "/>

Address pool-related configuration:

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/84/1C/wKiom1eF1aXx0q7QAACrOVohg4k758.png "title=" 34.PNG "alt=" Wkiom1ef1axx0q7qaacrovohg4k758.png "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/84/1B/wKioL1eF1cPQ3HupAAAund6howg889.png "title=" 35.PNG "alt=" Wkiol1ef1cpq3hupaaaund6howg889.png "/>

To start the DHCP service:

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/84/1B/wKioL1eF1fXgRHSgAAAejzbbNdc394.png "title=" 36.PNG "alt=" Wkiol1ef1fxgrhsgaaaejzbbndc394.png "/>

Linux dhcpclient Get Address:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/84/1B/wKioL1eF1i_gPbD8AACA38dhoTc103.png "title=" 37.PNG "alt=" Wkiol1ef1i_gpbd8aaca38dhotc103.png "/>

Routing table: (routing table, Note: Gateway is 192.168.1.1)

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/84/1C/wKiom1eF1lmRJYZoAAA7_lcbzdU523.png "title=" 38.PNG "alt=" Wkiom1ef1lmrjyzoaaa7_lcbzdu523.png "/>

Windows XPDHCP Client Get address:

Note: The gateway unexpectedly is 192.168.1.3, unexpectedly and the Linux access network management is not the same, a DHCP server interface address, a connection to the system VXLAN-SW interface address;

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/84/1B/wKioL1eF1rLzc1eRAABzmvTHdyI626.png "title=" 39.PNG "alt=" Wkiol1ef1rlzc1eraabzmvthdyi626.png "/>

Test process:

Linux dhcpclient ping tests reach Linux DHCP server connectivity;

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/84/1C/wKiom1eF1u2xX0UJAAAm6vCBCPM373.png "title=" 40.PNG "alt=" Wkiom1ef1u2xx0ujaaam6vcbcpm373.png "/>

Eth0 interface grab packet on VXLAN-SW1; (UDP package Mac, so it can be reached)

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/84/1C/wKiom1eF10mTkAEYAAFJv0sEYpQ989.png "title=" 42.PNG "alt=" Wkiom1ef10mtkaeyaafjv0seypq989.png "/>

In Windows XPDHCP client ping test arrives at Linux DHCP server:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/84/1C/wKiom1eF12izpOWvAAAoRfwYHeY810.png "title=" 43.PNG "alt=" Wkiom1ef12izpowvaaaorfwyhey810.png "/>

Eth0 interface grab packet on VXLAN-SW1; (UDP package Mac, so it can be reached)

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/84/1B/wKioL1eF15aBObnaAAE4UwchXZs896.png "title=" 45.PNG "alt=" Wkiol1ef15abobnaaae4uwchxzs896.png "/>

Conclusion:

1, when a vxlan switch corresponding to multiple Vxlan switch to do a pair of multi-tunnel, or many to multi-tunnel, the export only need one can;

2, to manually add more than one tunnel, because the tunnel is static, so if the tunnel more, compared to the egg pain;

3, a bridge temporarily can only bind a three-layer interface, if the two-layer interface from the IP address is completely useless, to the bridge of the three-layer interface from multiple addresses, there have been problems, not for the time being confirmed what caused;

4, a physical bridge can create multiple Vlxlan, have seen Huawei's data center switch said can only create one;

5, over the public network can cross any two-tier business, including two-layer broadcast, VLAN,DHCP, STP and so on;


This article from "Nicol Lock Silk Sorrow" blog, please make sure to keep this source http://smoke520.blog.51cto.com/9256117/1826011

Vxlan sophomore to get IP addresses across the Internet through a DHCP server

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.