services/Exchanges.md
... ...
@@ -2,6 +2,8 @@ In the real world two organizations have to lay cables to one another when they
2 2
3 3
In DN42 this is less relevant as links between peers are using 'cheap' VPNs.
4 4
5
+IXP frnte operated by LGP Corp: [IXP frnte](/services/IXP-frnte)
6
+
5 7
---
6 8
7 9
A few people have provided exchanges previously on DN42, however they created single
services/IXP-frnte.md
... ...
@@ -0,0 +1,106 @@
1
+The IXP frnte
2
+=============
3
+
4
+An IXP is a collection point for Internet providers. This can be physical or virtual. In a physical IXP, several Internet providers place servers in a data center and connect them to each other.
5
+
6
+In a virtual IXP, the servers are not "real." They are not physically connected with cables, but for example via a VPN.
7
+
8
+In dn42 almost all connections are virtual. One builds on the Internet and creates virtual links between the single nodes. In IXP frnte, all providers have virtual machines, which are connected to each other. Due to the large number of providers in IXP, it is possible to reach them easily and with low latency. However, the large number also leads to the fact that no direct peerings are established within an IXP, instead route servers are used. This receives and coordinates all routes of the providers and sends out appropriate routes. This way, many indirect peerings can be established.
9
+
10
+History and origin
11
+------------------
12
+
13
+In dn42 and in the Anonet there was the UCIS IXP for a long time. However, this is no longer actively operated.
14
+
15
+Members of the LGP Corp have now created a new IXP in dn42. This is the IXP frnte. It is located in France near Nantes and has two separate internet connections. This article describes how to enter the IXP and set up peering with the current route server.
16
+
17
+Join the IXP
18
+------------
19
+
20
+### 1\. Request the infrastructure
21
+
22
+LGP Corp provides virtual machines free of charge to any AS operator or anyone who wants to experiment with networks. There are no costs! The VM's can be configured and linked together as desired. The VM's can be connected to each other via a VLAN. Furthermore, an internet connection is available with two ISPs, depending on your choice. The virtual machine gets a public IPv6 and if necessary IPv4 over NAT to be able to access important resources like GitHub.
23
+It is best to create a diagram of your network and send it to the LGP Corp.
24
+The LGP Corp or the responsible admin for the IXP can be reached in **IRC** on hackint.org under **toinux**. Send the diagram to them and discuss further details.
25
+Furthermore, all virtual machines are put into a common VLAN. This causes that one can reach all providers at the IXP without problems.
26
+
27
+### 2\. Proxmox Login and VM Setup
28
+
29
+After that you will receive your access data for the Proxmox portal from the LGP Corp. Under which you can set up your VM's. The portal can be reached under [**https://pve.home.lgp-corp.fr/**](https://pve.home.lgp-corp.fr/). Select "Proxmox VE authentication server" as "Realm". It also offers a VNC monitor to work directly on the server. For the setup under SSH an IPv6 connectivity to the internet is required. If you only have an IPv4, you can get an IPv6 for free from Hurricane Electric at [https://tunnelbroker.net/](https://tunnelbroker.net/).
30
+
31
+### 3\. Configure VLAN
32
+
33
+An internal IPv6 Range has been requested for the IXP: `fde0:93fa:7a0:2::/64` ([fde0:93fa:7a0:2::/64 on explorer](https://explorer.dn42.dev/#/inet6num/fde0:93fa:7a0:2::_64))
34
+
35
+The following is the assignment policy:
36
+`fde0:93fa:7a0:2:0:<asn32|high16|hex>:<asn32|low16|hex>:1/64`
37
+For example, if you have the ASN 4242421080, you get the range `fde0:93fa:7a0:2:0:fcde:3558:1/64`
38
+It should be noted that only the last block may be changed. So you get a practical IPv6 range of `fde0:93fa:7a0:2:0:fcde:3558:/112`.
39
+A Ruby script to calculate the IPv6 can be found on [ixp\_frnte\_dn42\_prefix.rb on GitHub Gist](https://gist.github.com/marek22k/494cf9c4d269867f23f2c3577e1780ef).
40
+
41
+An example configuration for Debian based Linux distributions would be:
42
+
43
+ iface ensXX inet6 static
44
+ address fde0:93fa:7a0:2:0:fcde:3558:1/64
45
+
46
+Here `ensXX` is the dn42 VLAN interface. This can be determined by comparing the MAC address of the interface with the MAC address of the dn42 VLAN in Proxmox. The MAC address can be determined on Linux with `ip l`:
47
+
48
+ ensXX: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu
49
+ 1500 qdisc pfifo_fast state UP mode DEFAULT group
50
+ default qlen 1000
51
+ link/ether MAC brd ff:ff:ff:ff:ff:ff
52
+
53
+`MAC` would be the MAC address. After that you can activate the interface with ifup or a reboot of the VM.
54
+Of course there are other configuration possibilities. This is only an example for Debian-based Linux distributions.
55
+
56
+### 4\. Connect to the Route Server
57
+
58
+There can be several Route Servers (RS) on one IXP. However, on the IXP frnte there is currently only one, which is operated by jlu5 (operator of the highdef network).
59
+IPv6: fde0:93fa:7a0:2:0:fcde:3559:1
60
+ASN: 4242421081
61
+
62
+You can now enter this configuration into your routing daemon and it will connect to the RS. You should keep in mind that the RS itself does not forward any traffic, but is only responsible for the coordination. Therefore the AS path must not necessarily start with the AS of the RS.
63
+
64
+An example configuration for bird2 would be the following:
65
+
66
+ protocol bgp ixp_rs from dnpeers {
67
+ neighbor fde0:93fa:7a0:2:0:fcde:3559:1 as 4242421081;
68
+
69
+ enable extended messages on;
70
+ direct;
71
+ enforce first as off;
72
+
73
+ ipv4 {
74
+ extended next hop;
75
+ };
76
+ }
77
+
78
+**What does this configuration do?**
79
+
80
+First we create a new BGP session (`protocol bgp`). This is based on the dnpeers template which can be found in the standard Bird2 configuration in the [wiki](https://dn42.eu/howto/Bird2). We name this session "ixp\_rs". However, this is only an internal name and can be replaced with another one.
81
+
82
+After that we determine with whom we want to have the session. This would be the RS. Therefore we put IPv6 address and ASN there.
83
+
84
+Furthermore, we allow larger BGP messages. Thus, instead of 4096 bytes, a whole 65535 bytes are transmitted in one message. This is especially useful because an RS has to announce a lot of routes.
85
+
86
+With `direct` we indicate that the RS is directly connected to our server and no routing via third parties has to be performed. In our case, the RS is connected to us via the dn42 VLAN.
87
+
88
+The next line has the effect that the ASN of the RS does not necessarily have to be the next hop for routing. This is important because we do not route the traffic via the RS, but via the respective peers. These have an ASN that differs from the ASN of the RS.
89
+
90
+Since the dn42 VLAN _only_ supports IPv6, any IPv4 traffic must also go over IPv6. If you do not have or do not want to use IPv4, you can ignore this part of the configuration.
91
+
92
+Finally we save the bird2 configuration and load the new configuration with `birdc configure`.
93
+
94
+### 5\. Check if it works
95
+
96
+There are now a few things to check:
97
+Once you can see if the BGP session is esablished. In Bird you can do this with `birdc show protocols all ixp_rs`.
98
+Furthermore, you can display different routes (in case of bird with `birdc show route for [ip address]`) or perform a traceroute.
99
+One can also try to ping the IP of some at the IXP. From the latency you can also see if everything is working:
100
+
101
+* Burble's pingable
102
+ * 172.20.129.5
103
+ * fd42:4242:2601:ac05::1
104
+* Bandura's pingable:
105
+ * 172.22.149.224
106
+ * fd04:234e:fc31::