Talk:Network Environment

From BCCD 3.0

(Difference between revisions)
Jump to: navigation, search
Line 19: Line 19:
# Can <b><code>bccd-reset-network</code></b> be rewritten to produce <code>systemd.network</code> configuration files via templates for each stage?
# Can <b><code>bccd-reset-network</code></b> be rewritten to produce <code>systemd.network</code> configuration files via templates for each stage?
# How do we detect that a BCCD DHCP server has ''not'' responded to a client, and obtain an address from any DHCP server?
# How do we detect that a BCCD DHCP server has ''not'' responded to a client, and obtain an address from any DHCP server?
 +
 +
= systemd notes =
 +
 +
== systemd commands ==
 +
 +
; '''Restart networking''' : <code><b>systemctl</b> restart systemd-networkd</code>
 +
; '''Networking status''' : <code><b>networkctl</b></code>
 +
 +
== systemd tricks ==
 +
 +
* Move <code>/etc/network/interfaces</code> out of the way to ensure that regular network setup doesn't occur
 +
* Interface files need to have a numeric prefix and a <code>.network</code> suffix (i.e. <code>/etc/systemd/network/<b>10</b>-static-eth0<b>.network</b></code>
= Troubleshooting =
= Troubleshooting =

Revision as of 01:52, 14 May 2019

Contents

Stage descriptions

BCCD goes through the following network configuration stages:

  1. Live mode
    1. Initial boot:
      1. Try to obtain an IP address from a BCCD DHCP server
      2. If no BCCD DHCP servers are available, obtain an IP address from any DHCP server
    2. Head node: Upon user request, start DHCP server that will answer requests only from other BCCD systems
  2. Liberated mode
    1. Initial boot:
      1. Try to obtain an IP address from a BCCD DHCP server
      2. If no BCCD DHCP servers are available, obtain an IP address from any DHCP server
    2. Diskless boot: Upon user request, start DHCP server that will answer requests from diskless BCCD systems on only a given interface

Open questions:

  1. Should we continue using bccd-identifier or switch to using the standard vendor-class-identifier that can be provided via systemd.network?
  2. Can bccd-reset-network be rewritten to produce systemd.network configuration files via templates for each stage?
  3. How do we detect that a BCCD DHCP server has not responded to a client, and obtain an address from any DHCP server?

systemd notes

systemd commands

Restart networking 
systemctl restart systemd-networkd
Networking status 
networkctl

systemd tricks

Troubleshooting

RTNETLINK answers: File exists

If you get an error like this:

RTNETLINK answers: File exists
Failed to bring up eth1.

Try flushing that interface and replumbing it:

$ sudo ip addr flush dev eth1
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox