ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Igor Shevchenko <ishevchenko@emdev.ru>
To: Gennadiy Redko <community@altlinux.ru>
Subject: Re[2]: [Comm]routing trouble
Date: Wed, 9 Mar 2005 13:11:20 +0300
Message-ID: <1646760962.20050309131120@emdev.ru> (raw)
In-Reply-To: <4229CEC9.3070603@zaz.zp.ua>

Hello Gennadiy,

Saturday, March 5, 2005, 6:22:49 PM, you wrote:


>> В локальной подсети сервера на ethernet висит виндовая
>>   машина.(сервер 192.168.3.1, машина 192.168.3.20)
>> 
>>   Хочется хотя-бы пингануть машину в сети 192.168.5.0.

> А вывод ifconfig, netstat -nr - для линукс машин и ipconfig, route print
> - для windows  можно увидеть?
Линукс:
   ifconfig:
eth0      Link encap:Ethernet  HWaddr 00:0D:88:42:62:46
          inet addr:192.168.2.200  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:48187 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31649 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:11192977 (10.6 Mb)  TX bytes:2711727 (2.5 Mb)
          Interrupt:5 Base address:0xf000

eth1      Link encap:Ethernet  HWaddr 00:01:02:F1:16:19
          inet addr:192.168.3.1  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17455 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21964 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1742735 (1.6 Mb)  TX bytes:8608995 (8.2 Mb)
          Interrupt:10 Base address:0x3400

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:16541 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16541 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:672065 (656.3 Kb)  TX bytes:672065 (656.3 Kb)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:192.168.5.17  P-t-P:192.168.5.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1496  Metric:1
          RX packets:12754 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13234 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:510932 (498.9 Kb)  TX bytes:536612 (524.0 Kb)

eth0 - интерфейс выходящий в другую сетку, которая соединена с
интернетом.
eth1 - интерфейс в сетку, из которой хочется пингануть машины на
другом конце vpn.

netstat -nr:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.5.1     0.0.0.0         255.255.255.255 UH        0 0          0 ppp0
192.168.5.0     192.168.5.1     255.255.255.0   UG        0 0          0 ppp0
192.168.3.0     192.168.3.1     255.255.255.0   UG        0 0          0 eth1
192.168.3.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
192.168.2.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         192.168.2.1     0.0.0.0         UG        0 0          0 eth0

Винда:
ipconfig:

      Connection-specific DNS Suffix  . : emdev.home.org
      IP Address. . . . . . . . . . . . : 192.168.3.20
      Subnet Mask . . . . . . . . . . . : 255.255.255.0
      Default Gateway . . . . . . . . . : 192.168.3.1
route print:
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.3.1    192.168.3.20       1
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
      192.168.3.0    255.255.255.0     192.168.3.20    192.168.3.20       1
     192.168.3.20  255.255.255.255        127.0.0.1       127.0.0.1       1
    192.168.3.255  255.255.255.255     192.168.3.20    192.168.3.20       1
        224.0.0.0        224.0.0.0     192.168.3.20    192.168.3.20       1
  255.255.255.255  255.255.255.255     192.168.3.20    192.168.3.20       1
Default Gateway:       192.168.3.1
===========================================================================

     На линуксовой машине стоит маскарад:
     iptables --table nat -A POSTROUTING -o eth0 -j MASQUERADE
     Может это создает какие-то проблемы?

-- 
Best regards,
 Igor                            mailto:ishevchenko@emdev.ru



  reply	other threads:[~2005-03-09 10:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-05 14:40 Igor Shevchenko
2005-03-05 14:58 ` Gennadiy Redko
2005-03-05 15:10   ` Re[2]: " Igor Shevchenko
2005-03-05 15:22     ` Gennadiy Redko
2005-03-09 10:11       ` Igor Shevchenko [this message]
2005-03-09 10:44       ` Re[2]: " Igor Shevchenko
2005-03-07  5:25 ` Dmitry Vodennikov
2005-03-08  7:43   ` Re[2]: " I. Shevchenko
2005-03-09 11:02   ` Igor Shevchenko
2005-03-10  7:15     ` Victor P. Vyatkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1646760962.20050309131120@emdev.ru \
    --to=ishevchenko@emdev.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git