[+] udostepnianie internetu trzem komputerom poprzez most
: 31 lipca 2009, 01:42
Witam.
Mam problem z udostępnieniem internetu trzem komputerom. W komputerze posiadam 4 karty sieciowe: pierwsza (eth0) łączy się z internetem (UPC), a pozostałe (eth1, 2, 3) chcę by udostępniały internet pozostałym komputerom.
Posłużyłem się tym poradnikiem: http://forum.purepc.pl/Unix-and-Linux-a ... 3714.html# Zmieniłem eth1 na br0. Most wykonałem tymi komendami:
Według tego poradnika http://forum.ubuntu.pl/showthread.php?t=46783 skonfigurowałem /etc/network/interfaces:
Plik /etc/default/dhcp3-server ustawiłem tak:
Problem polega na tym, że gdy chcę uruchomić dhcpd3 to wyskakuje następujący błąd:
A ponad to gdy stworzę wyżej wymieniony most to po restarcie już go nie ma.
Do tego w ifconfig niestety jest tylko eth0 i lo.
Mam problem z udostępnieniem internetu trzem komputerom. W komputerze posiadam 4 karty sieciowe: pierwsza (eth0) łączy się z internetem (UPC), a pozostałe (eth1, 2, 3) chcę by udostępniały internet pozostałym komputerom.
Posłużyłem się tym poradnikiem: http://forum.purepc.pl/Unix-and-Linux-a ... 3714.html# Zmieniłem eth1 na br0. Most wykonałem tymi komendami:
Kod: Zaznacz cały
apt-get install bridge-utils
brctl addbr br0
brctl addif br0 eth1
brctl addif br0 eth2
brctl addif br0 eth3Kod: Zaznacz cały
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 0.0.0.0
auto eth2
iface eth2 inet static
address 0.0.0.0
auto eth3
iface eth3 inet static
address 0.0.0.0
auto br0
iface br0 inet static
address 192.168.0.1
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1Kod: Zaznacz cały
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts
#
# This is a POSIX shell fragment
#
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="br0"Kod: Zaznacz cały
debian:~# dhcpd3 start
Internet Systems Consortium DHCP Server V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit [url]http://www.isc.org/sw/dhcp/[/url]
Wrote 1 leases to leases file.
No subnet declaration for start (0.0.0.0).
** Ignoring requests on start. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface start is attached. **
Not configured to listen on any interfaces!Do tego w ifconfig niestety jest tylko eth0 i lo.