This repository has been archived on 2019-11-14. You can view files and clone it, but cannot push or open issues or pull requests.
rip-vm2/VM2/config.sls

51 lines
874 B
Plaintext
Raw Permalink Normal View History

2019-10-25 10:44:49 +02:00
# Configuration eth1 et eth2
# RAPPEL: eth0 est à vagrant, ne pas y toucher
## Désactivation de network-manager
NetworkManager:
service:
- dead
- enable: False
## Suppression de la passerelle par défaut
ip route del default:
cmd:
- run
## Configuration de VM2
eth1:
network.managed:
- enabled: True
- type: eth
- proto: none
- ipaddr: 172.16.2.132
- netmask: 28
eth2:
network.managed:
- enabled: True
- type: eth
- proto: none
- ipaddr: 172.16.2.162
- netmask: 28
## But enable ipv4 forwarding
net.ipv4.ip_forward:
sysctl:
- present
- value: 1
routes:
network.routes:
- name: eth1
- routes:
- name: LAN3
ipaddr: 172.16.2.144/28
gateway: 172.16.2.131
- name: eth2
- routes:
- name: LAN4
ipaddr: 172.16.2.176/28
gateway: 172.16.2.163