IXP - Internet Exchange Point

Config

On this page you will find a number of configuration examples for software and various operating systems

Server IPv4 Address 198.51.100.1
Server IPv6 Address 2001:db8:abcd::1
Client IPv4 Address 10.0.0.151
Client IPv6 Address
Local IPv4 Address 192.168.123.10
Local IPv6 Address 2001:db8:4b42::a

Route Server

Autonomous System Number 35708
1. Route Server 185.1.125.1
2001:7f8:d0:b901::7d01
2. Route Server 185.1.125.2
2001:7f8:d0:b901::7d02

Linux Debian/Ubuntu

Tunnels

GRE

/bin/ip link add 4IXP type gretap local 10.0.0.151 remote 198.51.100.1 /bin/ip link set dev 4IXP up /bin/ip addr add 192.168.123.10/24 dev 4IXP /bin/ip addr add 2001:db8:4b42::a/48 dev 4IXP

Ethernet over IP

wget https://raw.githubusercontent.com/4b42/4ixp/master/eoip/install.sh -O /tmp/eoip.sh && chmod +x /tmp/eoip.sh && /tmp/eoip.sh && rm -f /tmp/eoip.sh cat << EOF > /etc/eoip.cfg [eoip4ixp] id=123456 dst=198.51.100.1 EOF /usr/local/bin/eoip /etc/eoip.cfg /bin/ip addr add 192.168.123.10/24 dev eoip4ixp /bin/ip addr add 2001:db8:4b42::a/48 dev eoip4ixp

BGP

IPv4

cat << EOF > /etc/bird/bird.conf router id 192.168.123.10; protocol device { scan time 10; } protocol bgp rs1 { local as ; source address 192.168.123.10; import all; export all; graceful restart on; multihop 10; neighbor 185.1.125.1 as 35708; password "SamplePassword"; } protocol bgp rs2 { local as ; source address 192.168.123.10; import all; export all; graceful restart on; multihop 10; neighbor 185.1.125.2 as 35708; password "SamplePassword"; } EOF

MikroTik RouterOS

Tunnels

Ethernet over IP

/interface eoip add !keepalive name=4IXP local-address=10.0.0.151 remote-address=198.51.100.1 tunnel-id=4842 /ip address add address=192.168.123.10/24 interface=4IXP /ipv6 address add address=2001:db8:4b42::a/48 interface=4IXP

BGP

/routing bgp instance set default as= disabled=no # 1. Route Server /routing bgp peer add instance=default name=4IXPv4rs1 remote-address=185.1.125.1 remote-as=35708 tcp-md5-key=SamplePassword ttl=default /routing bgp peer add instance=default name=4IXPv6rs1 remote-address=2001:7f8:d0:b901::7d01 remote-as=35708 tcp-md5-key=SamplePassword ttl=default # 2. Route Server /routing bgp peer add instance=default name=4IXPv4rs2 remote-address=185.1.125.2 remote-as=35708 tcp-md5-key=SamplePassword ttl=default /routing bgp peer add instance=default name=4IXPv6rs2 remote-address=2001:7f8:d0:b901::7d02 remote-as=35708 tcp-md5-key=SamplePassword ttl=default