[LUGOS] Mrežna kartica

Stane Erzar Stane.Erzar at iskrasistemi.si
Tue Sep 28 12:41:35 CEST 2004


Stane Erzar wrote:

> Tadej Poberaj wrote:
>
>> Torej:
>>
>> [root at tower root]# ifconfig
>> eth0      Link encap:Ethernet  HWaddr 00:50:BF:7A:C9:BA
>>          inet6 addr: fe80::250:bfff:fe7a:c9ba/64 Scope:Link
>>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>          RX packets:95067 errors:0 dropped:0 overruns:0 frame:0
>>          TX packets:71021 errors:0 dropped:0 overruns:0 carrier:0
>>          collisions:13 txqueuelen:1000
>>          RX bytes:100458881 (95.8 Mb)  TX bytes:10589565 (10.0 Mb)
>>          Interrupt:5 Base address:0xef40
>>
>> eth1      Link encap:Ethernet  HWaddr 00:50:BF:7A:B1:AD
>>          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
>>          inet6 addr: fe80::250:bfff:fe7a:b1ad/64 Scope:Link
>>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>          RX packets:103653 errors:0 dropped:0 overruns:0 frame:0
>>          TX packets:133345 errors:3 dropped:0 overruns:0 carrier:6
>>          collisions:1102 txqueuelen:1000
>>          RX bytes:12390950 (11.8 Mb)  TX bytes:137526488 (131.1 Mb)
>>          Interrupt:10 Base address:0xeec0
>>
>> eth2      Link encap:Ethernet  HWaddr 00:0A:CD:09:C3:94
>>          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
>>          inet6 addr: fe80::20a:cdff:fe09:c394/64 Scope:Link
>>          UP BROADCAST MULTICAST  MTU:1500  Metric:1
>>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
>>          collisions:0 txqueuelen:1000
>>          RX bytes:0 (0.0 b)  TX bytes:378 (378.0 b)
>>          Interrupt:9 Base address:0xe800
>>
>> 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:8333 errors:0 dropped:0 overruns:0 frame:0
>>          TX packets:8333 errors:0 dropped:0 overruns:0 carrier:0
>>          collisions:0 txqueuelen:0
>>          RX bytes:9501762 (9.0 Mb)  TX bytes:9501762 (9.0 Mb)
>>
>> ppp0      Link encap:Point-to-Point Protocol
>>          inet addr:XXX.XXX.XXX.XXX  P-t-P:213.250.19.90
>> Mask:255.255.255.255
>>          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
>>          RX packets:91329 errors:0 dropped:0 overruns:0 frame:0
>>          TX packets:67359 errors:0 dropped:0 overruns:0 carrier:0
>>          collisions:0 txqueuelen:3
>>          RX bytes:98221804 (93.6 Mb)  TX bytes:8887302 (8.4 Mb)
>> --------------------------------------------------
>> [root at tower root]# route
>> Kernel IP routing table
>> Destination     Gateway         Genmask         Flags Metric Ref    Use
>> Iface
>> BSN-access.dsl. *               255.255.255.255 UH    0      0        
>> 0 ppp0
>> 192.168.0.0     *               255.255.255.0   U     0      0        
>> 0 eth1
>> 192.168.0.0     *               255.255.255.0   U     0      0        
>> 0 eth2
>> 169.254.0.0     *               255.255.0.0     U     0      0        
>> 0 eth1
>> default         BSN-access.dsl. 0.0.0.0         UG    0      0        
>> 0 ppp0
>> --------------------------------------------------
>>
>> Oba računalnika 192.168.0.2 ter 192.168.0.3 sta povezana na server preko
>> crossover kabla, prvi na eth1, drugi na eth2.
>> Težava je ko dam ping 192.168.0.3 mi ne odziva oz mi izpiše:
>> [root at tower root]# ping 192.168.0.3
>> PING 192.168.0.3 (192.168.0.3) 56(84) bytes of data.
>>
>>> From 192.168.0.1 icmp_seq=0 Destination Host Unreachable
>>> From 192.168.0.1 icmp_seq=1 Destination Host Unreachable
>>> From 192.168.0.1 icmp_seq=2 Destination Host Unreachable
>>> From 192.168.0.1 icmp_seq=3 Destination Host Unreachable
>>> From 192.168.0.1 icmp_seq=4 Destination Host Unreachable
>>> From 192.168.0.1 icmp_seq=5 Destination Host Unreachable
>>
>>
>> Dioda utripa samo na eth1
>> Oba druga računalnika sta 100% prav skonfigurirana.
>> --------------------------------------------------
>>
>> Če ve kdo kako se to nastavi verjetno v route mu bom zelo hvaležen!
>>  
>>
> Kako pa naj ubogi PC ve kam naj kaj usmerja, če imaš obe kartici 
> nastavljeni na isti IP in isto mrežo (eth1 in eth2). Poskusi 
> spremeninti netmasko na obeh eth1 in eth2 na 24 bitov in prestavi IP 
> eth2 recimo na 192.168.0.129. seveda moraš tudi IP računalnika na eth2 
> prestaviti  nad 129, default gw pa na 129
>
> LP
> Stane
>
Pardon netmasko na 28 bitov.


-- 
mag. Stanislav Erzar, univ.dipl.inž.el.

Iskra Sistemi d.d.
Stegne 21
1000 Ljubljana

Poslovno področje Avtomatizacija železniškega prometa

vodja Sektorja za razvoj programske opreme

tel.    +386 1 513 1096
GSM     +386 41 371 527

el. pošta : stane.erzar at iskrasistemi.si 




More information about the lugos-list mailing list