From: Dmitry Lebkov <dima@sakhalin.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] Как поднять ethX без IP адреса?
Date: Thu, 01 Dec 2005 17:22:22 +1000
Message-ID: <438EA4AE.1060505@sakhalin.ru> (raw)
In-Reply-To: <438DBB2D.6040709@21th.com>
Grigory Soloviov wrote:
> Olvin wrote:
>
>> Grigory Soloviov wrote:
>>
>>> Но у меня по умолчанию eth1 уже поднимается со своим IP адресом,
>>> можно ли его поднять без IP адреса и как это сделать?
>>
>>
>>
>> [olvin@enigma olvin]# sudo ifconfig eth1 up
>> [olvin@enigma olvin]# sudo ifconfig
>> eth0 Link encap:Ethernet HWaddr 00:04:61:4B:C8:B1
>> inet addr:10.1.1.36 Bcast:10.1.1.255 Mask:255.255.255.0
>> UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:35348 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:141729 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:1000
>> RX bytes:29479212 (28.1 MiB) TX bytes:17283366 (16.4 MiB)
>> Interrupt:22 Base address:0xc800
>>
>> eth1 Link encap:Ethernet HWaddr 00:40:F4:8D:C7:C8
>> UP BROADCAST MULTICAST MTU:1500 Metric:1
>> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:1000
>> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
>> Interrupt:17 Base address:0x2000
>>
>> 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:1664 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:1664 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:0
>> RX bytes:746825 (729.3 KiB) TX bytes:746825 (729.3 KiB)
>>
> Это понятно, как это сделать при загрузке системы.
> Я в файле /etc/sysconfig/network-script/eth1 прописал IP адрес 0.0.0.0
> вроде заработало, но насколько это корректно?
Посмотри на результат netstat -rn - если после загрузки с такими параметрами
default route указывает в правильную сторону, значит конфиг вполне корректный.
Но (!) начиная с какой-то версии initscripts указание 0.0.0.0 в качестве
IP-адреса интерфейса таки приводило к установке этого адреса на интерфейс
и соответствующего маршрута в таблицу маршрутизации. %)
--
WBR, Dmitry Lebkov
next prev parent reply other threads:[~2005-12-01 7:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-30 12:27 Grigory Soloviov
2005-11-30 14:17 ` Olvin
2005-11-30 14:46 ` Grigory Soloviov
2005-11-30 14:53 ` Olvin
2005-11-30 15:13 ` oyl
2005-11-30 20:36 ` [Comm] " Michael Shigorin
2005-12-01 7:22 ` Dmitry Lebkov [this message]
2005-11-30 14:54 ` [Comm] " A. Gorlov
2005-12-01 8:07 ` Olvin
2005-12-01 3:33 ` Evgenii Terechkov
2005-12-01 6:48 ` Eugene Prokopiev
2005-12-01 7:17 ` Evgenii Terechkov
2005-12-01 9:57 ` Eugene Prokopiev
2005-12-01 10:14 ` Evgenii Terechkov
2005-12-01 12:22 ` Grigory Soloviov
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=438EA4AE.1060505@sakhalin.ru \
--to=dima@sakhalin.ru \
--cc=community@lists.altlinux.org \
/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