2009-04-19 08:52:00 +00:00
|
|
|
# Assign static IP addresses and run custom scripts per interface.
|
2009-04-16 23:47:23 +00:00
|
|
|
# Seperate commands with ;
|
2009-04-19 08:52:00 +00:00
|
|
|
# Prefix with ! to run a shell script.
|
2009-04-19 21:35:26 +00:00
|
|
|
# Use \$int to represent the interface
|
2009-04-25 13:44:41 +00:00
|
|
|
#ifconfig_eth0="192.168.0.10 netmask 255.255.255.0"
|
2009-04-16 23:47:23 +00:00
|
|
|
|
|
|
|
# You also have ifup_eth0 and ifdown_eth0 to run other commands when
|
|
|
|
# eth0 is started and stopped.
|
2009-04-27 13:33:37 +00:00
|
|
|
# You should note that we don't stop the network at system shutdown by default.
|
2013-02-11 09:45:14 -06:00
|
|
|
# If you really need this, then set keep_network=NO
|
2009-04-19 18:36:06 +00:00
|
|
|
|
2009-04-16 23:47:23 +00:00
|
|
|
# Lastly, the interfaces variable pulls in virtual interfaces that cannot
|
2009-04-25 13:44:41 +00:00
|
|
|
# be automatically detected.
|
|
|
|
#interfaces="br0 bond0 vlan0"
|
2009-04-19 08:52:00 +00:00
|
|
|
|
|
|
|
# You can also use files instead of variables here if you like:
|
|
|
|
# /etc/ifconfig.eth0 is equivalent to ifconfig_eth0
|
|
|
|
# /etc/ip.eth0 is equivalent to ifconfig_eth0
|
|
|
|
# /etc/ifup.eth0 is equivalent to ifup_eth0
|
|
|
|
# /etc/ifdown.eth0 is equivalent to ifdown_eth0
|
|
|
|
# Any files found will automatically be put into the interfaces variable.
|
2009-04-19 21:35:26 +00:00
|
|
|
# You don't need to escape variables in files, so use $int instead of \$int.
|
2009-04-16 23:47:23 +00:00
|
|
|
|
2009-04-19 21:45:09 +00:00
|
|
|
# If you require DHCP, you should install dhcpcd and it to the boot or
|
|
|
|
# default runlevel.
|
|
|
|
|
2009-10-16 12:04:20 +01:00
|
|
|
# NIS users can set the domain name here
|
|
|
|
#domainname="foobar"
|