File: router.postinst

package info (click to toggle)
simple-cdd 0.6.10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 344 kB
  • sloc: python: 1,911; sh: 111; makefile: 13
file content (22 lines) | stat: -rwxr-xr-x 446 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

cat <<EOF >> /etc/dnsmasq.conf

# configure dnsmasq to serve DHCP
dhcp-range=192.168.99.20,192.168.99.250,1h

EOF

# configure a bridge, with comments of how to add other interfaces
cat << EOF >> /etc/network/interfaces

# Bridge configured for internal network
auto br0
iface br0 inet static
address 192.168.99.1
netmask 255.255.255.0
bridge_ports none
# Configure with internal network interfaces:
# bridge_ports eth1 eth2 eth3

EOF