From: "Alexey Borovskoy" <alexey.borovskoy@gmail.com>
To: "ALT Linux sysadmin discuss" <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Сеть в OpenVZ
Date: Wed, 16 Aug 2006 09:49:13 +1300
Message-ID: <3f60a830608151349u1e4400d2ya25be8d5834a2a39@mail.gmail.com> (raw)
In-Reply-To: <55272.127.0.0.1.1155645862.squirrel@mojo.unsafe.ru>
16.08.06, Konstantin A. Lepikhov<lakostis@unsafe.ru> написал(а):
>
> тогда надо смотреть вывод ip r l на host системе.
HN
------
#ip link
# ip l
2: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
4: dummy0: <BROADCAST,NOARP,UP> mtu 1500 qdisc noqueue
link/ether b2:2d:59:80:27:6a brd ff:ff:ff:ff:ff:ff
6: lan: <BROADCAST,MULTICAST,NOTRAILERS,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:17:31:2a:01:83 brd ff:ff:ff:ff:ff:ff
8: sit0: <NOARP,UP> mtu 1480 qdisc noqueue
link/sit 0.0.0.0 brd 0.0.0.0
1: venet0: <BROADCAST,POINTOPOINT,MULTICAST,NOARP,UP> mtu 1500 qdisc noqueue
link/void
#ip addr
# ip a
2: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
4: dummy0: <BROADCAST,NOARP,UP> mtu 1500 qdisc noqueue
link/ether b2:2d:59:80:27:6a brd ff:ff:ff:ff:ff:ff
inet 10.1.1.1/32 scope global dummy0
inet6 fe80::b02d:59ff:fe80:276a/64 scope link
valid_lft forever preferred_lft forever
6: lan: <BROADCAST,MULTICAST,NOTRAILERS,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:17:31:2a:01:83 brd ff:ff:ff:ff:ff:ff
inet 172.16.81.28/24 brd 172.16.81.255 scope global lan
inet6 fe80::217:31ff:fe2a:183/64 scope link
valid_lft forever preferred_lft forever
8: sit0: <NOARP,UP> mtu 1480 qdisc noqueue
link/sit 0.0.0.0 brd 0.0.0.0
1: venet0: <BROADCAST,POINTOPOINT,MULTICAST,NOARP,UP> mtu 1500 qdisc noqueue
link/void
#ip ro
# ip ro l
10.1.1.2 dev venet0 scope link src 172.16.81.28
172.16.81.0/24 dev lan proto kernel scope link src 172.16.81.28
default via 172.16.81.1 dev lan
VE
-------
# vzctl exec 101 ip link
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
3: venet0: <BROADCAST,POINTOPOINT,NOARP,UP> mtu 1500 qdisc noqueue
link/void
# vzctl exec 101 ip add
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
3: venet0: <BROADCAST,POINTOPOINT,NOARP,UP> mtu 1500 qdisc noqueue
link/void
inet 127.0.0.1/32 scope host venet0
inet 10.1.1.2/32 scope global venet0:1
# vzctl exec 101 ip ro l
<пусто>
# vzctl exec 101 netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
Но в /etc/net/ifaces/venet0/ipv4route
191.255.255.0/24 scope host
default via 191.255.255.1
Как же она увидит HN?
Делаем в VE route add default gw 172.16.81.28 и всё начинает ездить.
P.S.
NH=VE=ALC30
P.P.S.
Зачем там в скриптах FAKE* то?
next prev parent reply other threads:[~2006-08-15 20:49 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-15 5:47 Alexey Borovskoy
2006-08-15 6:01 ` Slava Dubrovskiy
2006-08-15 11:45 ` Alexey Borovskoy
2006-08-15 6:14 ` Maxim Bodyansky
2006-08-15 11:50 ` Alexey Borovskoy
2006-08-15 12:01 ` Konstantin A. Lepikhov
2006-08-15 12:38 ` Alexey Borovskoy
2006-08-15 12:44 ` Konstantin A. Lepikhov
2006-08-15 20:49 ` Alexey Borovskoy [this message]
2006-08-15 21:47 ` Alexey Borovskoy
2006-08-15 22:10 ` Dmitry V. Levin
2006-08-15 22:36 ` Dmitry Lebkov
2006-08-15 23:09 ` Dmitry V. Levin
2006-08-16 1:07 ` Dmitry Lebkov
2006-08-15 22:37 ` Alexey Borovskoy
2006-08-15 23:14 ` Dmitry V. Levin
2006-08-15 23:34 ` Alexey Borovskoy
2006-08-15 23:52 ` Alexey Borovskoy
2006-08-15 23:53 ` Dmitry V. Levin
2006-08-16 0:35 ` Alexey Borovskoy
2006-08-16 8:24 ` Ildar Mulyukov
2006-08-16 9:03 ` Slava Dubrovskiy
2006-08-18 6:16 ` Ildar Mulyukov
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=3f60a830608151349u1e4400d2ya25be8d5834a2a39@mail.gmail.com \
--to=alexey.borovskoy@gmail.com \
--cc=sysadmins@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 sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git