FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Kubuntu User

 
 
LinkBack Thread Tools
 
Old 05-12-2008, 01:45 PM
"Donatas G."
 
Default knetworkmanager and ppp connections

I have managed to successfully setup knetworkmanager to start my ppp
connections (to a 3G network through my mobile phone)
I have followed
http://www.marotori.com/blog/?cat=12
and
http://soniahamilton.wordpress.com/2007/05/04/howto-setup-3-broadband-wireless-on-ubuntu-linux/
, but:

* kde apps are not aware the connection has been established, they think I
am not connected
* the hangup part does not work - I can navigate in knetworkmanager menu to
hangup the active connection, but it does not hang up. I have to run poff (or
rather, "sudo poff", since knetworkmanager operates as root) to stop the
connection manually.

How do I make these two problems go away?

Regarding the first problem:
I have tried to use workaround described here:
http://bugs.kde.org/show_bug.cgi?id=130472

to issue manually a command
dcop kded networkstatus setNetworkStatus NMNetwork 1

and it does work, but it is tedious. I then tried to add it to
the /etc/network/interfaces script, after each of the three ways I bring up
the interface ppp, but it does not work - the

/etc/network/interfaces
==========================================
auto lo
iface lo inet loopback

iface bnep0 inet static
address 10.0.254.1
netmask 255.255.255.240
post-up iptables -t nat -A POSTROUTING -s 10.0.254.0/24 -j MASQUERADE
post-up iptables -A INPUT --in-interface bnep0 -j ACCEPT
post-up iptables -A FORWARD -i bnep0 -o eth1 -j ACCEPT
post-up iptables -A FORWARD -o bnep0 -i eth1 -j ACCEPT
pre-down /etc/init.d/dhcp3-server stop

iface ppp0 inet ppp
provider bite-tel-usb
post-up dcop kded networkstatus setNetworkStatus NMNetwork 1

iface ppp1 inet ppp
provider bite-tel-bt
post-up dcop kded networkstatus setNetworkStatus NMNetwork 1

iface ppp2 inet ppp
provider bite-express
post-up dcop kded networkstatus setNetworkStatus NMNetwork 1
==========================================

(is this a correct way to do things, by the way?)

when I try to bring the interface up I get:
dg@bala:~$ sudo ifup ppp1
ppp1: ERROR while getting interface flags: No such device
ERROR: Couldn't attach to DCOP server!
Failed to bring up ppp1.

and while in a few seconds I do get interface up (though by name ppp0)
dg@bala:~$ ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.40.225.232 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:58 (58.0 B) TX bytes:85 (85.0 B)

the network is still invisible to the kde apps, until I run
$ dcop kded networkstatus setNetworkStatus NMNetwork 1
manually.

Regarding the second problem: although knetworkmanager does switch the
connection icon to offline and the dialup options indicate the connection is
down (it reads "Connect to bite-tel-bt via modem", and not "Hangup
bite-tel-bt via modem") the connection does not go down...

by the way, the
ifdown ppp1
command does not work either. I have to do
$ sudo poff
for the interface to be brought down

below you will find my
/etc/ppp/peers/bite-tel-bt
and
/etc/chatscripts/bite_3G_wap
scripts.

The first problem is perhaps caused by my lack of knowledge... The second -
not so sure...


Donatas

========================================

/etc/ppp/peers/bite-tel-bt
==================================
debug 10
noauth
/dev/rfcomm0 230400
crtscts
holdoff 1
connect "/usr/sbin/chat -v -f /etc/chatscripts/bite_3G_wap"
asyncmap 00000000
user wap
password wap
usepeerdns
defaultroute
lcp-echo-interval 0
==================================

/etc/chatscripts/bite_3G_wap
==================================
ABORT "BUSY"
ABORT "NO CARRIER"
"" "at"
OK 'AT+CGDCONT=1,"IP","WAP"'
OK "atd *99#"
==================================

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 

Thread Tools




All times are GMT. The time now is 05:19 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org