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

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Huzeyfe Onal (huzeyfe@enderunix.org)
Date: Thu 21 Dec 2006 - 14:06:52 GMT


Merhabalar,

yonlendirme tablonuzda 172.25.29.1 hostuna ait herhangi bir kayit yok. Boyle
olunca da Linux makine bu hosta gitmeye calisan paketleri varsayilan ag
gecidine (192.168.100.2 <http://192.168.100.2/> ) ne gondermeye calisiyor.

route add -net 172.25.29.0 <http://172.17.113.0/> netmask 255.255.255.0 gw
172.17.113.2
gibi bir komut girerseniz 172.25.29. lu aga giden paketleri dogru
arabirimden gondermis olursunuz..

On 12/21/06, yaşar tunçez <ytuncez@gmail.com> wrote:
>
> Merhaba,
>
> Bilgisayarımda iki tane ethernet kartı var. Birisine 172.17.113.233ve diğerine
> 192.168.100.103 şeklinde ip adreslerini atadım. 192'li ethernetten adsl
> modem üzerinden internete (internet modemin ip: 192.168.100.2) ve 172'li
> ethernetten yine modem üzerinden internete kapalı olan intranete (intranet
> modemin ip si: 172.17.113.2) çıkıyoruz. Makinadan her iki ağdaki
> bilgisayarlara ping atabiliyorum. Ancak intranetteki örneğin 172.25.29.1nolu ip ye sahip uzak makinaya ping atamıyorum. ping komutunu verdiğimde
> 192.168.100.103 den ping lemeye çalışıyor. Halbuki ;
> route add -net 172.17.113.0 netmask 255.255.255.0 gw 172.17.113.2
> route add -net 192.168.100.0 netmask 255.255.255.0 gw 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 Bcast: 192.168.100.255 Mask:
> 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 Bcast:172.17.113.255 Mask:
> 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 Mask: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 0.0.0.0 255.255.255.0 U 0 0 0
> eth0
> 172.17.113.0 172.17.113.2 255.255.255.0 UG 0 0 0
> eth1
> 172.17.113.0 0.0.0.0 255.255.255.0 U 0 0 0
> eth1
> 127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0
> lo
> 0.0.0.0 192.168.100.2 0.0.0.0 UG 0 0 0
> eth0
>
> En sondaki satırı sildiğimde (route del -net 0.0.0.0 ) hiçbir yere ping
> atamıyorum. Unknown host ... mesajı çıkıyor.
>
> Teşekkürler.
> _______________________________________________
> Linux-ag mailing list
> Linux-ag@liste.linux.org.tr
> http://liste.linux.org.tr/mailman/listinfo/linux-ag
>
>
>

-- 
Huzeyfe ÖNAL
EnderUnix Core Team Member
huzeyfe@enderunix.org
http://www.enderunix.org/huzeyfe
+90 555 255 4593

Ag guvenligi listesine uye oldunuz mu? http://www.huzeyfe.net/netsec.html ---

_______________________________________________
Linux-ag mailing list
Linux-ag@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-ag


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.