LINUX.ORG.RU

Нужна помощь


0

0

Привет всем!

Помогите или посоветуйте что почитать по поводу след проблемы. Есть комп подключ к инету через модем на котором все опред через dhcp а через сетевую плату к локал сети. На сетевой плате проставлен адрес 10.0.0.1. Имя компа mycomp Внутр dns суффикс myhome.local. Для внутр сети комп должен быть dns dhcp сервером и при включенном модеме также быть маршрутизатором.

Посоветуйте где почиать по поводу этого. Особенно непонятно что делать с интерф модема на котором сидит dhcp.

anonymous

Ответ на: комментарий от gr_buza

Искал и в поиске и в инете. Проблема в том что на модеме не стат адрес а dhcp. Как мне dns настраивать то?? Что бы для внутр сети мой dns а для внешней подгружался по dhcp dns провайдера

anonymous
()
Ответ на: комментарий от anonymous

И даже к примеру что писать в resolv.conf Я написал nameserver=10.0.0.1 и после этого комп оказался коннектится к инету. Что надо писать?? Не понимаю :((((((

anonymous
()
Ответ на: комментарий от ansky

Что-то я замечаю, на темы в форуме, которые озаглавлены тупейшим заголовком типа "Нужна помощь", или "Вопрос!!" обычно много отвечают. Почему бы не игнорировать такие темы?

init ★★★★★
()

13.7.4 Periscope: A Useful Networking Script

Suppose you have a free email account such as that provided by Yahoo! You're traveling and find yourself in a remote location with web access. However, you're unable to access files on your home machine or check email that has arrived there. This is a common circumstance, especially if your business requires that you travel.

In order to show the power of shell scripts, this subsection explains a more complex shell script, periscope. At an appointed time each day, periscope causes your computer (which you must leave powered on) to establish a PPP connection to your ISP, which is maintained for about one hour. This provides you enough time to connect to an ISP from your hotel room or other remote location and then connect via the Internet with your home Linux system, avoiding long-distance charges. Once connected, you have about an hour to view or download mail and perform other work. Then, periscope breaks its PPP connection, which it will reestablish at the appointed time the next day.

The following code shows the periscope script file, which is considerably larger than any script you've so far encountered in this chapter. Therefore, we'll disassemble the script, explaining it line by line. As you'll see, each line is fairly simple in itself, and the lines work together in a straightforward fashion.

1 route del default
2 wvdial &
3 sleep 1m
4 ifconfig | mail username@mail.com
5 sleep 1h
6 killall wvdial
7 sleep 2s
8 killall -9 wvdial
9 killall pppd
10 sleep 2s
11 killall -9 pppd
12 echo "/root/periscope" | at 10:00
Here's the line-by-line analysis of the periscope script:

route del default

This line is perhaps the most complex line of the entire script. The route command is normally issued by the system administrator. You've probably never issued the command yourself, because neat or another network configuration program has issued it on your behalf. The effect of the command is to delete the default network route, if any. The default route is the one along which TCP/IP sends packets when it knows no specific route to their specified destination. It's necessary to delete the default route because the wvdial program, which the script uses to establish its PPP connection, will not override an existing default route.


13.7.5 Using Periscope

At the appointed time, fire up your computer and access your email account. You should find a mail message that contains the ifconfig output giving your computer's current IP address. Now you can use telnet or an ssh client—your choice corresponds to the server you're running on your Linux system—to contact your computer and work for the remainder of the specified connection time. At the end of the connection time, your Linux system will sever its PPP connection and begin counting down until it's again time to connect.

anonymous
()
Ответ на: комментарий от ansky

что то я не вижу чтобы кто-нибудь отвечал бы на поставл вопросы --- я ведь прошу мне сказать
1 ссылки на ресурсы
2 что писать в resolv.conf

PS Вроде глупости я не написал

anonymous
()
Ответ на: комментарий от anonymous

Может я что-то в вопросе неправильно понял, ногда поправьте. При чем здесь интерфейс модема и dhcp? Если Ваш компьютер должен выступать в качестве dns, dhcp сервера для других локальных компьютеров, то на Вашем компьютере дожны выть подняты и правильно настроены bind и dhcp. После подключения к и-нету через модем на вашем компьютере должен установиться default route через модем. В resolv.conf всегда запись: "nameserver 127.0.0.1".

anonymous
()
Ответ на: комментарий от anonymous

Про роутинг можно почитать в Cable-Modem HOWTO. Оттуда дополнительные ссылки на BIND, DHCP. А если коротко, то должен быть роутинг на свою внутреннюю сеть (устанавливается сам по-умолчании), на другие внутренние сетки (если такие есть) через соответствующие шлюзы-gateways и default через gateway (в Вашем случае удаленный адрес модемной линии).

anonymous
()
Ответ на: комментарий от anonymous

Спасибо :)
PS В сетеке кроме сервера всего 2 компа. Это домаш сетка. Так что других внутр сеток не планируется

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.