Strona 1 z 1
Łączenie dwóch sieci
: 21 lutego 2010, 11:38
autor: marcinpruciak
Mam 5 komputerów. 2 po wifi 2 po kablu. Po środku stoi serwer, który jest podłączony do kabla i rozsyła wifi. Jaki muszę zrobić na nim routing, żeby te dwie sieci mogły się ze sobą komunikować? Chodzi mi o wymianę plików, shh itp.
: 21 lutego 2010, 11:43
autor: winnetou
Dziękuje...
: 21 lutego 2010, 15:21
autor: marcinpruciak
Mógłbyś trochę jaśniej? Nie za bardzo znam iptables.
: 21 lutego 2010, 16:36
autor: winnetou
Dziękuje...
: 21 lutego 2010, 18:26
autor: marcinpruciak
eth1 jest lanem i wyjściem do internetu. wlan0 to wifi
Kod: Zaznacz cały
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.1
192.168.9.0/24 dev eth1 proto kernel scope link src 192.168.9.101
/etc/ntwork/interfaces
Kod: Zaznacz cały
allow-hotplug eth1
iface eth1 inet static
address 192.168.9.101
netmask 255.255.255.0
broadcast 192.168.9.255
gateway 192.168.9.1
# dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers 89.174.23.23
auto eth1
iface wlan0 inet static
address 192.168.1.1
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
wireless_essid hidden
wireless_key 1234567123
auto wlan0
: 22 lutego 2010, 12:03
autor: Cyphermen
Przedstaw wynik polecenia:
: 22 lutego 2010, 17:12
autor: marcinpruciak
Kod: Zaznacz cały
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
192.168.9.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.9.1 0.0.0.0 UG 0 0 0 eth1
[ Dodano: |25 Lut 2010|, 2010 08:48 ]
Jakieś pomysły?