Portál AbcLinuxu, 7. května 2025 07:26
Aug 20 15:16:25 localhost pppd[1615]: Serial connection established. Aug 20 15:16:25 localhost pppd[1615]: Using interface ppp0 Aug 20 15:16:25 localhost pppd[1615]: Connect: ppp0 <--> /dev/ttyS4 Aug 20 15:16:28 localhost pppd[1615]: local IP address 10.28.12.215 Aug 20 15:16:28 localhost pppd[1615]: remote IP address 10.28.12.215 Aug 20 15:16:28 localhost pppd[1615]: primary DNS address 217.77.165.81 Aug 20 15:16:28 localhost pppd[1615]: secondary DNS address 217.77.161.131Jen je zajmave ze local a remote IP sou stejny. Problem je ze se mi nenastavi defaultni gateway.
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0 default * 0.0.0.0 U 0 0 0 ppp0Aby to zacalo fungovat musim pridat defaultni gateway:
route add default gw 10.28.12.215v konfiguracnim souboru pripojeni ale mam zapnuty defaultroute, takze moc nechapu proc se neprida. Samozrejme bych mohl napsat jednoduchy script co podle pridelene adresy nastavi i gateway, ale radeji bych aby to fungovalo samo (nebo aspon vedel proc to nefunguje). Konfigurace ppp:
user "myusername@realm" connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T *99***1#" # Serial device to which the modem is connected. /dev/ttyS4 # Assumes that your IP address is allocated dynamically by the ISP. noipdefault # Try to get the name server addresses from the ISP. usepeerdns replacedefaultroute # Use this connection as the default route. defaultroute usepeerdns # Makes pppd "dial again" when the connection is lost. persist lock # Do not ask the remote to authenticate. noauth
Na otázku zatím nikdo bohužel neodpověděl.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.