Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Strony: 1
Witam,
Siedze, mecze, mecze, mecz i mnie chce juz kur... trafic. Nie moge za cholere skonfigurowac dodatkowego ip (failover z ovh) pod LXC. Wysiadam na br0, robie/robilem wedlug prze roznych artykulow i w kazdym jest cos spier... server po prostu nie wstaje. Musze odpalac go w trybie rescue, usuwac dodany wpis i znow rebootowac. Czy ktos moze mi normalnie napisac jak mam dodac IP FailOVer, zeby mogl "postawic" na nim LXC ?
Wpis w [b]/etc/network/interface[/b] wyglada tak:
# The loopback network interface auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 94.23.237.216 netmask 255.255.255.0 network 94.23.237.0 broadcast 94.23.237.255 gateway 94.23.237.254 iface eth0 inet6 static address 2001:41D0:2:70d8:: netmask 64 post-up /sbin/ip -f inet6 route add 2001:41D0:2:70ff:ff:ff:ff:ff dev eth0 post-up /sbin/ip -f inet6 route add default via 2001:41D0:2:70ff:ff:ff:ff:ff pre-down /sbin/ip -f inet6 route del default via 2001:41D0:2:70ff:ff:ff:ff:ff pre-down /sbin/ip -f inet6 route del 2001:41D0:2:70ff:ff:ff:ff:ff dev eth0 auto br0 iface br0 inet static bridge_ports eth0 bridge_stp off bridge_maxwait 0 bridge_fd 0
Jezeli zmienie [b]iface br0 inet static[/b] na [b]iface br0 inet dhcp[/b] to po reboocie pokazuje mi sie w ifconfig wraz z glownym ip. czyli [b]94.23.237.216[/b]. Z aktualnym wpisem w ifconfig mam tylko:
eth0 Link encap:Ethernet HWaddr 00:30:48:bd:ee:08 inet addr:94.23.237.216 Bcast:94.23.237.255 Mask:255.255.255.0 inet6 addr: 2001:41d0:2:70d8::/64 Scope:Global inet6 addr: fe80::230:48ff:febd:ee08/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3746 errors:0 dropped:2 overruns:0 frame:0 TX packets:1238 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4401772 (4.4 MB) TX bytes:215899 (215.8 KB) Interrupt:16 Memory:fbce0000-fbd00000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:440 (440.0 B) TX bytes:440 (440.0 B) lxcbr0 Link encap:Ethernet HWaddr b6:a8:3c:ce:58:0a inet addr:10.0.3.1 Bcast:10.0.3.255 Mask:255.255.255.0 inet6 addr: fe80::b4a8:3cff:fece:580a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:3 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:258 (258.0 B) virbr0 Link encap:Ethernet HWaddr c6:2c:0e:6d:e6:ec inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 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:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) root@ns321124:~#
Ip failover, ktore mam dostepne dla servera to [b]91.121.239.228/32[/b] Czy ktos moze mi wytlumaczyc jak mam to cholerstwo przypisac, tak zebym mogl uzywac pod LXC a dokladnie mogl dodac wpis do:
lxc.conf: lxc.network.type = veth lxc.network.flags = up lxc.network.link = br0 lxc.network.name = eth0 lxc.network.hwaddr = 4a:49:43:49:79:bf lxc.network.ipv4 = 1.2.3.5/24
Ostatnio edytowany przez bryn1u (2014-07-24 11:41:35)
Offline
Strony: 1
Time (s) | Query |
---|---|
0.00015 | SET CHARSET latin2 |
0.00012 | SET NAMES latin2 |
0.00144 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.133.157.231' WHERE u.id=1 |
0.00316 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.133.157.231', 1732819723) |
0.00037 | SELECT * FROM punbb_online WHERE logged<1732819423 |
0.00097 | DELETE FROM punbb_online WHERE ident='18.220.97.161' |
0.00133 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=26174 AND t.moved_to IS NULL |
0.00006 | SELECT search_for, replace_with FROM punbb_censoring |
0.00180 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=26174 ORDER BY p.id LIMIT 0,25 |
0.00096 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=26174 |
Total query time: 0.01036 s |