From db658825c7bb17e3221474e22b78306dc3edd2df Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 31 Dec 2019 12:36:53 +0100 Subject: l2tpv3: T1923: implementation in XML/Python Tested using: R1: --- set interfaces l2tpv3 l2tpeth10 address '2001:db8:beef::1/64' set interfaces l2tpv3 l2tpeth10 address '100.0.0.1/24' set interfaces l2tpv3 l2tpeth10 destination-port '3000' set interfaces l2tpv3 l2tpeth10 encapsulation 'udp' set interfaces l2tpv3 l2tpeth10 local-ip '172.18.201.10' set interfaces l2tpv3 l2tpeth10 peer-session-id '10' set interfaces l2tpv3 l2tpeth10 peer-tunnel-id '100' set interfaces l2tpv3 l2tpeth10 remote-ip '172.18.204.10' set interfaces l2tpv3 l2tpeth10 session-id '20' set interfaces l2tpv3 l2tpeth10 source-port '6000' set interfaces l2tpv3 l2tpeth10 tunnel-id '200' R2: --- set interfaces l2tpv3 l2tpeth10 address '2001:db8:beef::2/64' set interfaces l2tpv3 l2tpeth10 address '100.0.0.2/24' set interfaces l2tpv3 l2tpeth10 destination-port '6000' set interfaces l2tpv3 l2tpeth10 encapsulation 'udp' set interfaces l2tpv3 l2tpeth10 local-ip '172.18.204.10' set interfaces l2tpv3 l2tpeth10 peer-session-id '20' set interfaces l2tpv3 l2tpeth10 peer-tunnel-id '200' set interfaces l2tpv3 l2tpeth10 remote-ip '172.18.201.10' set interfaces l2tpv3 l2tpeth10 session-id '10' set interfaces l2tpv3 l2tpeth10 source-port '3000' set interfaces l2tpv3 l2tpeth10 tunnel-id '100' --- interface-definitions/interfaces-l2tpv3.xml.in | 151 +++++++++++++++++++++++++ 1 file changed, 151 insertions(+) create mode 100644 interface-definitions/interfaces-l2tpv3.xml.in (limited to 'interface-definitions') diff --git a/interface-definitions/interfaces-l2tpv3.xml.in b/interface-definitions/interfaces-l2tpv3.xml.in new file mode 100644 index 000000000..520cce283 --- /dev/null +++ b/interface-definitions/interfaces-l2tpv3.xml.in @@ -0,0 +1,151 @@ + + + + + + + Layer 2 Tunnel Protocol Version 3 (L2TPv3) interface + 800 + + l2tpeth[0-9]+$ + + L2TPv3 interface must be named l2tpethN + + l2tpethN + L2TPv3 interface name + + + + #include + #include + + + UDP destination port for L2TPv3 tunnel (default: 5000) + + 1-65535 + Numeric IP port + + + + + + + #include + + + Encapsulation type (defualt: UDP) + + udp ip + + + udp + UDP encapsulation + + + ip + IP encapsulation + + + (udp|ip) + + Encapsulation must be UDP or IP + + + + + Local IP address for L2TPv3 tunnel + + ipv4 + Local IPv4 address of tunnel + + + ipv6 + Local IPv6 address of tunnel + + + + + + + #include + + + Peer session identifier + + 1-429496729 + L2TPv3 peer session identifier + + + + + + + + + Peer tunnel identifier + + 1-429496729 + L2TPv3 peer tunnel identifier + + + + + + + + + Remote IP address for L2TPv3 tunnel + + ipv4 + Remote IPv4 address of tunnel + + + ipv6 + Remote IPv6 address of tunnel + + + + + + + + + Session identifier + + 1-429496729 + L2TPv3 session identifier + + + + + + + + + UDP source port for L2TPv3 tunnel (default: 5000) + + 1-65535 + Numeric IP port + + + + + + + + + Local tunnel identifier + + 1-429496729 + L2TPv3 local tunnel identifier + + + + + + + + + + + -- cgit v1.2.3