2009-04-19 14:22:00 +05:30
|
|
|
# Assign static IP addresses and run custom scripts per interface.
|
2009-04-17 05:17:23 +05:30
|
|
|
# Seperate commands with ;
|
2009-04-19 14:22:00 +05:30
|
|
|
# Prefix with ! to run a shell script.
|
2009-04-20 03:05:26 +05:30
|
|
|
# Use \$int to represent the interface
|
2009-04-25 19:14:41 +05:30
|
|
|
#ifconfig_eth0="192.168.0.10 netmask 255.255.255.0"
|
2009-04-17 05:17:23 +05:30
|
|
|
|
|
|
|
# You also have ifup_eth0 and ifdown_eth0 to run other commands when
|
|
|
|
# eth0 is started and stopped.
|
2009-04-27 19:03:37 +05:30
|
|
|
# You should note that we don't stop the network at system shutdown by default.
|
|
|
|
# If you really need this, then set shutdown_network=YES
|
2009-04-20 00:06:06 +05:30
|
|
|
|
|
|
|
# You can assign a default route
|
2009-04-25 19:14:41 +05:30
|
|
|
#defaultroute="192.168.0.1"
|
2009-04-17 05:17:23 +05:30
|
|
|
# Lastly, the interfaces variable pulls in virtual interfaces that cannot
|
2009-04-25 19:14:41 +05:30
|
|
|
# be automatically detected.
|
|
|
|
#interfaces="br0 bond0 vlan0"
|
2009-04-19 14:22:00 +05:30
|
|
|
|
|
|
|
# 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-20 03:05:26 +05:30
|
|
|
# You don't need to escape variables in files, so use $int instead of \$int.
|
2009-04-17 05:17:23 +05:30
|
|
|
|
2009-04-20 03:15:09 +05:30
|
|
|
# If you require DHCP, you should install dhcpcd and it to the boot or
|
|
|
|
# default runlevel.
|
|
|
|
|
2009-10-16 16:34:20 +05:30
|
|
|
# NIS users can set the domain name here
|
|
|
|
#domainname="foobar"
|