• Re: Debian Server Routing OSPF on two links and one loopback address

    From Andy Smith@21:1/5 to Timothy M Butterworth on Sun Dec 1 01:10:01 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Smith@21:1/5 to Timothy M Butterworth on Sun Dec 1 01:20:01 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)