Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #275065 > unrolled thread
| Started by | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| First post | 2024-12-01 00:50 +0100 |
| Last post | 2024-12-01 03:10 +0100 |
| Articles | 9 — 2 participants |
Back to article view | Back to linux.debian.user
Debian Server Routing OSPF on two links and one loopback address Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-01 00:50 +0100
Re: Debian Server Routing OSPF on two links and one loopback address Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-01 01:00 +0100
Re: Debian Server Routing OSPF on two links and one loopback address Andy Smith <andy@strugglers.net> - 2024-12-01 01:20 +0100
Re: Debian Server Routing OSPF on two links and one loopback address Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-01 09:30 +0100
Re: Debian Server Routing OSPF on two links and one loopback address Andy Smith <andy@strugglers.net> - 2024-12-01 01:10 +0100
Re: Debian Server Routing OSPF on two links and one loopback address Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-01 09:30 +0100
Re: Debian Server Routing OSPF on two links and one loopback address Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-01 01:40 +0100
Re: Debian Server Routing OSPF on two links and one loopback address Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-01 02:10 +0100
Re: Debian Server Routing OSPF on two links and one loopback address Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-01 03:10 +0100
| From | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| Date | 2024-12-01 00:50 +0100 |
| Subject | Debian Server Routing OSPF on two links and one loopback address |
| Message-ID | <JOFnP-cRMU-5@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
All,
I have been working out how to have my server setup with OSPF routing. I
have two network interfaces each configured with a /30 and one dummy
loopback configured with a /32. The goal is to have the /32 address
advertised in DNS so traffic can use per-session load balancing across both
/30's.
Can anyone think of anything I might have missed?
### Create and configure the dummy interface
sudo touch /etc/network/interfaces.d/ospf.cfg
sudo vim /etc/network/interfaces.d/ospf.cfg
auto ospf
iface ospf inet static
address 10.0.0.1/32
pre-up ip link add ospf type dummy
### Configure Static IP addresses
auto eth0
iface eth0 inet static
address 10.1.1.2/30
auto eth1
iface eth1 inet static
address 10.1.1.6/30
### Add Default Gateway routes
route add -net default gw 10.1.1.1 metric 1024 dev eth0
route add -net default gw 10.1.1.5 metric 1024 dev eth1
# NOTE: I am not sure if the above commands will be persistent.
### Install and Configure frr Free Range Routing
sudo apt install frr
sudo vim /etc/frr/daemons
change no to yes for OSPF
sudo /usr/bin/vtysh
conf t
router ospf
network 10.0.0.1/32 area 0
network 10.1.1.0/30 area 0
network 10.1.1.4/30 area 0
# NOTE: frr configuration is stored in. sudo vim /etc/frr/frr.conf
### Enable IP Forwarding
sudo sysctl -w net.ipv4.ip_forward=1
### sysctl.d config file
sudo touch /etc/sysctl.d/ipforward
sudo vim /etc/sysctl.d/ipforward
net.ipv4.ip_forward = 1
### Firewalld Configuration - Open OSPF
sudo firewall-cmd --add-protocol=ospf --permanent --zone=internal
sudo firewall-cmd --add-protocol=89 --permanent --zone=internal
### DNS Configuration
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns1.home.arpa. root.home.arpa. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns1.home.arpa.
@ IN A 127.0.0.1
@ IN AAAA ::1
ns1 IN A 127.0.0.1
ns1 IN AAAA ::1
server-1 IN A 10.0.0.1
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀
[toc] | [next] | [standalone]
| From | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| Date | 2024-12-01 01:00 +0100 |
| Message-ID | <JOFxv-cRQ1-1@gated-at.bofh.it> |
| In reply to | #275065 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, Nov 30, 2024 at 6:46 PM Timothy M Butterworth < timothy.m.butterworth@gmail.com> wrote: > All, > > I have been working out how to have my server setup with OSPF routing. I > have two network interfaces each configured with a /30 and one dummy > loopback configured with a /32. The goal is to have the /32 address > advertised in DNS so traffic can use per-session load balancing across both > /30's. > > Can anyone think of anything I might have missed? > > ### Create and configure the dummy interface > > sudo touch /etc/network/interfaces.d/ospf.cfg > sudo vim /etc/network/interfaces.d/ospf.cfg > > auto ospf > iface ospf inet static > address 10.0.0.1/32 > pre-up ip link add ospf type dummy > > > ### Configure Static IP addresses > auto eth0 > iface eth0 inet static > address 10.1.1.2/30 > > auto eth1 > iface eth1 inet static > address 10.1.1.6/30 > > > ### Add Default Gateway routes > route add -net default gw 10.1.1.1 metric 1024 dev eth0 > route add -net default gw 10.1.1.5 metric 1024 dev eth1 > I changed the default gateway config to: ### Configure Static IP addresses and default gateway's. auto eth0 iface eth0 inet static address 10.1.1.2/30 up route add -net default gw 10.1.1.1 metric 1024 dev eth0 auto eth1 iface eth1 inet static address 10.1.1.6/30 up route add -net default gw 10.1.1.5 metric 1024 dev eth1 > # NOTE: I am not sure if the above commands will be persistent. > > ### Install and Configure frr Free Range Routing > sudo apt install frr > > sudo vim /etc/frr/daemons > change no to yes for OSPF > > sudo /usr/bin/vtysh > > conf t > router ospf > network 10.0.0.1/32 area 0 > network 10.1.1.0/30 area 0 > network 10.1.1.4/30 area 0 > > # NOTE: frr configuration is stored in. sudo vim /etc/frr/frr.conf > > > ### Enable IP Forwarding > sudo sysctl -w net.ipv4.ip_forward=1 > > ### sysctl.d config file > sudo touch /etc/sysctl.d/ipforward > sudo vim /etc/sysctl.d/ipforward > net.ipv4.ip_forward = 1 > > ### Firewalld Configuration - Open OSPF > sudo firewall-cmd --add-protocol=ospf --permanent --zone=internal > sudo firewall-cmd --add-protocol=89 --permanent --zone=internal > > ### DNS Configuration > ; > ; BIND data file for local loopback interface > ; > $TTL 604800 > @ IN SOA ns1.home.arpa. root.home.arpa. ( > 2 ; Serial > 604800 ; Refresh > 86400 ; Retry > 2419200 ; Expire > 604800 ) ; Negative Cache TTL > ; > @ IN NS ns1.home.arpa. > @ IN A 127.0.0.1 > @ IN AAAA ::1 > > ns1 IN A 127.0.0.1 > ns1 IN AAAA ::1 > server-1 IN A 10.0.0.1 > -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄⠀⠀
[toc] | [prev] | [next] | [standalone]
| From | Andy Smith <andy@strugglers.net> |
|---|---|
| Date | 2024-12-01 01:20 +0100 |
| Message-ID | <JOFQR-cSc2-1@gated-at.bofh.it> |
| In reply to | #275066 |
Hi, On Sat, Nov 30, 2024 at 06:54:10PM -0500, Timothy M Butterworth wrote: > I changed the default gateway config to: > ### Configure Static IP addresses and default gateway's. > auto eth0 > iface eth0 inet static > address 10.1.1.2/30 > up route add -net default gw 10.1.1.1 metric 1024 dev eth0 In native ifupdown syntax: auto eth0 iface eth0 inet static address 10.1.1.2/30 gateway 10.1.1.1 metric 1024 See "man interfaces". "The static method" Thanks, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting
[toc] | [prev] | [next] | [standalone]
| From | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| Date | 2024-12-01 09:30 +0100 |
| Message-ID | <JONv4-cWZ4-5@gated-at.bofh.it> |
| In reply to | #275070 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, Nov 30, 2024 at 11:57 PM Andy Smith <andy@strugglers.net> wrote: > Hi, > > On Sat, Nov 30, 2024 at 06:54:10PM -0500, Timothy M Butterworth wrote: > > I changed the default gateway config to: > > ### Configure Static IP addresses and default gateway's. > > auto eth0 > > iface eth0 inet static > > address 10.1.1.2/30 > > up route add -net default gw 10.1.1.1 metric 1024 dev eth0 > > In native ifupdown syntax: > > auto eth0 > iface eth0 inet static > address 10.1.1.2/30 > gateway 10.1.1.1 > metric 1024 > Thanks for the info. See "man interfaces". "The static method" > > Thanks, > Andy > > -- > https://bitfolk.com/ -- No-nonsense VPS hosting > > -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄⠀⠀
[toc] | [prev] | [next] | [standalone]
| From | Andy Smith <andy@strugglers.net> |
|---|---|
| Date | 2024-12-01 01:10 +0100 |
| Message-ID | <JOFHb-cS8R-5@gated-at.bofh.it> |
| In reply to | #275065 |
Hi, On Sat, Nov 30, 2024 at 06:46:20PM -0500, Timothy M Butterworth wrote: > I have been working out how to have my server setup with OSPF routing. I have no operational experience of OSPF nor FRR. I do what you're doing but with BIRD, BGP and ECMP. I think you'll probably need to ask questions on some FRR support forum as this is likely beyond most of us on debian-user. Some comments though: > Can anyone think of anything I might have missed? > > ### Create and configure the dummy interface > > sudo touch /etc/network/interfaces.d/ospf.cfg > sudo vim /etc/network/interfaces.d/ospf.cfg In an earlier post you said you use NetworkManager but you continue to use ifupdown config files. Did you in fact mean to say that you are using ifupdown? That won't be an issue - I use ifupdown myself in the place I do BGP/ECMP. But you'll want to be clear when asking for help. > ### Add Default Gateway routes > route add -net default gw 10.1.1.1 metric 1024 dev eth0 > route add -net default gw 10.1.1.5 metric 1024 dev eth1 > > # NOTE: I am not sure if the above commands will be persistent. They won't. Why aren't they in the same ifupdown interfaces file as the place you defined the interface, so they get added/removed when the interface is brought up/down? > ### sysctl.d config file > sudo touch /etc/sysctl.d/ipforward > sudo vim /etc/sysctl.d/ipforward > net.ipv4.ip_forward = 1 Files in /etc/sysctl.d need to have an extension of .conf as per /etc/sysctl.d/README.sysctl and "man sysctl.d". Your file above is not going to be acted upon. If things don't work out with FRR I'd say try BIRD. Its support mailing list is reasonably active. Thanks, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting
[toc] | [prev] | [next] | [standalone]
| From | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| Date | 2024-12-01 09:30 +0100 |
| Message-ID | <JONv3-cWZ4-1@gated-at.bofh.it> |
| In reply to | #275068 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, Nov 30, 2024 at 11:22 PM Andy Smith <andy@strugglers.net> wrote: > Hi, > > On Sat, Nov 30, 2024 at 06:46:20PM -0500, Timothy M Butterworth wrote: > > I have been working out how to have my server setup with OSPF routing. > > I have no operational experience of OSPF nor FRR. I do what you're doing > but with BIRD, BGP and ECMP. I think you'll probably need to ask > questions on some FRR support forum as this is likely beyond most of us > on debian-user. > > Some comments though: > > > Can anyone think of anything I might have missed? > > > > ### Create and configure the dummy interface > > > > sudo touch /etc/network/interfaces.d/ospf.cfg > > sudo vim /etc/network/interfaces.d/ospf.cfg > > In an earlier post you said you use NetworkManager but you continue to > use ifupdown config files. Did you in fact mean to say that you are > using ifupdown? > > That won't be an issue - I use ifupdown myself in the place I do > BGP/ECMP. But you'll want to be clear when asking for help. > > > ### Add Default Gateway routes > > route add -net default gw 10.1.1.1 metric 1024 dev eth0 > > route add -net default gw 10.1.1.5 metric 1024 dev eth1 > > > > # NOTE: I am not sure if the above commands will be persistent. > > They won't. Why aren't they in the same ifupdown interfaces file as the > place you defined the interface, so they get added/removed when the > interface is brought up/down? > > > ### sysctl.d config file > > sudo touch /etc/sysctl.d/ipforward > > sudo vim /etc/sysctl.d/ipforward > > net.ipv4.ip_forward = 1 > > Files in /etc/sysctl.d need to have an extension of .conf as per > /etc/sysctl.d/README.sysctl and "man sysctl.d". Your file above is not > going to be acted upon. > > If things don't work out with FRR I'd say try BIRD. Its support mailing > list is reasonably active. > The frr part of the configuration is easy. The syntax is just like Cisco. I already tested it and my neighbor adjacencies come right up. > > Thanks, > Andy > > -- > https://bitfolk.com/ -- No-nonsense VPS hosting > > -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄⠀⠀
[toc] | [prev] | [next] | [standalone]
| From | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| Date | 2024-12-01 01:40 +0100 |
| Message-ID | <JOGad-cSij-1@gated-at.bofh.it> |
| In reply to | #275065 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, Nov 30, 2024 at 6:46 PM Timothy M Butterworth < timothy.m.butterworth@gmail.com> wrote: > All, > > I have been working out how to have my server setup with OSPF routing. I > have two network interfaces each configured with a /30 and one dummy > loopback configured with a /32. The goal is to have the /32 address > advertised in DNS so traffic can use per-session load balancing across both > /30's. > > Can anyone think of anything I might have missed? > > ### Create and configure the dummy interface > > sudo touch /etc/network/interfaces.d/ospf.cfg > sudo vim /etc/network/interfaces.d/ospf.cfg > > auto ospf > iface ospf inet static > address 10.0.0.1/32 > pre-up ip link add ospf type dummy > > > ### Configure Static IP addresses > auto eth0 > iface eth0 inet static > address 10.1.1.2/30 > > auto eth1 > iface eth1 inet static > address 10.1.1.6/30 > > > ### Add Default Gateway routes > route add -net default gw 10.1.1.1 metric 1024 dev eth0 > route add -net default gw 10.1.1.5 metric 1024 dev eth1 > > # NOTE: I am not sure if the above commands will be persistent. > > Added nmcli commands ### Create and configure the dummy interface using nmcli sudo nmcli conn add type dummy ifname ospf ipv4.method manual ipv4.address 10.0.0.1/32 sudo nmcli connection add type ethernet ifname eth0 ipv4.method manual ipv4.address 10.1.1.2/30 ipv4.gateway 10.1.1.1 sudo nmcli connection add type ethernet ifname eth0 ipv4.method manual ipv4.address 10.1.1.6/30 ipv4.gateway 10.1.1.5 > ### Install and Configure frr Free Range Routing > sudo apt install frr > > sudo vim /etc/frr/daemons > change no to yes for OSPF > > sudo /usr/bin/vtysh > > conf t > router ospf > network 10.0.0.1/32 area 0 > network 10.1.1.0/30 area 0 > network 10.1.1.4/30 area 0 > > # NOTE: frr configuration is stored in. sudo vim /etc/frr/frr.conf > > > ### Enable IP Forwarding > sudo sysctl -w net.ipv4.ip_forward=1 > > ### sysctl.d config file > sudo touch /etc/sysctl.d/ipforward > sudo vim /etc/sysctl.d/ipforward > net.ipv4.ip_forward = 1 > > ### Firewalld Configuration - Open OSPF > sudo firewall-cmd --add-protocol=ospf --permanent --zone=internal > sudo firewall-cmd --add-protocol=89 --permanent --zone=internal > > ### DNS Configuration > ; > ; BIND data file for local loopback interface > ; > $TTL 604800 > @ IN SOA ns1.home.arpa. root.home.arpa. ( > 2 ; Serial > 604800 ; Refresh > 86400 ; Retry > 2419200 ; Expire > 604800 ) ; Negative Cache TTL > ; > @ IN NS ns1.home.arpa. > @ IN A 127.0.0.1 > @ IN AAAA ::1 > > ns1 IN A 127.0.0.1 > ns1 IN AAAA ::1 > server-1 IN A 10.0.0.1 > > > -- > ⢀⣴⠾⠻⢶⣦⠀ > ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system > ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ > ⠈⠳⣄⠀⠀ > -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄⠀⠀
[toc] | [prev] | [next] | [standalone]
| From | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| Date | 2024-12-01 02:10 +0100 |
| Message-ID | <JOGDf-cSIf-3@gated-at.bofh.it> |
| In reply to | #275074 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, Nov 30, 2024 at 7:35 PM Timothy M Butterworth < timothy.m.butterworth@gmail.com> wrote: > > > On Sat, Nov 30, 2024 at 6:46 PM Timothy M Butterworth < > timothy.m.butterworth@gmail.com> wrote: > >> All, >> >> I have been working out how to have my server setup with OSPF routing. I >> have two network interfaces each configured with a /30 and one dummy >> loopback configured with a /32. The goal is to have the /32 address >> advertised in DNS so traffic can use per-session load balancing across both >> /30's. >> >> Can anyone think of anything I might have missed? >> >> ### Create and configure the dummy interface >> >> sudo touch /etc/network/interfaces.d/ospf.cfg >> sudo vim /etc/network/interfaces.d/ospf.cfg >> >> auto ospf >> iface ospf inet static >> address 10.0.0.1/32 >> pre-up ip link add ospf type dummy >> >> >> ### Configure Static IP addresses >> auto eth0 >> iface eth0 inet static >> address 10.1.1.2/30 >> >> auto eth1 >> iface eth1 inet static >> address 10.1.1.6/30 >> >> >> ### Add Default Gateway routes >> route add -net default gw 10.1.1.1 metric 1024 dev eth0 >> route add -net default gw 10.1.1.5 metric 1024 dev eth1 >> >> # NOTE: I am not sure if the above commands will be persistent. >> >> > Added nmcli commands > ### Create and configure the dummy interface using nmcli > sudo nmcli conn add type dummy ifname ospf ipv4.method manual ipv4.address > 10.0.0.1/32 > sudo nmcli connection add type ethernet ifname eth0 ipv4.method manual > ipv4.address 10.1.1.2/30 ipv4.gateway 10.1.1.1 > sudo nmcli connection add type ethernet ifname eth0 ipv4.method manual > ipv4.address 10.1.1.6/30 ipv4.gateway 10.1.1.5 > > ### Corrected nmcli syntax sudo nmcli con mod eth0 ipv4.method manual ipv4.address 10.1.1.2/30 ipv4.gateway 10.1.1.1 sudo nmcli con mod eth1 ipv4.method manual ipv4.address 10.1.1.6/30 ipv4.gateway 10.1.1.5 > > > >> ### Install and Configure frr Free Range Routing >> sudo apt install frr >> >> sudo vim /etc/frr/daemons >> change no to yes for OSPF >> >> sudo /usr/bin/vtysh >> >> conf t >> router ospf >> network 10.0.0.1/32 area 0 >> network 10.1.1.0/30 area 0 >> network 10.1.1.4/30 area 0 >> >> # NOTE: frr configuration is stored in. sudo vim /etc/frr/frr.conf >> >> >> ### Enable IP Forwarding >> sudo sysctl -w net.ipv4.ip_forward=1 >> >> ### sysctl.d config file >> sudo touch /etc/sysctl.d/ipforward >> sudo vim /etc/sysctl.d/ipforward >> net.ipv4.ip_forward = 1 >> >> ### Firewalld Configuration - Open OSPF >> sudo firewall-cmd --add-protocol=ospf --permanent --zone=internal >> sudo firewall-cmd --add-protocol=89 --permanent --zone=internal >> >> ### DNS Configuration >> ; >> ; BIND data file for local loopback interface >> ; >> $TTL 604800 >> @ IN SOA ns1.home.arpa. root.home.arpa. ( >> 2 ; Serial >> 604800 ; Refresh >> 86400 ; Retry >> 2419200 ; Expire >> 604800 ) ; Negative Cache TTL >> ; >> @ IN NS ns1.home.arpa. >> @ IN A 127.0.0.1 >> @ IN AAAA ::1 >> >> ns1 IN A 127.0.0.1 >> ns1 IN AAAA ::1 >> server-1 IN A 10.0.0.1 >> >> >> -- >> ⢀⣴⠾⠻⢶⣦⠀ >> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system >> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ >> ⠈⠳⣄⠀⠀ >> > > > -- > ⢀⣴⠾⠻⢶⣦⠀ > ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system > ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ > ⠈⠳⣄⠀⠀ > -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄⠀⠀
[toc] | [prev] | [next] | [standalone]
| From | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| Date | 2024-12-01 03:10 +0100 |
| Message-ID | <JOHzj-cTgu-1@gated-at.bofh.it> |
| In reply to | #275076 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, Nov 30, 2024 at 8:09 PM Timothy M Butterworth <
timothy.m.butterworth@gmail.com> wrote:
>
>
> On Sat, Nov 30, 2024 at 7:35 PM Timothy M Butterworth <
> timothy.m.butterworth@gmail.com> wrote:
>
>>
>>
>> On Sat, Nov 30, 2024 at 6:46 PM Timothy M Butterworth <
>> timothy.m.butterworth@gmail.com> wrote:
>>
>>> All,
>>>
>>> I have been working out how to have my server setup with OSPF routing. I
>>> have two network interfaces each configured with a /30 and one dummy
>>> loopback configured with a /32. The goal is to have the /32 address
>>> advertised in DNS so traffic can use per-session load balancing across both
>>> /30's.
>>>
>>> Can anyone think of anything I might have missed?
>>>
>>> ### Create and configure the dummy interface
>>>
>>> sudo touch /etc/network/interfaces.d/ospf.cfg
>>> sudo vim /etc/network/interfaces.d/ospf.cfg
>>>
>>> auto ospf
>>> iface ospf inet static
>>> address 10.0.0.1/32
>>> pre-up ip link add ospf type dummy
>>>
>>>
>>> ### Configure Static IP addresses
>>> auto eth0
>>> iface eth0 inet static
>>> address 10.1.1.2/30
>>>
>>> auto eth1
>>> iface eth1 inet static
>>> address 10.1.1.6/30
>>>
>>>
>>> ### Add Default Gateway routes
>>> route add -net default gw 10.1.1.1 metric 1024 dev eth0
>>> route add -net default gw 10.1.1.5 metric 1024 dev eth1
>>>
>>> # NOTE: I am not sure if the above commands will be persistent.
>>>
>>>
>> Added nmcli commands
>> ### Create and configure the dummy interface using nmcli
>> sudo nmcli conn add type dummy ifname ospf ipv4.method manual
>> ipv4.address 10.0.0.1/32
>> sudo nmcli connection add type ethernet ifname eth0 ipv4.method manual
>> ipv4.address 10.1.1.2/30 ipv4.gateway 10.1.1.1
>> sudo nmcli connection add type ethernet ifname eth0 ipv4.method manual
>> ipv4.address 10.1.1.6/30 ipv4.gateway 10.1.1.5
>>
>> ### Corrected nmcli syntax
>
> sudo nmcli con mod eth0 ipv4.method manual ipv4.address 10.1.1.2/30
> ipv4.gateway 10.1.1.1
> sudo nmcli con mod eth1 ipv4.method manual ipv4.address 10.1.1.6/30
> ipv4.gateway 10.1.1.5
>
>
systemd-networkd configuration
### Configure systemd-networkd
sudo systemctl enable systemd-networkd
sudo systemctl restart systemd-networkd
sudo vim /etc/systemd/network/loopback.network
[Match]
Name=lo
[Network]
Address=127.0.0.1/8
Address=10.0.0.1/32
sudo vim /etc/systemd/network/eth0.network
[Match]
Name=eth0
[Network]
Address=192.168.1.2/30
Gateway=192.168.1.1
#DNS=192.168.1.1
sudo vim /etc/systemd/network/eth1.network
[Match]
Name=eth1
[Network]
Address=192.168.1.6/30
Gateway=192.168.1.5
>
>>
>>
>>> ### Install and Configure frr Free Range Routing
>>> sudo apt install frr
>>>
>>> sudo vim /etc/frr/daemons
>>> change no to yes for OSPF
>>>
>>> sudo /usr/bin/vtysh
>>>
>>> conf t
>>> router ospf
>>> network 10.0.0.1/32 area 0
>>> network 10.1.1.0/30 area 0
>>> network 10.1.1.4/30 area 0
>>>
>>> # NOTE: frr configuration is stored in. sudo vim /etc/frr/frr.conf
>>>
>>>
>>> ### Enable IP Forwarding
>>> sudo sysctl -w net.ipv4.ip_forward=1
>>>
>>> ### sysctl.d config file
>>> sudo touch /etc/sysctl.d/ipforward
>>> sudo vim /etc/sysctl.d/ipforward
>>> net.ipv4.ip_forward = 1
>>>
>>> ### Firewalld Configuration - Open OSPF
>>> sudo firewall-cmd --add-protocol=ospf --permanent --zone=internal
>>> sudo firewall-cmd --add-protocol=89 --permanent --zone=internal
>>>
>>> ### DNS Configuration
>>> ;
>>> ; BIND data file for local loopback interface
>>> ;
>>> $TTL 604800
>>> @ IN SOA ns1.home.arpa. root.home.arpa. (
>>> 2 ; Serial
>>> 604800 ; Refresh
>>> 86400 ; Retry
>>> 2419200 ; Expire
>>> 604800 ) ; Negative Cache TTL
>>> ;
>>> @ IN NS ns1.home.arpa.
>>> @ IN A 127.0.0.1
>>> @ IN AAAA ::1
>>>
>>> ns1 IN A 127.0.0.1
>>> ns1 IN AAAA ::1
>>> server-1 IN A 10.0.0.1
>>>
>>>
>>> --
>>> ⢀⣴⠾⠻⢶⣦⠀
>>> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
>>> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
>>> ⠈⠳⣄⠀⠀
>>>
>>
>>
>> --
>> ⢀⣴⠾⠻⢶⣦⠀
>> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
>> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
>> ⠈⠳⣄⠀⠀
>>
>
>
> --
> ⢀⣴⠾⠻⢶⣦⠀
> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
> ⠈⠳⣄⠀⠀
>
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web