nixp.ru v3.0

24 апреля 2024,
среда,
23:51:12 MSK

Random написал 28 ноября 2005 года в 00:22 (726 просмотров) Ведет себя как мужчина; открыл 3 темы в форуме, оставил 2 комментария на сайте.

НастраиваЮ соединение в KPPP все работает нормально, а если прописываешь конфиги в /etc/ppp и pppd запускаешь ручками, браузер выдает «An error occurred while loading http://www.nixp.ru: Unknown host www.nixp.ru». Ясно что косяк с DNS но в конфиге указана опция usepeerdns, вроде должно бы нормально работать…

——- /etc/ppp/peers/gprs-T630 ————-

#

# pppd options for Sony Ericsson T630

#

name internet.nw

/dev/ircomm0

# Serial port line speed

115200

# Hardware flow control:

# Use hardware flow control with cable, Bluetooth and USB but not with IrDA.

#crtscts  # serial cable, Bluetooth and USB, on some occasions with IrDA too

nocrtscts # IrDA

# Ignore carrier detect signal from the modem:

local

# Hack to get around T39 firmware bug that prevents repeat

# connections w/o power cycle

receive-all

# Generic GPRS options

file /etc/ppp/gprs-options

# Chat scripts

connect «/usr/sbin/chat -f /etc/ppp/chatscripts/gprs-T630-connect-chat»

disconnect «/usr/sbin/chat -f /etc/ppp/chatscripts/gprs-disconnect-chat»

———-- /etc/ppp/gprs-options ———————

# General options for making GPRS connections

#

# Most GPRS phones don’t reply to LCP echo’s

lcp-echo-failure 0

lcp-echo-interval 0

# pppd must not propose any IP address to the peer!

noipdefault

# Accept peers idea of our local address

ipcp-accept-local

# Add the ppp interface as default route to the IP routing table

defaultroute

# Limit the MTU (workaround for an oddity in the VPN)

mtu 1400

# Newer pppd’s also support replacing the default route, if one is

# already present, when the GPRS connection should be set as the default route

# to the network

#replacedefaultroute

# DNS servers from the phone:

# some phones support this, some don’t.

usepeerdns

# ppp compression:

# ppp compression:

# ppp compression may be used between the phone and the pppd, but the

# serial connection is usually not the bottleneck in GPRS, so the

# compression is useless (and with some phones need to disabled before

# the LCP negotiations succeed).

novj

nobsdcomp

novjccomp

nopcomp

noaccomp

# The phone is not required to authenticate:

noauth

Не судите строго, после очередных выделываний винды, снес нафиг, живет теперь только по vmware, правда потом выяснилось все было из за вируса, но вломы преставльть, да и после доса все время от нее воротило, теперь пытаюсь ужится с пингвином и обратного пути уже нет ;)

anonymous

resolv.conf там пропиши днс провайдера.

Random

Спасибо за ответ. Разобрался прочитав man ;)

Если pppd указана опция usepeerdns он получает от провайдера DNS и прописывает их в /etc/ppp/resolv.conf и передает две переменные DNS1 и DNS2 в скрипт /etc/ppp/ip-up а уже скрипт прописывает в /etc/resolv.conf может конечно можно и по другому но kppp похоже именно так и делает.

Просто иногда устаёш рыться в документации, а все равно лучше man’а никто не поможет ;)

Последние комментарии

ecobeingecobeing.ru
Экология и вегетарианство на благо всем живым существам Планеты.