пятница, 19 августа 2011 г.

auto lo eth0
allow-hotplug eth1

iface lo inet loopback

mapping eth0
script /usr/local/sbin/map-scheme
map HOME eth0-home
map WORK eth0-work

iface eth0-home inet static
address 192.168.1.1
netmask 255.255.255.0
up flush-mail

iface eth0-work inet dhcp

iface eth1 inet dhcp

http://manpages.ubuntu.com/manpages/hardy/man5/interfaces.5.html
https://help.ubuntu.com/10.04/serverguide/C/serverguide.pdf
http://help.ubuntu.ru/wiki/%D0%BD%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0_%D1%81%D0%B5%D1%82%D0%B8_%D0%B2%D1%80%D1%83%D1%87%D0%BD%D1%83%D1%8E

пятница, 12 августа 2011 г.

(\W(\d\.|\d\d\.|1\d\d\.|2[0-4]\d\.|25[0-5]\.){3}(\d|\d\d|1\d\d|2[0-4]\d|25[0-5]))\s*$
Spaces must be trimed

For
# # This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
iface eth0 inet dhcp
allow-hotplug eth0
auto eth0

#Example 4-1. Bridge setup via dhcp


iface br0 inet dhcp
allow-hotplug br0
pre-up ifconfig eth0 down
pre-up brctl addbr br0
pre-up brctl addif br0 eth0
pre-up ifconfig eth0 up
post-down ifconfig eth0 down
auto br0
post-down brctl delif br0 eth0

#In case you have static IP address add following lines to /etc/network/interfaces. Remember to replace tags below with your network information. Also if your network #interface card uses some other interface than eth0 replace it too.

#Example 4-2. Bridge setup statically

auto br0
iface br0 inet static address
netmask
network
broadcast
gateway
pre-up ifconfig eth0 down
pre-up brctl addbr br0
pre-up brctl addif br0 eth0
pre-up ifconfig eth0 up
post-down ifconfig eth0 down
post-down brctl delif br0 eth0

#Eth0 is now included in your bridge configuration. We need to add an another interface there too. This will be your Bluetooth device's interface. It is probably pan0. Add #the following lines to /etc/network/interfaces

#Example 4-3. Bluetooth device setup

auto pan0
iface pan0 inet manual
pre-up brctl addbr br0
pre-up brctl addif br0 $IFACE
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
post-down brctl delif br0 $IFACE

allow-hotplug eth0
iface eth0 inet static
address 192.168.11.100
netmask 255.255.255.0
broadcast 192.168.11.255
gateway 192.168.11.1
dns-domain lan
dns-nameservers 192.168.11.1

среда, 10 августа 2011 г.

http://www.easy-share.com/f/1326081279/Testing