Skip to content

Commit

Permalink
Merge pull request #63 from sown/tds/interface-changes
Browse files Browse the repository at this point in the history
rename interfaces from eth0 etc to new names
  • Loading branch information
TimStallard authored Feb 11, 2024
2 parents fc5a3b4 + 50c16b4 commit 060ae03
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions roles/gw/files/sysctls.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ net.ipv6.conf.all.accept_ra=0

# CM: 2018-01-12 - Disable Reverse Path Filtering as it breaks our tri-homed setup.
net.ipv4.conf.all.rp_filter=2
net.ipv4.conf.eth1.rp_filter=2
net.ipv4.conf.eth2.rp_filter=2
net.ipv4.conf.dmz.rp_filter=2
net.ipv4.conf.uplink.rp_filter=2

# 2019-01-31/drn: Enable magic for conntrack asymmetric routing
net.netfilter.nf_conntrack_tcp_be_liberal=1
Expand Down
10 changes: 5 additions & 5 deletions roles/gw/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@
dest: "/etc/systemd/network/{{ item }}"
mode: "644"
loop:
- eth0.network
- eth1.network
- eth2.network
- eth3.network
- mgmt.network
- dmz.network
- dmz.netdev
- uplink.network
- sown.network
- oob.network
- oob.netdev
notify:
- Reload networkd
- name: Deploy NRPE IPMI monitoring
Expand Down
2 changes: 1 addition & 1 deletion roles/gw/templates/conntrackd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Sync {
IPv4_address {{gw_uplink_ip_v4}}
IPv4_Destination_Address {{gw_conntrackd_peer}}
Port 3781
Interface eth2
Interface uplink
SndSocketBuffer 1249280
RcvSocketBuffer 1249280
Checksum on
Expand Down
12 changes: 6 additions & 6 deletions roles/gw/templates/keepalived.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include /etc/keepalived/local.conf

vrrp_instance SOWN_v4 {
interface eth3
interface sown
virtual_router_id 50
priority $PRIORITY
advert_int 1
Expand All @@ -15,7 +15,7 @@ vrrp_instance SOWN_v4 {
}

vrrp_instance SOWN_v6 {
interface eth3
interface sown
virtual_router_id 50
priority $PRIORITY
advert_int 1
Expand All @@ -26,11 +26,11 @@ vrrp_instance SOWN_v6 {
virtual_ipaddress {
2001:630:d0:f700::254/64
}
notify_master "/sbin/ip addr change 2001:630:d0:f700::254 dev eth3 preferred_lft 0"
notify_master "/sbin/ip addr change 2001:630:d0:f700::254 dev sown preferred_lft 0"
}

vrrp_instance UoS_Link_v4 {
interface eth2
interface uplink
virtual_router_id 50
priority $PRIORITY
advert_int 1
Expand All @@ -44,7 +44,7 @@ vrrp_instance UoS_Link_v4 {
}

vrrp_instance UoS_Link_v6 {
interface eth2
interface uplink
virtual_router_id 50
priority $PRIORITY
advert_int 1
Expand All @@ -55,5 +55,5 @@ vrrp_instance UoS_Link_v6 {
virtual_ipaddress {
2001:630:d0:505::5032/64
}
notify_master "/sbin/ip addr change 2001:630:d0:505::5032 dev eth2 preferred_lft 0"
notify_master "/sbin/ip addr change 2001:630:d0:505::5032 dev uplink preferred_lft 0"
}
8 changes: 6 additions & 2 deletions roles/gw/templates/networkd/dmz.network
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# OOB DMZ link
[Match]
Name=dmz

[Link]
ActivationPolicy=up
[Network]
ConfigureWithoutCarrier=yes
Address={{gw_dmz_ip}}/24
Gateway=152.78.189.254
VRF=oob
9 changes: 0 additions & 9 deletions roles/gw/templates/networkd/eth1.network

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Match]
Name=eth0
Name=mgmt

[Network]
ConfigureWithoutCarrier=yes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[NetDev]
Name=dmz
Name=oob
Kind=vrf

[VRF]
Expand Down
5 changes: 5 additions & 0 deletions roles/gw/templates/networkd/oob.network
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Match]
Name=oob

[Link]
ActivationPolicy=up
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SOWN LAN
[Match]
Name=eth3
Name=sown

[Network]
ConfigureWithoutCarrier=yes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# uplink to isolutions
[Match]
Name=eth2
Name=uplink

[Network]
ConfigureWithoutCarrier=yes
Expand Down
2 changes: 1 addition & 1 deletion roles/pxe/templates/dnsmasq.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
port=0

#dhcp on sown lan only
interface=eth3
interface=sown
dhcp-range={{pxe_dhcp_range_start}},{{pxe_dhcp_range_end}},1h
dhcp-option=6,10.5.0.254 # dns
dhcp-option=3,10.5.0.254 # def gw
Expand Down

0 comments on commit 060ae03

Please sign in to comment.