From: Dmitry Lebkov <dima@sakhalin.ru>
To: community@altlinux.ru
Subject: Re: [Comm] eth0 и eth0:1 в разных сетях как сделать
Date: Wed, 29 Oct 2003 00:26:10 +1000
Message-ID: <20031029002610.441c614f.dima@sakhalin.ru> (raw)
In-Reply-To: <3F9DC342.7020602@parkheights.dyndns.org>
On Mon, 27 Oct 2003 20:15:46 -0500
sergey ivanov <seriv@parkheights.dyndns.org> wrote:
> taras wrote:
> > sergey ivanov пишет:
> >
> >> Всем привет.
> >>
> >> Нужно к имеющемуся на eth0 адресу 192.168.10.1 добавить алиас eth0:11
> >> с адресом 192.168.11.1
> >> Это очень легко делается вручную # ifconfig eth0:11 192.168.11.1
> >> Однако когда я создал в /etc/sysconfig/network-scripts файлик
> >> ifcfg-eth0:11 следующего содержания
> >> [skip]
> >
> >
> > Оставьте только эти строки:
> > DEVICE=eth0:11
> > IPADDR=192.168.11.1
> > NETMASK=255.255.255.0
> > NETWORK=192.168.11.0
> > BROADCAST=192.168.11.255
> >
> > и все получится.
>
> Спасибо. А вы сами пробовали? У меня - не получается. С тем же ответом:
> # ifconfig eth0:11 up
> SIOCSIFFLAGS: Cannot assign requested address
А что мешает заглянуть внутрь скрипта
/etc/sysconfig/network-scripts/ifup-aliases? В начале скрипта всё подробно
рсаписано:
$ head -n 22 /etc/sysconfig/network-scripts/ifup-aliases
#!/bin/sh
#
# configures aliases of device $1
#
# This script goes out of its way to arrive at the configuration of ip
# aliases described in the ifcfg-$DEV:* and ifcfg-$DEV-range* files from
# whatever existing configuration it may be given: existing aliases not
# specified in the configuration will be removed, netmasks and broadcast
# addrs will be updated on existing aliases, and new aliases will be setup.
#
# range specification files:
#
# One can specify ranges of alised ipaddress using ifcfg-$DEV-range* files.
# Specify multiple ranges using multiple files, such as ifcfg-eth0-range0 and
# ifcfg-eth0-range1, etc. In these files, the following configuration variables
# specify the range:
#
# IPADDR_START -- ipaddr to start range at. eg "192.168.30.1"
# IPADDR_END -- ipaddr to end range at. eg "192.168.30.254"
# CLONENUM_START -- interface clone number to start using for this range. eg "0"
#
--
WBR, Dmitry Lebkov
next prev parent reply other threads:[~2003-10-28 14:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-27 21:47 sergey ivanov
2003-10-27 22:26 ` taras
2003-10-28 1:15 ` sergey ivanov
2003-10-28 5:00 ` Shawkat Nizamov
2003-10-28 8:44 ` sergey ivanov
2003-10-28 5:14 ` Gosha
2003-10-28 14:26 ` Dmitry Lebkov [this message]
2003-10-28 7:33 ` Иван Лабунец
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=20031029002610.441c614f.dima@sakhalin.ru \
--to=dima@sakhalin.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