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/.
Witam
Mam plik z ip'kami na jaką bramę mają wpadać i ostatnio zauważyłem że nie wszystkie wpisy się dodają po restarcie serwera.
wpisy wyglądają np tak:
route add -net 192.168.167.128 netmask 255.255.255.128 gw 10.10.1.1 dev eth7
route add -net 192.168.168.128 netmask 255.255.255.128 gw 10.10.1.1 dev eth7
route add -net 192.168.169.128 netmask 255.255.255.128 gw 10.10.1.1 dev eth7
i właśnie tych wpisów nie przyjmuje automatycznie, ale mogę je dodać ręcznie bez problemu.
O co w tym chodzi ?
#!/bin/sh -e # # route add -net 192.168.173.128 netmask 255.255.255.128 gw 10.0.2.2 dev eth1 route add -net 192.168.1.0 netmask 255.255.255.0 gw 10.0.2.2 # route add -net 192.168.11.128 netmask 255.255.255.192 gw 10.0.2.2 dev eth1 route add -net 192.168.21.128 netmask 255.255.255.192 gw 10.0.2.2 dev eth1 route add -net 192.168.24.0 netmask 255.255.255.0 gw 10.0.2.2 dev eth1 # route add -net 192.168.17.128 netmask 255.255.255.192 gw 10.0.2.2 dev eth1 route add -net 192.168.64.0 netmask 255.255.255.0 gw 10.0.2.2 dev eth1 route add -net 192.168.30.128 netmask 255.255.255.128 gw 10.0.2.2 dev eth1 route add -net 192.168.121.0 netmask 255.255.255.0 gw 10.0.2.2 dev eth1 route add -net 192.168.16.128 netmask 255.255.255.192 gw 10.0.2.2 dev eth1 route add -net 192.168.14.128 netmask 255.255.255.192 gw 10.0.2.2 dev eth1 #Komin B4 route add -net 192.168.47.0 netmask 255.255.255.192 gw 10.0.3.2 dev eth2 route add -net 192.168.82.0 netmask 255.255.255.192 gw 10.0.3.2 dev eth2 route add -net 192.168.76.0 netmask 255.255.255.192 gw 10.0.3.2 dev eth2 route add -net 192.168.5.128 netmask 255.255.255.252 gw 10.0.3.2 dev eth2 route add -net 192.168.27.128 netmask 255.255.255.128 gw 10.0.3.2 dev eth2 route add -net 192.168.134.0 netmask 255.255.255.0 gw 10.0.3.2 dev eth2 route add -net 192.168.46.0 netmask 255.255.255.0 gw 10.0.3.2 dev eth2 # #MT route add -net 192.168.6.128 netmask 255.255.255.192 gw 10.0.4.2 dev eth3 route add -net 192.168.7.128 netmask 255.255.255.192 gw 10.0.4.2 dev eth3 route add -net 192.168.33.128 netmask 255.255.255.128 gw 10.0.4.2 dev eth3 #MT route add -net 192.168.23.128 netmask 255.255.255.128 gw 10.0.3.2 dev eth2 route add -net 192.168.40.128 netmask 255.255.255.128 gw 10.0.3.2 dev eth2 # route add -net 192.168.37.128 netmask 255.255.255.128 gw 10.0.3.2 dev eth2 route add -net 192.168.38.128 netmask 255.255.255.128 gw 10.0.3.2 dev eth2 route add -net 192.168.41.128 netmask 255.255.255.128 gw 10.0.3.2 dev eth2 #MT B14 route add -net 192.168.125.128 netmask 255.255.255.128 gw 10.0.3.2 dev eth2 route add -net 192.168.126.128 netmask 255.255.255.128 gw 10.0.3.2 dev eth2 #UBNT bridge route add -net 10.0.11.0 netmask 255.255.255.252 gw 10.0.3.2 dev eth2 route add -net 10.0.12.0 netmask 255.255.255.252 gw 10.0.3.2 dev eth2 route add -net 10.0.13.0 netmask 255.255.255.252 gw 10.0.3.2 dev eth2 #UBNT bridge B14 route add -net 10.0.19.0 netmask 255.255.255.252 gw 10.0.3.2 dev eth2 route add -net 10.0.20.0 netmask 255.255.255.252 gw 10.0.3.2 dev eth2 route add -net 10.0.21.0 netmask 255.255.255.252 gw 10.0.3.2 dev eth2 #UBNT bridge B27 route add -net 10.1.2.0 netmask 255.255.255.252 gw 10.10.1.2 dev eth7 route add -net 10.1.3.0 netmask 255.255.255.252 gw 10.10.1.2 dev eth7 route add -net 10.1.4.0 netmask 255.255.255.252 gw 10.10.1.2 dev eth7 #UBNT bridge B28 route add -net 10.1.5.0 netmask 255.255.255.252 gw 10.10.1.2 dev eth7 route add -net 10.1.6.0 netmask 255.255.255.252 gw 10.10.1.2 dev eth7 route add -net 10.1.7.0 netmask 255.255.255.252 gw 10.10.1.2 dev eth7 #MT B27 route add -net 192.168.161.128 netmask 255.255.255.128 gw 10.10.1.2 dev eth7 route add -net 192.168.162.128 netmask 255.255.255.128 gw 10.10.1.2 dev eth7 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- route add -net 192.168.163 128 netmask 255.255.255.128 gw 10.10.1.2 dev eth7 #MT B28 route add -net 192.168.164.128 netmask 255.255.255.128 gw 10.10.1.2 dev eth7 route add -net 192.168.165.128 netmask 255.255.255.128 gw 10.10.1.2 dev eth7 route add -net 192.168.166 128 netmask 255.255.255.128 gw 10.10.1.2 dev eth7 #UBNT B28 route add -net 192.168.167.128 netmask 255.255.255.128 gw 10.10.1.2 dev eth7 route add -net 192.168.168.128 netmask 255.255.255.128 gw 10.10.1.2 dev eth7 route add -net 192.168.169 128 netmask 255.255.255.128 gw 10.10.1.2 dev eth7 exit 0
Te wpisy oddzielone przerywaną kreską to już nie dodają się automatycznie.
Ostatnio edytowany przez kaju007 (2011-08-26 12:05:38)
Offline
Czy jak napiszę że zapomniałeś kropek to będzie twoje przeoczenie przy przepisywaniu czy faktyczny błąd?
Offline
Dzięki okulary muszę zmienić :) nie zauważyłem przyznam się :)
Offline
Time (s) | Query |
---|---|
0.00016 | SET CHARSET latin2 |
0.00008 | SET NAMES latin2 |
0.00154 | 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='18.191.97.133' WHERE u.id=1 |
0.00078 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.191.97.133', 1732867829) |
0.00070 | SELECT * FROM punbb_online WHERE logged<1732867529 |
0.00065 | DELETE FROM punbb_online WHERE ident='185.191.171.8' |
0.00089 | SELECT topic_id FROM punbb_posts WHERE id=180027 |
0.00093 | SELECT id FROM punbb_posts WHERE topic_id=19586 ORDER BY posted |
0.00084 | 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=19586 AND t.moved_to IS NULL |
0.00006 | SELECT search_for, replace_with FROM punbb_censoring |
0.00197 | 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=19586 ORDER BY p.id LIMIT 0,25 |
0.00097 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=19586 |
Total query time: 0.00957 s |