mirror of
https://gitea.0xace.cc/ansible-galaxy/network.git
synced 2025-07-20 06:43:08 +00:00
update
This commit is contained in:
29
README.md
29
README.md
@ -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:
|
||||
|
Reference in New Issue
Block a user