[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how can I add a static IPv4 route?

From: Giovanni Biscuolo
Subject: Re: how can I add a static IPv4 route?
Date: Thu, 13 Feb 2020 09:22:46 +0100

Hi Julien

thanks for your support!

Julien Lepiller <address@hidden> writes:

> Le 12 février 2020 13:08:46 GMT-05:00, Giovanni Biscuolo <address@hidden> a 
> écrit :
>>I have a very simple networking configuration:
>>--8<---------------cut here---------------start------------->8---
>>(service dhcp-client-service-type)
>>--8<---------------cut here---------------end--------------->8---
>>Please how can I add a static route? (I know there is wip-netlink, but
>>AFAIU it's still not in master)


> However, if you don't need IPv6, I'd like to encourage you to use the
> static-networking-service that's described in the manual:

Thanks for your suggestion but I don't understand how to use it just to
add a static route to the interface set up by dhcp-client-service-type.

I'm trying to have something similar to this debian interfaces config:

--8<---------------cut here---------------start------------->8---
auto eth0
iface eth0 inet dhcp
        ### static routing for eth0 ###
        post-up route add -net netmask gw
        pre-down route del -net netmask gw
--8<---------------cut here---------------end--------------->8---

I'd like to stay whith a dhcp client config, but please provide an
example on how to add a static route to a configuration like this:

--8<---------------cut here---------------start------------->8---
(static-networking-service "eno1" ""
                           #:gateway ""
                           #:name-servers '(""))
--8<---------------cut here---------------end--------------->8---

Thanks! Gio'

Giovanni Biscuolo

Xelera IT Infrastructures

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]