Re: Network Manager and Ubumtu 8.10



I had the same problem with 0.7.0. I solved it with the following self
written script:
#!/bin/sh

sleep 5

while true; do
    if [ "x`ifconfig ppp0 2>/dev/null | grep inet`" != "x" ]; then
        if [ "x`cat /etc/resolv.conf | grep nameserver`" = "x" ]; then
            echo "DNS entries missing! Repairing it."
            cp /etc/resolv.conf.provider /etc/resolv.conf
        fi
    fi
    sleep 5
done

Then add the following line to /etc/rc.local:
/usr/local/bin/dns_workaround.sh &

Assuming you have saved the above script
in /usr/local/bin/dns_workaround.sh.

In the last step create a file /etc/resolv.conf.provider with correct
entries.

I know it doesn't solve the problem in nm, but it will hopefully solve
your problem ;-)

Cheers, Martin


Am Mittwoch, den 15.04.2009, 15:33 -0500 schrieb Alvaro Isaza:
> 
> /etc/resolv.conf
> ==================
> # Generated by NetworkManager
> ==================
> 
> That's all.
> 
> Alvaro
> 
> Dan Williams wrote: 
> > On Mon, 2009-04-13 at 12:16 -0500, Alvaro Isaza wrote:
> >   
> > > Hi,
> > > 
> > > I where working with full success with a Huawei E226 USB modem in
Ubuntu 
> > > 8.04 Hardy and NetworkManager, now I need to use it in other PC
with 
> > > Ubuntu 8.10 Intrepid, the connection is established but it
doesn't  
> > > actualize the DNS, for that reason I can't access the internet.
> > > 
> > > My configuration for Ubuntu 8.04:
> > > 
> > > /etc/network/interfaces
> > > =====================
> > > auto lo
> > > iface lo inet loopback
> > > 
> > > iface ppp0 inet ppp
> > > provider ppp0
> > > =====================
> > > 
> > > /etc/ppp/peers/ppp0
> > > =====================
> > > /dev/ttyUSB0
> > > 115200
> > > user "comcelweb"
> > > connect "/usr/sbin/chat -v -f /etc/chatscripts/ppp0"
> > > noipdefault
> > > defaultroute
> > > noauth
> > > usepeerdnsABORT 'BUSY'
> > > ABORT 'NO CARRIER'
> > > ABORT 'ERROR'
> > > '' AT
> > > OK AT+CGATT=1
> > > OK AT+CGDCONT=1,"IP","internet.comcel.com.co"
> > > OK      ATD*99#
> > > =====================
> > > 
> > > /etc/chatscripts/ppp0
> > > =====================
> > > TIMEOUT 3
> > > ABORT BUSY
> > > ABORT 'NO CARRIER'
> > > ABORT VOICE
> > > ABORT 'NO DIALTONE'
> > > ABORT 'NO DIAL TONE'
> > > ABORT 'NO ANSWER'
> > > ABORT DELAYED
> > > "" ATZ
> > > OK ATQ0V1E1S0=0&C1&D2
> > > OK AT+CGDCONT=1,"IP","internet.comcel.com.co"
> > > OK ATDT*99#
> > > CONNECT ""
> > > 
> > > In Ubuntu 8.10 I added:
> > > 
> > > <!-- Colombia -->
> > > <country code="co">
> > >     <provider>
> > >         <name>Comcel</name>
> > >         <gsm>
> > >             <apn>internet.comcel.com.co</apn>
> > >         </gsm>
> > >         <username>comcelweb</username>
> > >         <password>comcelweb</password>
> > >         <dns>198.228.90.211</dns>
> > >     </provider>
> > > </country>
> > > 
> > > to serviceproviders.xml and added this connection to Mobile
broadband, 
> > > when active, "Connection Information" reports:
> > > 
> > > Comcel (default)
> > > Interface:                               GSM(ttyUSB0)
> > > Hardware Address:
> > > Driver:                                    option
> > > Speed:                                    Unknown
> > > Security:                                 Unknown
> > > IP Address:                             166.238.152.184
> > > Broadcast Address:               166.238.152.184
> > > Subnet mask:                          255.255.255.255
> > > Default Route:                        10.64.64.64
> > > 
> > > How can I solve this problem?
> > >     
> > 
> > When the problem occurs, what is the contents of /etc/resolv.conf?
> > 
> > dan
> > 
> > 
> >   
> _______________________________________________
> NetworkManager-list mailing list
> NetworkManager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]