ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Andrey Brindeew <abr@altlinux.ru>
To: sisyphus@altlinux.ru
Subject: [sisyphus] Исходящие адреса с машины, у которой много алиасов
Date: Wed, 22 Dec 2004 10:07:12 +0300
Message-ID: <20041222070712.GB5523@abr.pp.ru> (raw)

[-- 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 --]

             reply	other threads:[~2004-12-22  7:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-22  7:07 Andrey Brindeew [this message]
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

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=20041222070712.GB5523@abr.pp.ru \
    --to=abr@altlinux.ru \
    --cc=sisyphus@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 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