working on router
This commit is contained in:
8
roles/server/files/20-router.yaml.j2
Normal file
8
roles/server/files/20-router.yaml.j2
Normal file
@@ -0,0 +1,8 @@
|
||||
network:
|
||||
version: 2
|
||||
ethernets:
|
||||
"{{ router_if }}":
|
||||
dhcp4: False
|
||||
dhcp6: False
|
||||
addresses:
|
||||
- "192.168.3.254/24"
|
||||
11
roles/server/files/dnsmasq.conf.j2
Normal file
11
roles/server/files/dnsmasq.conf.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
listen-address=::1,127.0.0.1,192.168.3.254
|
||||
interface={{ router_if }}
|
||||
domain=wntrmute.lan
|
||||
expand-hosts
|
||||
server=8.8.8.8
|
||||
server=8.8.4.4
|
||||
|
||||
dhcp-range=192.168.3.1,192.168.3.30,24h
|
||||
dhcp-option=option:router,192.168.3.254
|
||||
dhcp-option=option:dns-server,8.8.8.8
|
||||
dhcp-authoritative
|
||||
4
roles/server/files/hosts
Normal file
4
roles/server/files/hosts
Normal file
@@ -0,0 +1,4 @@
|
||||
127.0.0.1 localhost
|
||||
|
||||
192.168.3.1 cdev
|
||||
192.168.3.254 orion
|
||||
2
roles/server/files/resolv.conf
Normal file
2
roles/server/files/resolv.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
nameserver 8.8.8.8
|
||||
nameserver 8.8.4.4
|
||||
Reference in New Issue
Block a user