Project

General

Profile

« Previous | Next » 

Revision 7e348153

Added by David Sorber about 4 years ago

Update brutus configs.

View differences:

configs/brutus/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
# This is the network config written by 'subiquity'
network:
version: 2
renderer: networkd
ethernets:
enp4s0:
dhcp4: yes
enp1s0:
dhcp4: true
optional: true
enp1s0d1:
dhcp4: yes
mtu: 9000
dhcp4-overrides:
route-metric: 200
routes:
- to: 192.168.250.0/24
via: 0.0.0.0
metric: 20
dhcp4: true
dhcp4-overrides:
route-metric: 200
enp4s0:
dhcp4: true
dhcp4-overrides:
route-metric: 100
enp5s0:
dhcp4: true
optional: true
version: 2
configs/brutus/network_tweaks_brutus.sh
#!/bin/bash
sleep 2
# Delete the default route for enp1s0d1, we only want to use it for 10G
# traffic. NOTE: netplan/networkd correctly is setting the route.
/sbin/route del -net 192.168.0.0 netmask 255.255.0.0 dev enp1s0d1
# Set 9000 MTU for the 10G interface enp1s0d1
/sbin/ifconfig enp1s0d1 mtu 9000
exit 0
configs/brutus/networking-tweaks.service
[Unit]
Description=Tweak Some Networking Settings
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=/home/dsorber/network_tweaks_brutus.sh
[Install]
WantedBy=multi-user.target
# Setup
#
# Install network_tweaks_brutus.sh script.
# Copy networking-tweaks.service to /lib/systemd/system/
# Start it: sudo systemctl start networking-tweaks.service
# Enable it: sudo systemctl enable networking-tweaks.service

Also available in: Unified diff