2009-04-17 05:17:23 +05:30
|
|
|
# ifconfig under Linux is not that powerful and doesn't easily handle
|
|
|
|
# multiple addresses
|
|
|
|
# On the other hand, ip (iproute2) is quite powerful and is also supported
|
2009-04-25 19:14:41 +05:30
|
|
|
#ip_eth0="192.168.0.10/24; 192.168.10.10/24"
|
2009-04-17 05:17:23 +05:30
|
|
|
|
|
|
|
# Create a bonded interface
|
2009-04-25 19:14:41 +05:30
|
|
|
#interfaces="bond0"
|
|
|
|
#ifup_bond0="modprobe bonding; ifconfig \$int up; ifenslave \$int bge0"
|
|
|
|
#ifconfig_bond0="192.168.0.10 netmask 255.255.255.0"
|
|
|
|
#ifdown_bond0="rmmod bonding"
|
2009-04-20 03:05:26 +05:30
|
|
|
|
2009-04-27 00:23:24 +05:30
|
|
|
# Create tap interface and a bridge interface.
|
|
|
|
# We add the tap to the bridge.
|
|
|
|
# An external program, like dhcpcd, will configure the IP on the bridge
|
|
|
|
#interfaces="tun0 br0"
|
|
|
|
#ifup_tun0="tunctl -t \$int"
|
|
|
|
#ifdown_tun0="tunctl -d \$int"
|
2009-04-25 19:14:41 +05:30
|
|
|
#ifup_br0="brctl addbr \$int; brctl add \$int eth1; brtctl add \$int eth2"
|
|
|
|
#ifdown_br0="ifconfig \$int down; btctl delbr \$int"
|
2009-04-20 03:05:26 +05:30
|
|
|
|
|
|
|
# Create VLAN
|
2009-04-25 19:14:41 +05:30
|
|
|
#interfaces="eth0_2 eth0_3 eth0_4"
|
|
|
|
#ifup_eth0="vconfig add \$int 2; vconfig add \$int 3; vconfig add \$int 4"
|
|
|
|
#ifconfig_eth0_2="192.168.2.10 netmask 255.255.255.0"
|
|
|
|
#ifconfig_eth0_3="192.168.3.10 netmask 255.255.255.0"
|
|
|
|
#ifconfig_eth0_4="192.168.4.10 netmask 255.255.255.0"
|
|
|
|
#ifdown_eth0="vconfig rem \$int.2; vconfig rem \$int.3; vconfig rem \$int.4"
|
2009-04-20 03:15:09 +05:30
|
|
|
|
|
|
|
# Normally you would use wpa_supplicant to configure wireless, but you can
|
|
|
|
# use iwconfig also
|
2009-04-25 19:14:41 +05:30
|
|
|
#ifup_wlan0="iwconfig \$int key s:secretkey enc open essid foobar"
|