Re: [Linux-ag] iki ethernet kullanarak iki ağa bağlanmak

Remzi AKYÜZ linuxliste at gmail.com
21 Ara 2006 Per 23:22:57 EET


172.25.29.1 nolu ipye ping atmaniz icin 172.25.29.0 networkune giden 
yolu  tanımlamış olmanız gerekli
görülen o ki siz ip adresi ve network tanımlarken ufak bir aksaklık oluşmuş.
Yaptığınız şekilde sadece 172.17.113.0/24 ve 192.168.100/24 networkune 
erişebilirsiniz.
Network ve netmask larınızı verirseniz sizlere yardımcı olmaya çalışırız.

Başarılar


yaşar tunçez wrote:
> Merhaba,
>
>      Bilgisayarımda iki tane ethernet kartı var. Birisine 
> 172.17.113.233 <http://172.17.113.233/> ve diğerine 192.168.100.103 
> <http://192.168.100.103/> şeklinde ip adreslerini atadım. 192'li 
> ethernetten adsl modem üzerinden internete (internet modemin ip: 
> 192.168.100.2 <http://192.168.100.2/>) ve 172'li ethernetten yine 
> modem üzerinden internete kapalı olan intranete (intranet modemin ip 
> si: 172.17.113.2 <http://172.17.113.2/>) çıkıyoruz. Makinadan her iki 
> ağdaki bilgisayarlara ping atabiliyorum. Ancak intranetteki örneğin 
> 172.25.29.1 <http://172.25.29.1/> nolu ip ye sahip uzak makinaya ping 
> atamıyorum. ping komutunu verdiğimde 192.168.100.103 
> <http://192.168.100.103/> den ping lemeye çalışıyor. Halbuki ;
> route add -net 172.17.113.0 <http://172.17.113.0/> netmask 
> 255.255.255.0 <http://255.255.255.0/> gw 172.17.113.2 
> <http://172.17.113.2/>
> route add -net 192.168.100.0 <http://192.168.100.0/> netmask 
> 255.255.255.0 <http://255.255.255.0/> gw 192.168.100.2 
> <http://192.168.100.2/>
>
> komutlarını çalıştırarak ağ geçitlerini tanımlamıştım. Yardımınızı 
> bekliyorum.
>
>
> -- ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:16:17:9B:B7:98
>           inet addr:192.168.100.103 <http://192.168.100.103/>  Bcast: 
> 192.168.100.255 <http://192.168.100.255/>  Mask:255.255.255.0 
> <http://255.255.255.0/>
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:336 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:122 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:49524 (48.3 Kb)  TX bytes:16449 ( 16.0 Kb)
>           Interrupt:225
>
> eth1      Link encap:Ethernet  HWaddr 00:08:A1:2D:AE:EF
>           inet addr: 172.17.113.233 <http://172.17.113.233/>  
> Bcast:172.17.113.255 <http://172.17.113.255/>  Mask:255.255.255.0 
> <http://255.255.255.0/>
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:182 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:133 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:16395 (16.0 Kb)  TX bytes:10193 (9.9 Kb)
>           Interrupt:233 Base address:0xbc00
>
> lo        Link encap:Local Loopback
>           inet addr: 127.0.0.1 <http://127.0.0.1/>  Mask:255.0.0.0 
> <http://255.0.0.0/>
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:45 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:8206 (8.0 Kb)  TX bytes:8206 (8.0 Kb)
>
>
> route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    
> Use Iface
> 192.168.100.0 <http://192.168.100.0/>   0.0.0.0 
> <http://0.0.0.0/>         255.255.255.0 <http://255.255.255.0/>   
> U     0      0        0 eth0
> 172.17.113.0 <http://172.17.113.0/>    172.17.113.2 
> <http://172.17.113.2/>    255.255.255.0 <http://255.255.255.0/>   
> UG    0      0        0 eth1
> 172.17.113.0 <http://172.17.113.0/>    0.0.0.0 
> <http://0.0.0.0/>         255.255.255.0 <http://255.255.255.0/>   
> U     0      0        0 eth1
> 127.0.0.0 <http://127.0.0.0/>       127.0.0.1 
> <http://127.0.0.1/>       255.0.0.0 <http://255.0.0.0/>       UG    
> 0      0        0 lo
> 0.0.0.0 <http://0.0.0.0/>         192.168.100.2 
> <http://192.168.100.2/>   0.0.0.0 <http://0.0.0.0/>         UG    
> 0      0        0 eth0
>
> En sondaki satırı sildiğimde (route del -net 0.0.0.0 <http://0.0.0.0/> 
> ) hiçbir yere ping atamıyorum. Unknown host ... mesajı çıkıyor.
>
> Teşekkürler.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Linux-ag mailing list
> Linux-ag at liste.linux.org.tr
> http://liste.linux.org.tr/mailman/listinfo/linux-ag
>   



Linux-ag mesaj listesiyle ilgili daha fazla bilgi