This commit is contained in:
ace
2023-09-24 03:48:12 +03:00
parent 8ba560a810
commit 8aa06f4399
8 changed files with 136 additions and 39 deletions

View File

@ -1,9 +1,18 @@
Configure interfaces and pbr for RHEL and its derivatives
Configure interfaces and pbr for RedHat and Debian based distros
Supported OS with Network Manager:
- Rocky Linux 8/9
- AlmaLinux 8/9
- CentOS 7
- Debian 11/12
- Ubuntu 20.04/22.04
Limited support for network-scripts available for CentOS 7.
Supported iterface types for network-scripts:
- ethernet (default)
- loopback
For RHEL8 use:
Example with Network Manager:
network:
network_manager:
@ -20,8 +29,20 @@ For RHEL8 use:
- "18.12.3.1/32"
routing_rules4:
- priority 5 from 18.12.3.1 table 200
For RHEL7 use:
Example for simple policy base routing with Network Manager:
network:
network_manager:
iface:
- conn_name: 'System eth1'
routes4:
- 0.0.0.0/0 192.168.78.1 table=400
routing_rules4:
- priority 10 from {{ ansible_eth1.ipv4.address }} table 400
- priority 10 from 192.168.78.251 table 400
Example with network-scripts:
network:
network_scripts: