Lenne egy adsl kapcsolat es egy etch-et futtato gep harom halokartyaval.
Alapok beallitva, inetet eleri a gep. ipmasq, dnsmasq felpakolva.
szobai gep el is eri a halot de a konyhai mar nem :/
par info:
/etc/network/interfaces
# 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
# pppoe
auto eth0
auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider
# szoba
auto eth1
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0
# konyha
auto eth2
iface eth2 inet static
address 192.168.0.2
netmask 255.255.255.0
Belsohalos gepeken atjaro a csatl. halokartya ipje, dns szinten. Sajat ipjuk 192.168.0.3 - .4
Az elgondolasom rossz vagy [gyanitom] kimaradt vmi?
- 876 megtekintés
Hozzászólások
japp, es /etc/sysctl -ben ipv4 forward bekapcsolva, termeszetesen...
- A hozzászóláshoz be kell jelentkezni
Mivel az eth1 és az eth2 is ugyanabban a subnetben van, ezért a gyanítom routinggal van gond.
Mi alapján tudná eldönteni, hogy a 192.168.0.3-at melyik ethernet device-on keresztül érje el?
Ha kiadsz egy route parancsot, akkor meglátod, hogy melyik címtartományt melyik kártyán keresztül próbálja elérni.
További jó kérdés, hogy a dnsmasq figyel-e mindkét kártyán?
Ha nem akarsz switchet használni, akkor használj két belső subnetet. Pl. 192.168.0.0/255.255.255.0 és 192.168.1.0/255.255.255.0
- A hozzászóláshoz be kell jelentkezni
eth0 Link encap:Ethernet HWaddr 00:30:05:16:E6:D1
inet6 addr: fe80::230:5ff:fe16:e6d1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2813 errors:0 dropped:0 overruns:0 frame:0
TX packets:1669 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3862378 (3.6 MiB) TX bytes:143491 (140.1 KiB)
eth1 Link encap:Ethernet HWaddr 00:11:95:60:04:A2
inet addr:192.168.0.0 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::211:95ff:fe60:4a2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:182 errors:0 dropped:0 overruns:0 frame:0
TX packets:146 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13195 (12.8 KiB) TX bytes:10800 (10.5 KiB)
Interrupt:185
eth2 Link encap:Ethernet HWaddr 00:80:C8:4D:D5:91
inet addr:192.168.1.0 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::280:c8ff:fe4d:d591/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45 errors:1 dropped:0 overruns:0 frame:0
TX packets:24 errors:3 dropped:0 overruns:0 carrier:3
collisions:0 txqueuelen:1000
RX bytes:3276 (3.1 KiB) TX bytes:1112 (1.0 KiB)
Interrupt:193 Base address:0x3800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
ppp0 Link encap:Point-to-Point Protocol
inet addr:91.120.106.187 P-t-P:194.149.1.52 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:2767 errors:0 dropped:0 overruns:0 frame:0
TX packets:1619 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:3798684 (3.6 MiB) TX bytes:105963 (103.4 KiB)
nerv:/home/yumed# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
amazonas.datane * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth2
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
default * 0.0.0.0 U 0 0 0 ppp0
amugy, hallgat elmeletileg[meg probalkoztam kozvetlenul ip-t is pingelni.
de mar a 192.168.0.1 ig sem lat el:)
- A hozzászóláshoz be kell jelentkezni
Igy probald:
# szoba
auto eth1
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0
# konyha
auto eth2
iface eth2 inet static
address 192.168.1.1
netmask 255.255.255.0
A két csatlakozó gépnek pedig a 192.168.0.2 és a 192.168.1.2 címeket add.
- A hozzászóláshoz be kell jelentkezni
got it:)
thx
- A hozzászóláshoz be kell jelentkezni
egyebkent meg vegyel egy switch-et 4000 forintert
nemhiszem hogy sok ertelme van a konyhat kulon halora rakni
- A hozzászóláshoz be kell jelentkezni