← Back to team overview

sslug-teknik team mailing list archive

Re: diald spørgsmål

 

Frank Damgaard wrote:

sl0 var åbenbart lige blevet væk, men den er på banen igen. Men jeg
mangler vist stadig noget med deafultroute. Hvordan sættes det? Jeg har
set at du har dit netværk til Use Iface sl0. Mit er eth0, hvordan laves
det om?

> Diald må da vist stadig have en del fejlmeldinger i log
I /var/log/diald.log er der ingen fejl meddelelser.
i messages:
Mar 29 23:26:57 neo diald[4576]: Proxy device established on interface
sl0
Mar 29 23:26:57 neo diald[4576]: start sl0: SIOCSIFMETRIC: Operation not
supported 
Mar 29 23:26:57 neo diald[4573]: Proxy device established on interface
sl1
Mar 29 23:26:57 neo diald[4573]: start sl1: SIOCSIFMETRIC: Operation not
supported 
Mar 29 23:26:57 neo diald[4576]: start sl0: RTNETLINK answers: No such
process 
Mar 29 23:26:57 neo diald[4576]: Diald initial setup completed.
Mar 29 23:26:57 neo diald[4573]: start sl1: RTNETLINK answers: No such
process 
Mar 29 23:26:57 neo diald[4573]: Diald initial setup completed.
Mar 29 23:26:58 neo diald[4573]: Trigger: tcp     
192.168.1.10/23         192.168.5.1/1037 
Mar 29 23:26:58 neo diald[4573]: Calling site 192.168.1.1 
Mar 29 23:26:59 neo chat[4607]: report (CONNECT)
Mar 29 23:26:59 neo chat[4607]: report (OK)
Mar 29 23:26:59 neo chat[4607]: report (BUSY)
Mar 29 23:26:59 neo chat[4607]: report (NO CARRIER)
Mar 29 23:26:59 neo chat[4607]: report (NO DIALTONE)
Mar 29 23:26:59 neo chat[4607]: timeout set to 10 seconds
Mar 29 23:26:59 neo chat[4607]: send (ATZ^M)
Mar 29 23:26:59 neo chat[4607]: expect (OK)
Mar 29 23:26:59 neo chat[4607]: ATZ^M^M
Mar 29 23:26:59 neo chat[4607]: OK
Mar 29 23:26:59 neo chat[4607]:  -- got it 
Mar 29 23:26:59 neo chat[4607]: send (ATDT102682349997^M)
Mar 29 23:26:59 neo chat[4607]: abort on (NO CARRIER)
Mar 29 23:26:59 neo chat[4607]: abort on (BUSY)
Mar 29 23:26:59 neo chat[4607]: abort on (NO DIALTONE)
Mar 29 23:26:59 neo chat[4607]: abort on (WAITING)
Mar 29 23:26:59 neo chat[4607]: timeout set to 120 seconds
Mar 29 23:26:59 neo chat[4607]: expect (CONNECT)
Mar 29 23:26:59 neo chat[4607]: ^M
Mar 29 23:27:24 neo chat[4607]: ATDT102682349997^M^M
Mar 29 23:27:24 neo chat[4607]: CONNECT
Mar 29 23:27:24 neo chat[4607]:  -- got it 
Mar 29 23:27:24 neo diald[4573]: Connected to site 192.168.1.1 
Mar 29 23:27:24 neo diald[4573]: Running pppd (pid = 4608).
Mar 29 23:27:25 neo modprobe: can't locate module char-major-108
Mar 29 23:27:25 neo pppd[4608]: pppd 2.3.10 started by root, uid 0
Mar 29 23:27:25 neo pppd[4608]: Using interface ppp0
Mar 29 23:27:25 neo pppd[4608]: Connect: ppp0 <--> /dev/ttyS0
Mar 29 23:27:29 neo pppd[4608]: local  IP address 212.97.221.53
Mar 29 23:27:29 neo pppd[4608]: remote IP address 212.97.221.1
Mar 29 23:27:30 neo diald[4573]: New addresses: local 212.97.221.53,
remote 212.97.221.1, broadcast 0.0.0.0
Mar 29 23:27:30 neo diald[4573]: start ppp0: SIOCSIFMETRIC: Operation
not supported 
Mar 29 23:27:30 neo diald[4573]: running ip-up script '/etc/diald/ip-up
'ppp0' '255.255.255.0' '212.97.221.53' '212.97.221.1''
Mar 29 23:27:30 neo diald[4573]: ip-up:
/etc/sysconfig/network-scripts/ifup-post: ifcfg-: No such file or
directory
Mar 29 23:27:30 neo diald[4573]: ip-up: usage:
/etc/sysconfig/network-scripts/ifup-aliases <net-device>
Mar 29 23:27:30 neo diald[4573]: ip-up: usage:
/etc/sysconfig/network-scripts/ifup-routes <net-device>

Er der noget galt her?

> Hvad anvendte du som local/remote i diald.options ?

local 192.168.1.10
remote 192.168.1.1

Her er min route tabel. 

Før opkobling:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.1.10    0.0.0.0         255.255.255.255 UH    0      0        0
eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0
lo

Efter opkobling:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
212.97.221.1    0.0.0.0         255.255.255.255 UH    0      0        0
ppp0
192.168.1.10    0.0.0.0         255.255.255.255 UH    0      0        0
eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
sl0
212.97.221.0    0.0.0.0         255.255.255.0   U     0      0        0
ppp0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0
lo

Jeg mangler altså stadig defaultroute. Så hvordan sættes den? (denne
route passer ikke lige med log'en da jeg loggede af og på igen, så
IP-adresserne passer nok ikke!)

Anders M


Follow ups

References