Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #245007

interface/network scripting - how to?

From Kamil Jońca <kjonca@o2.pl>
Newsgroups linux.debian.user
Subject interface/network scripting - how to?
Date 2022-02-04 19:40 +0100
Message-ID <DNbF0-2Lk-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Current situation:
debian laptop with interfaces defined in /etc/network/interfaces
+ resolvconf package and bunch of scripts wchich configures network
(routes and name resolving) according to interfaces/vpn up down.
For example
1.  I am connected to  home1 network (connected by wifi, no default
    routing ), this network sets routing to some subnets with dhcp option
    121 (and dhclient scripts handles this)
2. I am connected via etch to router with default gateway
3. I am connected to work1 network via openvpn tunnel.
4. I am connected to work2 network via ipsec gateway.

I want to (and with my current config this is done)
that:
1. proper routes are established (especially these with option 121)
2. name resolving is properly configured:
  ie. home1.tld DNS queries are passed to home1 network
      work1.tld DNS queries are passed to work1 network (via openvpn tunnel)
      work2.tld DNS queries are passed to work2 network (via ipsec tunnel)
I am quite happy with my current config but sometimes I can read that
/etc/network/interfaces is "deprecated" in favor of systemd-networkd or
netplan.
So I have two questions:
1. Should I prepare migration?
2. How these things can be achieved with systemd-networkd? I read the
manuals, but I was not able to find working examples and I am not sure
where can I start.
      
KJ

-- 
http://wolnelektury.pl/wesprzyj/teraz/

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

interface/network scripting - how to? Kamil Jońca <kjonca@o2.pl> - 2022-02-04 19:40 +0100
  Re: interface/network scripting - how to? john doe <johndoe65534@mail.com> - 2022-02-05 07:30 +0100
  Re: interface/network scripting - how to? Anssi Saari <as@sci.fi> - 2022-02-05 11:50 +0100
  Re: interface/network scripting - how to? David Wright <deblis@lionunicorn.co.uk> - 2022-02-07 03:10 +0100

csiph-web