Creating a network interface with automatic assignment of an IP address via DHCP
To create a network interface with automatic assignment of an IP address via DHCP:
- Create a network interface in one of the following ways:
- If you want to create a network interface in a CPE template, go to the SD-WAN → CPE templates section, click the CPE template, and select the Network tab.
- If you want to create a network interface on a CPE device, go to the SD-WAN → CPE section, click the CPE device, and select the Network tab.
The table of network interfaces is displayed.
- Click + Network interface.
- This opens a window; in that window, in the Alias field, enter the name of the network interface for mapping the network interface to an OpenFlow port. You must specify this network interface name when creating an SD-WAN interface of the WAN type. The maximum length of the name is 15 characters.
- If you want to add a network interface to a firewall zone, in the Zone drop-down list, select the created firewall zone.
- In the Interface name field, enter the name of the physical port or virtual interface of the operating system of the CPE device. The maximum length of the name is 256 characters. For example, you can enter
eth0
,eth1
,eth2
, ortun0
. To create a bridge from multiple interfaces, enter their names separated by spaces.If you want to assign an outer VLAN tag to a network interface, enter a period (.) after the physical port or virtual interface name of the operating system, and then enter the outer VLAN tag. For example, you can enter
eth2.150
. - If you want to create a bridge from physical or virtual interfaces whose names are specified in the Interface name field:
- Select the Bridge check box. This check box is cleared by default.
- If you want to use STP on the bridge to prevent routing loops, select the STP check box. This check box is cleared by default.
- In the Age (sec) field, enter the duration in seconds for which dynamic records are stored in the MAC table of the bridge. If you want to use the bridge as a hub, enter
0
in this field. Range of values: 0 to 86,400.
- If you want to enable the NetFlow protocol on the network interface, select the NetFlow check box. This check box is cleared by default.
- In the Protocol drop-down list, select DHCP client.
- If you do not want the network interface to be automatically enabled when the CPE device is enabled, clear the Enable automatically check box. This check box is selected by default.
- If you want an IP address, route, and default gateway automatically assigned to the network interface, select the Force IP address, route, and gateway check box. This check box is cleared by default.
- If you do not want the route obtained via DHCP to be used by network interface by default, clear the Use default route check box. This check box is selected by default.
- If necessary, specify a DNS server for the network interface:
- Under DNS servers, click + Add.
- In the field that is displayed, enter the IP address of the DNS server.
The DNS server is specified and displayed in the DNS servers section. You can specify multiple DNS servers or delete DNS servers. To delete a DNS server, click the delete icon
next to it.
- In the Override MAC field, enter the MAC address of the network interface. The entered value replaces the actual MAC address of the network interface. The field is not editable if the Generate MAC address automatically check box is selected.
- In the Override MTU field, enter the MTU for the network interface. The entered value overrides the default MTU.
- If you want the MAC address of the network interface to be generated automatically, select the Generate MAC address automatically check box (cleared by default).
- If necessary, in the Route metric field, enter the default route metric for the network interface. The CPE device uses the default route with the lowest metric.
The route metric for network interfaces with sdwan0–sdwan3 aliases is assigned automatically at CPE startup: the sdwan0 gets the highest priority, and the lowest priority goes to sdwan3. In this case, the CPE device uses the default route of the sdwan0 network interface. If the sdwan0 network interface fails, the default route of the sdwan1 network interface is used next, followed by the default route of the sdwan2 network interface. The value in the Route metric field is blocked for manual editing for interfaces with sdwan0–sdwan9 aliases.
The metric is automatically calculated from the following attributes:
1–4
if there are no errors and there is internet access11–14
if there are no errors and no internet access21–24
if there are errors and no internet access.
Metrics are automatically assigned to interfaces depending on the number the interface alias ends in, in accordance to the following scheme:
- sdwan0:
1, 11, 21
- sdwan1:
2, 12, 22
- sdwan2:
3, 13, 23
- sdwan3:
4, 14, 24
- Click Create.
The network interface is created and displayed in the table.
- In the lower part of the settings area, click Save to save the settings of the CPE template or CPE device.