Switch to a lagg interface.

This is to avoid depending on the ethernet cable being plugged into a specific port.
This commit is contained in:
Tom Alexander
2023-05-28 14:22:49 -04:00
parent 081c6946f3
commit 37a14759f7
5 changed files with 20 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
cloned_interfaces="lagg0"
ifconfig_igb0="up"
ifconfig_igb1="up"
ifconfig_lagg0="up laggproto failover laggport igb0 laggport igb1"
ifconfig_lagg0_alias0="inet 74.80.180.138 netmask 255.255.255.248"

View File

@@ -0,0 +1 @@
defaultrouter="74.80.180.137"

View File

@@ -11,6 +11,18 @@
- src: "{{ network_rc }}"
dest: /etc/rc.conf.d/network
- name: Install configuration
copy:
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0644
owner: root
group: wheel
when: routing_rc is defined
loop:
- src: "{{ routing_rc }}"
dest: /etc/rc.conf.d/routing
- name: Install configuration
copy:
src: "files/{{ item.src }}"