From bbf442c94c6e3178f8391c98051d805c11c99cd9 Mon Sep 17 00:00:00 2001 From: rebortg Date: Wed, 22 Dec 2021 16:38:38 +0100 Subject: blueprint: convert dhcp trough gre bridge to autotest --- .../DHCPRelay_through_GRE/_include/dhcp-relay.conf | 11 +++++++++++ .../DHCPRelay_through_GRE/_include/dhcp-server.conf | 13 +++++++++++++ .../DHCPRelay_through_GRE/_include/topology.png | Bin 0 -> 57080 bytes .../DHCPRelay_through_GRE/_include/transport.conf | 2 ++ 4 files changed, 26 insertions(+) create mode 100644 docs/configexamples/autotest/DHCPRelay_through_GRE/_include/dhcp-relay.conf create mode 100644 docs/configexamples/autotest/DHCPRelay_through_GRE/_include/dhcp-server.conf create mode 100644 docs/configexamples/autotest/DHCPRelay_through_GRE/_include/topology.png create mode 100644 docs/configexamples/autotest/DHCPRelay_through_GRE/_include/transport.conf (limited to 'docs/configexamples/autotest/DHCPRelay_through_GRE/_include') diff --git a/docs/configexamples/autotest/DHCPRelay_through_GRE/_include/dhcp-relay.conf b/docs/configexamples/autotest/DHCPRelay_through_GRE/_include/dhcp-relay.conf new file mode 100644 index 00000000..1730ac68 --- /dev/null +++ b/docs/configexamples/autotest/DHCPRelay_through_GRE/_include/dhcp-relay.conf @@ -0,0 +1,11 @@ +set interfaces ethernet eth1 address '10.0.10.10/24' +set interfaces ethernet eth2 address '192.168.0.254/24' +set interfaces tunnel tun100 address '172.16.0.2/30' +set interfaces tunnel tun100 encapsulation 'gretap' +set interfaces tunnel tun100 remote '10.0.20.10' +set interfaces tunnel tun100 source-address '10.0.10.10' +set protocols static route 0.0.0.0/0 next-hop 172.16.0.1 +set protocols static route 10.0.20.0/24 next-hop 10.0.10.254 +set service dhcp-relay interface 'eth2' +set service dhcp-relay interface 'tun100' +set service dhcp-relay server '172.16.0.1' \ No newline at end of file diff --git a/docs/configexamples/autotest/DHCPRelay_through_GRE/_include/dhcp-server.conf b/docs/configexamples/autotest/DHCPRelay_through_GRE/_include/dhcp-server.conf new file mode 100644 index 00000000..9c4b612a --- /dev/null +++ b/docs/configexamples/autotest/DHCPRelay_through_GRE/_include/dhcp-server.conf @@ -0,0 +1,13 @@ +set interfaces ethernet eth1 address '10.0.20.10/24' +set interfaces tunnel tun100 address '172.16.0.1/30' +set interfaces tunnel tun100 encapsulation 'gretap' +set interfaces tunnel tun100 remote '10.0.10.10' +set interfaces tunnel tun100 source-address '10.0.20.10' +set protocols static route 0.0.0.0/0 next-hop 172.16.0.2 +set protocols static route 10.0.10.0/24 next-hop 10.0.20.254 +set protocols static route 192.168.0.0/24 next-hop 127.16.0.2 +set service dhcp-server listen-address '172.16.0.1' +set service dhcp-server shared-network-name DHCPTun100 authoritative +set service dhcp-server shared-network-name DHCPTun100 subnet 192.168.0.0/24 default-router '192.168.0.254' +set service dhcp-server shared-network-name DHCPTun100 subnet 192.168.0.0/24 range 0 start '192.168.0.30' +set service dhcp-server shared-network-name DHCPTun100 subnet 192.168.0.0/24 range 0 stop '192.168.0.30' \ No newline at end of file diff --git a/docs/configexamples/autotest/DHCPRelay_through_GRE/_include/topology.png b/docs/configexamples/autotest/DHCPRelay_through_GRE/_include/topology.png new file mode 100644 index 00000000..952b664b Binary files /dev/null and b/docs/configexamples/autotest/DHCPRelay_through_GRE/_include/topology.png differ diff --git a/docs/configexamples/autotest/DHCPRelay_through_GRE/_include/transport.conf b/docs/configexamples/autotest/DHCPRelay_through_GRE/_include/transport.conf new file mode 100644 index 00000000..1ecebc61 --- /dev/null +++ b/docs/configexamples/autotest/DHCPRelay_through_GRE/_include/transport.conf @@ -0,0 +1,2 @@ +set interfaces ethernet eth1 address '10.0.10.254/24' +set interfaces ethernet eth2 address '10.0.20.254/24' \ No newline at end of file -- cgit v1.2.3