From: Gennadii Redko <uit1@zaz.zp.ua>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: [Comm] Настроить VLANы в etcnet
Date: Sat, 08 Nov 2008 23:10:43 +0200
Message-ID: <49160053.4090201@zaz.zp.ua> (raw)
Не могу добиться, чтобы стартовал интерфейс на вилане 802.1q в профиле
etcnet.
Дистрибутив - ALD 4.1
Задача выглядит вот так:
Есть интерфейс eth0
На нем подымается IP = 10.0.0.4/24 например
На тот же физический интерфейс подается еще один вилан 802.1q с VID=60.
Адрес на нем - 10.0.1.5/24
С помощью vconfig - оба интерфейса подымаются.
Вот такой скрипт:
#!/bin/bash
ifconfig eth0 0.0.0.0 up
modprobe 8021q
vconfig add eth0 60 60
ifconfig eth0 10.0.0.4 netmask 255.255.255.0 up
ifconfig eth0.60 10.0.1.5 netmask 255.255.255.0 up
route add default gw 10.0.1.254
ifconfig
route
eth0 Link encap:Ethernet HWaddr 00:1C:C4:98:78:BD
inet addr:10.0.0.4 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1170 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:86276 (84.2 KiB) TX bytes:3560 (3.4 KiB)
Interrupt:19
eth0.60 Link encap:Ethernet HWaddr 00:1C:C4:98:78:BD
inet addr:10.0.1.5 Bcast:10.0.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:828 (828.0 b) TX bytes:3078 (3.0 KiB)
..............................
С помощью etcnet - не подымается eth0.60.
VLAN настроен с помощью записи в /etc/net/vlantab :
eth0 60 eth0.60
и при рестарте профиля - интерфейс eth0.60 появляется:
eth0.60 Link encap:Ethernet HWaddr 00:1C:C4:98:78:BD
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:368 (368.0 b) TX bytes:3078 (3.0 KiB)
Но почему-то ему не присваивается IP и не подымается маршрут.
Если побробовать после этого задать IP вручную - задается.
Что я делаю не так?
next reply other threads:[~2008-11-08 21:10 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-08 21:10 Gennadii Redko [this message]
2008-11-08 23:35 ` Alexey Borovskoy
2008-11-09 0:12 ` Gennadii Redko
2008-11-09 0:19 ` Gennadii Redko
2008-11-09 19:36 ` Sergey
2008-11-10 9:50 ` Gennadii Redko
2008-11-10 12:00 ` Sergey
2008-11-10 12:30 ` Gennadii Redko
2008-11-11 7:32 ` Sergey
2008-11-10 13:23 ` Gennadii Redko
2008-11-10 13:29 ` Gennadii Redko
2008-11-10 13:52 ` Dmytro O. Redchuk
2008-11-10 13:58 ` Dmytro O. Redchuk
2008-11-10 14:53 ` Gennadii Redko
2008-11-10 15:37 ` Dmytro O. Redchuk
2008-11-10 18:27 ` Gennadii Redko
2008-11-11 4:02 ` Gennadii Redko
2008-11-11 7:36 ` Sergey
2008-11-11 7:42 ` Dmytro O. Redchuk
2008-11-11 8:13 ` Sergey
2008-11-11 13:44 ` Alexey I. Froloff
2008-11-11 7:34 ` Sergey
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=49160053.4090201@zaz.zp.ua \
--to=uit1@zaz.zp.ua \
--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