1 # Create a network interface for the data-plane traffic
3 resource "azurerm_network_interface" "dut1_if2" {
5 location = azurerm_resource_group.CSIT.location
6 resource_group_name = azurerm_resource_group.CSIT.name
7 network_security_group_id = azurerm_network_security_group.CSIT.id
8 enable_ip_forwarding = "true"
9 enable_accelerated_networking = "true"
13 subnet_id = azurerm_subnet.c.id
14 private_ip_address_allocation = "Static"
15 private_ip_address = "200.0.0.101"
19 resource "azurerm_network_interface" "dut2_if1" {
21 location = azurerm_resource_group.CSIT.location
22 resource_group_name = azurerm_resource_group.CSIT.name
23 network_security_group_id = azurerm_network_security_group.CSIT.id
24 enable_ip_forwarding = "true"
25 enable_accelerated_networking = "true"
29 subnet_id = azurerm_subnet.c.id
30 private_ip_address_allocation = "Static"
31 private_ip_address = "200.0.0.102"
35 resource "azurerm_network_interface" "dut1_if1" {
37 location = azurerm_resource_group.CSIT.location
38 resource_group_name = azurerm_resource_group.CSIT.name
39 network_security_group_id = azurerm_network_security_group.CSIT.id
40 enable_ip_forwarding = "true"
41 enable_accelerated_networking = "true"
45 subnet_id = azurerm_subnet.b.id
46 private_ip_address_allocation = "Static"
47 private_ip_address = "192.168.10.11"
51 resource "azurerm_network_interface" "dut2_if2" {
53 location = azurerm_resource_group.CSIT.location
54 resource_group_name = azurerm_resource_group.CSIT.name
55 network_security_group_id = azurerm_network_security_group.CSIT.id
56 enable_ip_forwarding = "true"
57 enable_accelerated_networking = "true"
61 subnet_id = azurerm_subnet.d.id
62 private_ip_address_allocation = "Static"
63 private_ip_address = "192.168.20.11"
67 resource "azurerm_network_interface" "tg_if1" {
69 location = azurerm_resource_group.CSIT.location
70 resource_group_name = azurerm_resource_group.CSIT.name
71 network_security_group_id = azurerm_network_security_group.CSIT.id
72 enable_ip_forwarding = "true"
73 enable_accelerated_networking = "true"
77 subnet_id = azurerm_subnet.b.id
78 private_ip_address_allocation = "Static"
79 private_ip_address = "192.168.10.254"
83 resource "azurerm_network_interface" "tg_if2" {
85 location = azurerm_resource_group.CSIT.location
86 resource_group_name = azurerm_resource_group.CSIT.name
87 network_security_group_id = azurerm_network_security_group.CSIT.id
88 enable_ip_forwarding = "true"
89 enable_accelerated_networking = "true"
93 subnet_id = azurerm_subnet.d.id
94 private_ip_address_allocation = "Static"
95 private_ip_address = "192.168.20.254"