3 sitove karty do 1 stroje - jake koupit?
Petr Snajdr
snajdr na firma.seznam.cz
Pondělí Červen 7 20:15:42 CEST 1999
On 7 Jun 1999, Leos Bitto wrote:
> Petr Snajdr (snajdr na firma.seznam.cz) wrote:
> :
> : Preji pekny den,
> : pridruzim se k vasi debate. Nevim zda-li nejsem prepracovany, prijde mi
> : ze jsem neco hrube prehledl nebo jsem prepracovany :-O.
>
> Poslete vypisy prikazu "ifconfig" a "route -n", snad na to prijdem. ;-)
Takze konfigurace, kdy na eth1 je 192.168.2.0
a eth0 je 192.168.0.0:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 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
dummy Link encap:Ethernet HWaddr 00:00:00:00:00:00
unspec addr:[NONE SET] Bcast:[NONE SET] Mask:[NONE SET]
BROADCAST NOARP MTU:1500 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
eth0 Link encap:Ethernet HWaddr 00:20:AF:F2:AC:B1
inet addr:192.168.0.20 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:29 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
Interrupt:10 Base address:0x6000
eth1 Link encap:Ethernet HWaddr 00:00:E8:57:12:89
inet addr:192.168.2.4 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
Interrupt:11 Base address:0x6100
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.2.1 0.0.0.0 UG 1 0 0 eth1
Konfigurace kdy to funguje, ale kdy jsou obe site spojeny pres HUB
(tj. eth1 neni vubec nakonfigurovana a vse jde pres eth0):
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 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
dummy Link encap:Ethernet HWaddr 00:00:00:00:00:00
unspec addr:[NONE SET] Bcast:[NONE SET] Mask:[NONE SET]
BROADCAST NOARP MTU:1500 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
eth0 Link encap:Ethernet HWaddr 00:20:AF:F2:AC:B1
inet addr:192.168.2.4 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16996 errors:0 dropped:0 overruns:0 frame:0
TX packets:17985 errors:0 dropped:0 overruns:0 carrier:0
Collisions:22
Interrupt:10 Base address:0x6000
eth0:1 Link encap:Ethernet HWaddr 00:20:AF:F2:AC:B1
inet addr:192.168.0.20 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 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
Interrupt:10 Base address:0x6000
eth1 Link encap:Ethernet HWaddr 00:00:E8:57:12:89
unspec addr:[NONE SET] Bcast:[NONE SET] Mask:[NONE SET]
BROADCAST MULTICAST MTU:1500 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
Interrupt:11 Base address:0x6100
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.2.1 0.0.0.0 UG 1 0 0 eth0
Sitovky:
3c59x.c:v0.99H 11/17/98 Donald Becker
http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html
eth0: 3Com 3c590 Vortex 10Mbps at 0x6000, 00:20:af:f2:ac:b1, IRQ 10
32K byte-wide RAM 1:1 Rx:Tx split, 10baseT interface.
ne2k-pci.c:v0.99L 2/7/98 D. Becker/P. Gortmaker
http://cesdis.gsfc.nasa.gov/linux/drivers/ne2k-pci.html
ne2k-pci.c: PCI NE2000 clone 'RealTek RTL-8029' at I/O 0x6100, IRQ 11.
eth1: PCI NE2000 found at 0x6100, IRQ 11, 00:00:E8:57:12:89.
On 7 Jun 1999, David Rohleder wrote:
> Dobre, co nefunguje?
> 1. ping do obou lokalnich siti,
z pocitace s linuxem funguje ping vzdy do obou siti.
Pokud je nastaven jako def. gateway doroutuje se to
ve druhem pripade v pohode, v prvnim nikoliv.
> 2. netstat -rn
viz. vyse
> 3. ipchains -L input, output, forward
Chain input (policy ACCEPT):
Chain forward (policy ACCEPT):
Chain output (policy ACCEPT):
pokud jsem zapnul ipchains -A forward -l pak
jsem dostaval:
Packet log: forward - eth1 PROTO=1 192.168.0.21:8 192.168.2.1:0 L=84
S=0x00 I=22232 F=0x0000 T=63
pricemz samotny ping se tvaril, ze se nic nedeje a
tcpdump na 192.168.2.1 neukazoval nic.
> 4. nejake chybove hlasky?
nic. Zadne.
--
S pozdravem
Petr Snajdr
Seznam Ceskeho Internetu: http://www.seznam.cz/
Magazin pro kazdeho: http://www.novinky.cz/
Seznam Dnes: http://dnes.seznam.cz/
Navody, recenze, technika:
http://www.novinky.cz/Index/TechDesk/
Další informace o konferenci Linux