Skip to content

Commit bb56e95

Browse files
[MWAN] Clarified setting Connector with static IPs (#18585)
* moved prereqs to top * added h2 with static ip info * changed to ordered list * updated WAN language * refined info * refined wan steps * removed extra spaces * created wan static partials * updated with wan partials * corrected partial * added wan static virtual conn * reverted partial wan with static * removed partial * corrected text * reworked dhcp vs static ip * refined text and steps * refined text and steps * removed extra spaces * replaced spaces by tabs * refined steps * deleted unnecessary partials * Apply suggestions from code review Co-authored-by: Jun Lee <[email protected]> --------- Co-authored-by: Jun Lee <[email protected]>
1 parent a5db620 commit bb56e95

File tree

3 files changed

+90
-68
lines changed

3 files changed

+90
-68
lines changed

src/content/docs/magic-wan/configuration/connector/configure-hardware-connector/index.mdx

Lines changed: 35 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ sidebar:
88

99
import { GlossaryTooltip, Render, Card } from "~/components";
1010

11-
## Before you begin
12-
13-
<Render file="connector/before-you-begin" />
14-
15-
---
16-
1711
## Prerequisites
1812

1913
You need to purchase [Magic WAN](https://www.cloudflare.com/magic-wan/) before you can purchase and use the Magic WAN Connector. The Magic WAN Connector can function as your primary edge device for your network, or be deployed in-line with existing network gear.
@@ -24,6 +18,21 @@ Contact your account representative to learn more about purchasing options for t
2418

2519
---
2620

21+
## Before you begin
22+
23+
<Render file="connector/before-you-begin" />
24+
25+
---
26+
27+
## DHCP vs static IP connections
28+
29+
Magic WAN Connector uses a DHCP connection at first boot to download your settings and go through the activation process. However, if you need to use a static IP in your Connector, and this is a fresh install:
30+
1. Connect Magic WAN Connector to a DHCP port with access to the Internet.
31+
2. Go through the [setup flow](#set-up-cloudflare-dashboard) below and activate your Connector.
32+
3. Refer to [WAN with a static IP address](#wan-with-a-static-ip-address).
33+
34+
---
35+
2736
## Port speeds
2837

2938
The hardware version of the Magic WAN connector includes two [SFP+ ports](https://en.wikipedia.org/wiki/Small_Form-factor_Pluggable) that support 10G throughput, as well as six RJ45 ports that support 1G throughput.
@@ -113,16 +122,27 @@ If there is a firewall deployed upstream of the Magic WAN Connector, configure t
113122
}}
114123
/>
115124

116-
### WAN with a static IP address
117-
118-
After activating your Connector, you can use it in a network configuration with the WAN interface set to a static IP address - that is, an Internet configuration that is not automatically set by DHCP.
119-
120-
To use your Connector on a network configuration with a static IP:
125+
---
121126

122-
1. Wait 60 seconds after activating your Connector.
123-
2. Unplug the physical connection to the Internet-connected device which provides DHCP.
124-
3. Adjust your physical connections as required to match the static configuration, and make changes to the [WAN settings](#2-create-a-wan) in the Cloudflare dashboard to reflect the static IP address configuration.
125-
4. Power cycle the Connector.
127+
## WAN with a static IP address
128+
129+
After activating your Connector, you can use it in a network configuration with the WAN interface set to a static IP address — that is, an Internet configuration that is not automatically set by DHCP. To use your Connector on a network configuration with a static IP, follow the steps below.
130+
131+
:::caution
132+
Before proceeding, make sure that you went through the setup workflow and activated your Magic WAN Connector.
133+
:::
134+
135+
1. Connect Magic WAN Connector to a DHCP port with access to the Internet.
136+
2. [Create a site](#1-create-a-site) in the Cloudflare dashboard.
137+
3. Associate a Connector to it.
138+
4. Create a [DHCP WAN](#2-create-a-wan).
139+
5. [Active](#activate-connector) and power on your Connector.
140+
6. Wait 60 seconds.
141+
7. Make changes to the [WAN settings](#2-create-a-wan) in the Cloudflare dashboard to a static IP set up.
142+
8. Wait 60 seconds again.
143+
9. Magic WAN Connector will go offline. This is normal and expected behavior.
144+
10. Adjust your physical connections as required to match the static configuration.
145+
11. Magic WAN Connector comes back online.
126146

127147
---
128148

src/content/docs/magic-wan/configuration/connector/configure-virtual-connector.mdx

Lines changed: 51 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ import { Render } from "~/components";
99

1010
Virtual Magic WAN Connector (Virtual Connector) is a virtual appliance alternative to the hardware based Magic WAN Connector appliance. These two versions of Connector are identical otherwise.
1111

12-
## Before you begin
13-
14-
<Render file="connector/before-you-begin" />
15-
1612
## Prerequisites
1713

1814
Before you can install Virtual Connector, you need an Enterprise account with Magic WAN enabled. Additionally, you need to have a VMware host with sufficient compute, memory, and storage to run the virtual machine with Virtual Connector. This includes:
@@ -27,6 +23,21 @@ Before you can install Virtual Connector, you need an Enterprise account with Ma
2723

2824
Refer to [VMware's documentation](https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.esxi.install.doc/GUID-B2F01BF5-078A-4C7E-B505-5DFFED0B8C38.html) for more information on how to install ESXi and configure a virtual machine.
2925

26+
---
27+
28+
## Before you begin
29+
30+
<Render file="connector/before-you-begin" />
31+
32+
---
33+
34+
## DHCP vs static IP connections
35+
36+
Virtual Connector uses a DHCP connection at first boot to download your settings and go through the activation process. However, if you need to use a static IP in your Virtual Connector, and this is a fresh install:
37+
1. Connect the machine with your Virtual Connector VM to a DHCP port with access to the Internet.
38+
2. Go through the [setup flow](#set-up-cloudflare-dashboard) below and activate your Connector.
39+
3. Refer to [WAN with a static IP address](#wan-with-a-static-ip-address).
40+
3041
## Obtain the Virtual Connector image
3142

3243
Contact your account team at Cloudflare to obtain the Virtual Connector [OVA package](https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-AE61948B-C2EE-436E-BAFB-3C7209088552.html) and license keys. The OVA image includes the files required to install and configure the virtual machine (VM) for Virtual Connector with the appropriate settings.
@@ -40,9 +51,9 @@ You will consume one license key for each instance created. For example, if you
4051
The following instructions assume you already have VMware ESXi hypervisor installed with sufficient resources. Refer to [Prerequisites](#prerequisites) for more information.
4152

4253
1. When setting up your VMware ESXi, you need to create port groups for Virtual Connector. Go to **Networking** > **Port groups**, and prepare your vSwitch port groups and/or VLANs for your desired network topology. For example, a simple deployment typically has:
43-
- A WAN port group where the Virtual Connector will get an IP address (static or DHCP) that has access to the Internet.
44-
- A LAN port group, where the Virtual Connector will act as default router, and possibly DHCP server.
45-
- A null, or unused, port group for allocating unused virtual interfaces in the Virtual Connector. You can, for example, create a null port group with the name of `Null port group`, and a **VLAN ID** of `999`.
54+
- A WAN port group where the Virtual Connector will get an IP address (static or DHCP) that has access to the Internet.
55+
- A LAN port group, where the Virtual Connector will act as default router, and possibly DHCP server.
56+
- A null, or unused, port group for allocating unused virtual interfaces in the Virtual Connector. You can, for example, create a null port group with the name of `Null port group`, and a **VLAN ID** of `999`.
4657

4758
:::note[VLAN tagging]
4859
Virtual Connector supports creating subinterfaces through the use of [802.1Q VLAN tagging](https://en.wikipedia.org/wiki/IEEE_802.1Q).
@@ -59,38 +70,29 @@ Refer to [VMWare's documentation](https://kb.vmware.com/s/article/1003825) for m
5970

6071
2. Extract the files in the OVA image provided by your Cloudflare account team. For example:
6172

62-
```txt
63-
tar -xvf mconn-2024-1-3.ova
64-
```
73+
```txt
74+
tar -xvf mconn-2024-1-3.ova
75+
```
6576

66-
Take note of the folder where you are extracting the files to, as you will need to refer to that folder when creating the VM.
77+
Take note of the folder where you are extracting the files to, as you will need to refer to that folder when creating the VM.
6778

6879
3. Go to **Virtual Machines** > **Create/Register VM** wizard to start deploying the Virtual Connector.
69-
7080
4. Select **Deploy a virtual machine from an OVF or OVA file** > **Next**.
71-
7281
5. Choose a descriptive name for your virtual machine.
73-
7482
6. Upload the files you have extracted from the OVA image. These include `mconn.ovf`, `mconn.nvram`, and `mconn.vmdk`.
75-
7683
7. Select where you want to save the files extracted from the OVA image > **Next**.
77-
7884
8. In **Networking mappings**, select assignments for your desired topology according to the port groups you set up previously:
79-
80-
1. For example, map `eno1` port to `VM Network` to create your WAN, and `eno2` to `LAN0` to act as your LAN port.
81-
2. Allocate any unused ports to the `null` port group.
82-
3. Take note of your configuration. You will need this information to configure your network in the Cloudflare dashboard.
83-
85+
1. For example, map `eno1` port to `VM Network` to create your WAN, and `eno2` to `LAN0` to act as your LAN port.
86+
2. Allocate any unused ports to the `null` port group.
87+
3. Take note of your configuration. You will need this information to configure your network in the Cloudflare dashboard.
8488
9. In **Disk provisioning**, select **Thin**.
85-
8689
10. Before completing the deployment wizard, disable **Power on automatically**. This is important so that you can configure the license key prior to boot.
87-
8890
11. Configure the virtual machine with the license key your account team provided you:
89-
1. Select the Virtual Connector's VM > **Settings**.
90-
2. Go to **VM Options** > **Advanced** > **Edit Configuration**.
91-
3. Select **Add parameter** to add your license key. Scroll down to the last entry (this is where VMware adds the new parameter), and add the following two new entries:
92-
- **Key**: `guestinfo.cloudflare.identity`
93-
- **Value**: `<YOUR_LICENCE_KEY>`
91+
1. Select the Virtual Connector's VM > **Settings**.
92+
2. Go to **VM Options** > **Advanced** > **Edit Configuration**.
93+
3. Select **Add parameter** to add your license key. Scroll down to the last entry (this is where VMware adds the new parameter), and add the following two new entries:
94+
- **Key**: `guestinfo.cloudflare.identity`
95+
- **Value**: `<YOUR_LICENCE_KEY>`
9496

9597
:::note
9698
You cannot use the same license key twice, or reuse a key once the virtual machine has been registered with Cloudflare. You need a new key from your account team for every new Virtual Connector.
@@ -121,17 +123,6 @@ You cannot use the same license key twice, or reuse a key once the virtual machi
121123
}}
122124
/>
123125

124-
### WAN with a static IP address
125-
126-
After activating your Virtual Connector, you can use it in a network configuration with the WAN interface set to a static IP address - that is, an Internet configuration that is not automatically set by DHCP.
127-
128-
To use your Virtual Connector on a network configuration with a static IP:
129-
130-
1. Wait 60 seconds after activating your Connector.
131-
2. Modify your Port Groups as needed to change the source from which the WAN port obtains its IP address.
132-
3. [Adjust the WAN settings](#2-create-a-wan) in the Cloudflare dashboard to reflect the new static IP address configuration.
133-
4. Reboot your virtual machine.
134-
135126
## Boot your Virtual Connector
136127

137128
1. Go to **Virtual Machines** in VMware, and boot up Virtual Connector's VM.
@@ -142,6 +133,27 @@ To use your Virtual Connector on a network configuration with a static IP:
142133

143134
---
144135

136+
## WAN with a static IP address
137+
138+
After activating your Virtual Connector, you can use it in a network configuration with the WAN interface set to a static IP address - that is, an Internet configuration that is not automatically set by DHCP. To use your Virtual Connector on a network configuration with a static IP, follow the steps below.
139+
140+
:::caution
141+
Before proceeding, make sure that you went through the setup workflow and activated your Virtual Connector.
142+
:::
143+
144+
1. Connect the machine where you installed the VM with Virtual Connector to a DHCP port with access to the Internet.
145+
2. [Create a site](#1-create-a-site) in the Cloudflare dashboard.
146+
3. Associate a Connector to it.
147+
4. Create a [DHCP WAN](#2-create-a-wan).
148+
5. [Active](#activate-connector) and boot your Virtual Connector.
149+
6. Wait 60 seconds.
150+
7. Make changes to the [WAN settings](#2-create-a-wan) in the Cloudflare dashboard to a static IP set up.
151+
8. Wait 60 seconds again.
152+
9. Modify your [Port Groups](#deploy-the-virtual-connector-on-vmware) as needed to change the source from which the WAN port obtains its IP address.
153+
10. Reboot your virtual machine.
154+
155+
---
156+
145157
<Render
146158
file="connector/ha-configs"
147159
params={{

src/content/partials/magic-wan/connector/create-site.mdx

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ Take note of the site `id` parameter, as you will need it to create WANs and LAN
7777
3. **Interface number** <Markdown text={props.wan} />
7878
4. In **VLAN ID**, enter a number between `0` and `4094` to specify a [VLAN ID](/magic-wan/configuration/connector/reference/#vlan-id).
7979
5. In **Priority**, choose the priority for your WAN. Lower numbers have higher priority. Refer to <GlossaryTooltip term="traffic steering" link="/magic-wan/reference/traffic-steering/">Traffic steering</GlossaryTooltip> to learn more about how Cloudflare calculates priorities.
80-
6. **Addressing**: If this is the first time you are setting up your Magic WAN Connector, select **DHCP**. After you activate your Connector, you can then choose to continue fetching the WAN IP address from a DHCP server, or change it to a static IP. If you choose a static IP, you also need to specify the static IP and gateway addresses.
80+
6. **Addressing**: Select **DHCP**. This is needed the first time you set up your Connector to successfully download all settings to the machine and activate it. If you need a static IP address in your network environment:
81+
1. Continue the set up flow below to activate your Connector.
82+
2. Refer to [WAN with a static IP address](#wan-with-a-static-ip-address). If you choose a static IP, you also need to specify the static IP and gateway addresses.
8183

8284
<div class="medium-img">
8385

@@ -117,30 +119,18 @@ curl https://api.cloudflare.com/client/v4/accounts/{account_id}/magic/sites/{sit
117119
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
118120

119121
1. In **LAN configuration**, select **Create**.
120-
121122
2. Enter a descriptive name for your LAN in **Interface name**.
122-
123123
3. **Interface number** <Markdown text={props.lan} />
124-
125124
4. In **VLAN ID**, specify a [VLAN ID](/magic-wan/configuration/connector/reference/#vlan-id) to create virtual LANs.
126-
127125
5. In **Static addressing** > **Static address** give your Connector's LAN interface its IP address. You can also enable the following options if they suit your use case:
128-
129126
- **This is a DHCP server**: If your Connector is a [DHCP server](/magic-wan/configuration/connector/network-options/dhcp/dhcp-server/).
130127
- **This is a DHCP relay**: If your Connector is a [DHCP relay](/magic-wan/configuration/connector/network-options/dhcp/dhcp-relay/).
131-
132128
6. (Optional) In **Directly attached subnet** > **Static NAT prefix**, enter a CIDR prefix to enable NAT (network address translation). The prefix you enter here should be the same size as the prefix entered in **Static addressing**. For example, both networks have a subnet mask of `/24`: `192.168.100.0/24` and `10.10.100.0/24`.
133-
134129
7. (Optional) If your LAN contains additional subnets behind a layer 3 router, select **Add routed subnet** under **Routed subnets** to add them:
135-
136130
- **Prefix**: The CIDR prefix for the subnet behind the L3 router.
137131
- **Next hop**: The address of the L3 router to which the Connector should forward packets for this subnet.
138-
- **Static NAT prefix**: Optional setting. If you want to enable NAT for a routed subnet, supply an "external" prefix for the overlay-facing side of the NAT to use. It must be the same size as **Prefix**.
139-
140-
Refer to [Routed subnets](/magic-wan/configuration/connector/network-options/routed-subnets/) for more information.
141-
132+
- **Static NAT prefix**: Optional setting. If you want to enable NAT for a routed subnet, supply an "external" prefix for the overlay-facing side of the NAT to use. It must be the same size as **Prefix**. <br /> Refer to [Routed subnets](/magic-wan/configuration/connector/network-options/routed-subnets/) for more information.
142133
8. Select **Save**.
143-
144134
9. Select **Save and exit** to finish your configuration. Tunnels and <GlossaryTooltip term="static route">static routes</GlossaryTooltip> will be automatically created and associated with your site once the Magic WAN Connector boots up (refer to the next step).
145135

146136
</TabItem> <TabItem label="API">

0 commit comments

Comments
 (0)