ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Исходящие адреса с машины, у которой много алиасов
@ 2004-12-22  7:07 Andrey Brindeew
  2004-12-22  7:55 ` fmfm
  0 siblings, 1 reply; 6+ messages in thread
From: Andrey Brindeew @ 2004-12-22  7:07 UTC (permalink / raw)
  To: sisyphus

[-- Attachment #1: Type: text/plain, Size: 1934 bytes --]

Hi!

Есть машинка, у которой на внешнем физическом интерфейсе (eth0)
висит множество алиасов из различных подсетей.

Какой адрес из имеющихся будет в сетевом пакете при инициации
соединения локальным процессом (например, telnet или ssh-сессия).

Я всегда думал что тот, который прописан главным (ifcfg-eth0). На
деле видим другое:

$ /sbin/ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:30:05:46:09:3F
          inet addr:212.69.XX.YY  Bcast:212.69.XX.__  Mask:255.255.255.0
          IPX/Ethernet 802.3 addr:1B9114E7:00300546093F
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:406873475 errors:0 dropped:0 overruns:0 frame:0
          TX packets:990647109 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2142704759 (2043.4 Mb)  TX bytes:1381345563 (1317.3 Mb)
          Interrupt:18 Memory:fc310000-fc320000

$ /sbin/ifconfig eth0:alias
eth0:alias Link encap:Ethernet  HWaddr 00:30:05:46:09:3F
          inet addr:195.230.CC.DD  Bcast:195.230.CC.__  Mask:255.255.255.224
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:18 Memory:fc310000-fc320000


$ telnet mail.dmz.off 25
Trying 195.230.AA.BB...
Connected to mail.dmz.off.
Escape character is '^]'.
220 new-channel.dmz.off ESMTP Sendmail 8.12.10/8.12.10; Wed, 22 Dec 2004 10:00:42 +0300 (MSK)
HELO test
250 new-channel.dmz.off Hello host.ru [195.230.CC.DD], pleased to meet you
QUIT
221 2.0.0 new-channel.dmz.off closing connection
Connection closed by foreign host.

Как сделать так, чтобы исходящий адрес для локально сгенерированных пакетов был
212.69.XX.YY - основного на интерфейсе?

P.S. $ uname -a
Linux host.ru 2.4.25-std-smp-alt5 #1 SMP Tue Apr 20 22:32:13
MSD 2004 i686 unknown unknown GNU/Linux

-- 
WBR, Andrey Brindeew.
"No one person can understand Perl culture completely"
(C) Larry Wall.

[-- Attachment #2: Type: application/pgp-signature, Size: 245 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-12-22 13:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-22  7:07 [sisyphus] Исходящие адреса с машины, у которой много алиасов Andrey Brindeew
2004-12-22  7:55 ` fmfm
2004-12-22  8:06   ` Mike Lykov
2004-12-22  8:18     ` Peter V. Saveliev
2004-12-22 11:55       ` Denis Ovsienko
2004-12-22 13:32         ` Andrey Brindeew

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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