Talk:Network Environment
From BCCD 3.0
(Difference between revisions)
(→Stage configuration) |
m (→Stage configuration) |
||
Line 28: | Line 28: | ||
* Head node | * Head node | ||
** <code>/etc/systemd/network/10-dhcp-eth0.network</code> | ** <code>/etc/systemd/network/10-dhcp-eth0.network</code> | ||
- | < | + | <pre> |
[Match] | [Match] | ||
Name=eth0 | Name=eth0 | ||
Line 34: | Line 34: | ||
[Network] | [Network] | ||
DHCP=yes | DHCP=yes | ||
- | </ | + | </pre> |
** <code>/etc/systemd/network/20-static-eth1.network</code> | ** <code>/etc/systemd/network/20-static-eth1.network</code> | ||
<pre> | <pre> |
Revision as of 02:12, 14 May 2019
Contents |
Stages
Stage descriptions
BCCD goes through the following network configuration stages:
- Live mode
- Initial boot:
- Try to obtain an IP address from a BCCD DHCP server
- If no BCCD DHCP servers are available, obtain an IP address from any DHCP server
- Head node: Upon user request, start DHCP server that will answer requests only from other BCCD systems
- Initial boot:
- Liberated mode
- Initial boot:
- Try to obtain an IP address from a BCCD DHCP server
- If no BCCD DHCP servers are available, obtain an IP address from any DHCP server
- Diskless boot: Upon user request, start DHCP server that will answer requests from diskless BCCD systems on only a given interface
- Initial boot:
Open questions:
- Should we continue using
bccd-identifier
or switch to using the standardvendor-class-identifier
that can be provided viasystemd.network
? - Can
bccd-reset-network
be rewritten to producesystemd.network
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?
Stage configuration
Current testing files:
- Head node
-
/etc/systemd/network/10-dhcp-eth0.network
-
[Match] Name=eth0 [Network] DHCP=yes
-
/etc/systemd/network/20-static-eth1.network
-
[Match] Name=eth1 [Network] Address=192.168.3.1/24 DHCP=no
systemd notes
systemd commands
- Restart networking
-
systemctl restart systemd-networkd
- Networking status
-
networkctl
systemd tricks
- Move
/etc/network/interfaces
out of the way to ensure that regular network setup doesn't occur - Interface files need to have a numeric prefix and a
.network
suffix (i.e./etc/systemd/network/10-static-eth0.network
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