From: Dmitry Nechaev <dima@academy.cap.ru>
To: community@altlinux.ru
Subject: Re: [Comm] IP алиас на интерфейс?
Date: Wed, 12 Nov 2003 14:02:59 +0300
Message-ID: <200311121402.59703.dima@academy.cap.ru> (raw)
In-Reply-To: <3FB20ABB.9030100@psv.com.ua>
В сообщении от Среда 12 Ноябрь 2003 13:26 Slava Dubrovskiy написал(a):
> Hello community!
>
> Подскажите, что я делаю не правильно. Хочу сделать чтобы интерфейс eth0
> имел два IP адреса. Имею вот такой файл
> ifcfg-eth0:
>
> DEVICE=eth0
> ONBOOT=yes
> BOOTPROTO=none
> IPADDR=192.168.1.5
> NETMASK=255.255.255.0
> NETWORK=192.168.1.0
> BROADCAST=192.168.1.255
>
> Делаю файл ifcfg-eth0:0:
> DEVICE=eth0
> ONBOOT=yes
> BOOTPROTO=none
> IPADDR=192.168.100.5
> NETMASK=255.255.255.0
> NETWORK=192.168.100.0
> BROADCAST=192.168.100.255
>
> Проверяю:
> # ifconfig
> eth0 Link encap:Ethernet HWaddr 00:02:B3:C2:5A:71
> inet addr:192.168.100.5 Bcast:192.168.100.255
> Mask:255.255.255.0 UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500
> Metric:1 RX packets:243268 errors:0 dropped:0 overruns:0 frame:0
> TX packets:237175 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:100
> RX bytes:119327809 (113.7 Mb) TX bytes:20868103 (19.9 Mb)
> Interrupt:19 Base address:0xc000
>
> 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:63 errors:0 dropped:0 overruns:0 frame:0
> TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:4946 (4.8 Kb) TX bytes:4946 (4.8 Kb)
>
> Не работает. И что странно адрес тот, который указан в алиасе. В ручную
> через ifconfig получается.
> Подскажите, что не правильно?
man ip
ip addr add 192.168.100.5 dev eth0
ИМХО, необходимость в алиасах отпала уже давно.
--
2.4.20-alt5-up GNU/Linux
next prev parent reply other threads:[~2003-11-12 11:02 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-12 10:26 Slava Dubrovskiy
2003-11-12 10:30 ` Leonid B. Sysoletin
2003-11-12 10:31 ` Shawkat Nizamov
2003-11-12 10:34 ` Dmytro O. Redchuk
2003-11-12 10:39 ` Alexey Starinsky
2003-11-12 10:59 ` Dmytro O. Redchuk
2003-11-12 11:02 ` Dmitry Nechaev [this message]
2003-11-12 11:23 ` Re[2]: " Evgeny Yugov
2003-11-12 12:56 ` Dmitry Nechaev
2003-11-12 14:20 ` Re[2]: " YURA
2003-11-13 6:01 ` Dmitry Nechaev
2003-11-13 9:31 ` Re[2]: " YURA
2003-11-13 11:27 ` Dmitry Nechaev
2003-11-13 15:34 ` Re[2]: " YURA
2003-11-13 15:49 ` Dmytro O. Redchuk
2003-11-14 6:23 ` Dmitry Nechaev
2003-11-12 14:43 ` Slava Dubrovskiy
2003-11-13 6:03 ` Dmitry Nechaev
2003-11-12 13:17 ` Andrey Rahmatullin
2003-11-13 3:17 ` Re[2]: " Evgeny Yugov
2003-11-13 6:10 ` Dmitry Nechaev
2003-11-14 14:48 ` Slava Dubrovskiy
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=200311121402.59703.dima@academy.cap.ru \
--to=dima@academy.cap.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