Dan Williams wrote:
  On Thu, 2009-04-16 at 12:00 -0500, Alvaro Isaza wrote:
   
  
    Actually resolvconf package is not installed, and by the way not using
Martin's script doesn't  work.
    
   
  
When this problem occurs, can you report the output of 'nm-tool' for me?
   
 
nm-tool Output 
======================== 
NetworkManager Tool 
 
State: connected 
 
- Device: eth0
---------------------------------------------------------------- 
  Type:              Wired 
  Driver:            forcedeth 
  State:             unavailable 
  Default:           no 
  HW Address:        00:1E:68:82:1B:5B 
 
  Capabilities: 
    Supported:       yes 
    Carrier Detect:  yes 
 
  Wired Settings 
 
 
- Device: ath0
---------------------------------------------------------------- 
  Type:              802.11 WiFi 
  Driver:            ath_pci 
  State:             disconnected 
  Default:           no 
  HW Address:        00:1F:E2:BC:78:82 
 
  Capabilities: 
    Supported:       yes 
 
  Wireless Settings 
    WEP Encryption:  yes 
    WPA Encryption:  yes 
    WPA2 Encryption: yes 
 
  Wireless Access Points 
     
    LinksysM:        Infra, 00:06:25:F7:14:32, Freq 2437 MHz, Rate 11
Mb/s, Strength 28 WEP 
    BCM:             Infra, 00:18:F8:38:B2:A4, Freq 2437 MHz, Rate 54
Mb/s, Strength 25 WEP 
    linksysCASA:     Infra, 00:14:BF:28:40:FD, Freq 2437 MHz, Rate 54
Mb/s, Strength 10 WPA 
    38029468:        Infra, 00:1A:73:F7:81:70, Freq 2412 MHz, Rate 54
Mb/s, Strength 18 WEP 
    linksys:         Infra, 00:14:BF:6E:DE:9C, Freq 2437 MHz, Rate 54
Mb/s, Strength 20 WEP 
    Belkin_N1_Wireless_F70CC5: Infra, 00:11:50:F7:0C:C5, Freq 2437 MHz,
Rate 54 Mb/s, Strength 10 WEP 
    3Com:            Infra, 00:1C:C5:09:FF:4E, Freq 2437 MHz, Rate 54
Mb/s, Strength 8 
    JCT:             Infra, 00:1C:F0:3A:1D:BF, Freq 2437 MHz, Rate 54
Mb/s, Strength 7 WPA 
    larp:            Infra, 00:13:10:95:32:3E, Freq 2437 MHz, Rate 54
Mb/s, Strength 2 WEP 
 
 
- Device: ttyUSB0
---------------------------------------------------------------- 
  Type:              Mobile Broadband (GSM) 
  Driver:            option 
  State:             connected 
  Default:           yes 
 
  Capabilities: 
    Supported:       yes 
 
  IPv4 Settings: 
    Address:         166.210.49.121 
    Prefix:          32 (255.255.255.255) 
    Gateway:         10.64.64.64 
 
 
  Also, is "Automatic (addresses only)" the IPv4 config method being used
in the connection editor in the IPv4 tab for that connection?
   
 
Is "Automatic (ppp)" 
 
Alvaro Isaza 
 
  
Dan
Regards,
Alvaro Isaza
Dan Williams wrote: 
   
 
  
    
      On Wed, 2009-04-15 at 16:24 -0500, Alvaro Isaza wrote:
  
      
      
        Thank You Martin,
Your solution works.
    
        
       
      Does it also work if you uninstall the 'resolvconf' package and stop
using Martin's script?
Dan
  
      
      
        Regards,
Alvaro Isaza
Martin Bammer wrote: 
    
        
        
          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
    
        
            
           
                
          
         
       
      
  
      
     
   
  
   
 
 |