Quote:
Originally Posted by jschiwal
Could you provide a link to your modem and router model? I googled for Edge/Gprs and found different types of modems. One was wireless while another was a usb dongle.
This openSuSE wiki page may help with using YaST 2 to configure internet sharing: http://en.opensuse.org/ICS
|
My PC connected to Router using WIRE connection. I can enable/disable my LAN Card using
YAST > Network Settings
If I enable My Lan Card :
IC Plus IP100A Integrated 10/100 Ethernet MAC + PHY
linux-l86c:/home/sakib # ifconfig
eth1 Link encap:Ethernet HWaddr 00:27:19:B5:BD:92
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::227:19ff:feb5:bd92/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1276 (1.2 Kb) TX bytes:2369 (2.3 Kb)
Interrupt:19 Base address:0xef00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:481 errors:0 dropped:0 overruns:0 frame:0
TX packets:481 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:248986 (243.1 Kb) TX bytes:248986 (243.1 Kb)
Then I can ping my Router(
ping 192.168.1.1) & can also browse the Router Admin Page(
http://192.168.1.1/start.htm)
My Router Model :
Netgear 54 Mbps Wireless Router model WGR614 v6
Now I need to connect INTERNET using my EDGE/GPRS Modem
linux-l86c:/home/sakib # wvdial blink
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","blweb"
AT+CGDCONT=1,"IP","blweb"
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Mon May 17 16:33:43 2010
--> Pid of pppd: 3335
--> Using interface ppp0
--> local IP address 10.82.23.115
--> remote IP address 192.200.1.21
--> primary DNS address 203.223.92.100
--> secondary DNS address 203.223.93.100
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> warning, can't find address for `www.suse.de`
--> warning, address lookup does not work
--> Nameserver (DNS) failure, the connection may not work.
--> Connected... Press Ctrl-C to disconnect
It's connected but a WARNING showed! Now if I try to browse a page in Firefox, no response there!
This is
ifconfig result after connecting using Edge/Gprs Modem :
linux-l86c:/home/sakib # ifconfig
eth1 Link encap:Ethernet HWaddr 00:27:19:B5:BD:92
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::227:19ff:feb5:bd92/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:103 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1576 (1.5 Kb) TX bytes:8165 (7.9 Kb)
Interrupt:19 Base address:0xef00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:480 (480.0 b) TX bytes:480 (480.0 b)
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.82.23.115 P-t-P:192.200.1.21 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:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:64 (64.0 b) TX bytes:125 (125.0 b)
Now If I disable my LAN CARD using
YAST > Network Settings then try to reconnect my Edge/Gprs Modem :
linux-l86c:/home/sakib # wvdial blink
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","blweb"
AT+CGDCONT=1,"IP","blweb"
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Mon May 17 16:39:26 2010
--> Pid of pppd: 9244
--> Using interface ppp0
--> local IP address 10.80.66.122
--> remote IP address 192.200.1.21
--> primary DNS address 203.223.92.100
--> secondary DNS address 203.223.93.100
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> Nameserver (DNS) Ok.
--> Connected... Press Ctrl-C to disconnect
It's working, no warning showed! I can browse internet now!
My Edge/Gprs Modem Homepage :
http://www.sentarwireless.com/rdr/?l...=st860u_en.php
I installed this modem in my Opensuse 11.2 using this tutorial :
http://www.sentarwireless.com/rdr/?a...U&lang=english
I just need to edit 2 files :
/etc/wvdial.conf,
/etc/resolv.conf
linux-l86c:/home/sakib # vi /etc/wvdial.conf
[Modem0]
Modem = /dev/ttyACM0
Baud = 460800
Dial Command = ATDT
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
[Dialer blink]
Username = a
Password = b
Phone = *99***1#
Init3 = AT+CGDCONT=1,"IP","blweb"
Stupid Mode = 1
Inherits = Modem0
linux-l86c:/home/sakib # vi /etc/resolv.conf
nameserver 203.223.92.100
nameserver 203.223.93.100
My problem is Edge modem working perfectly if I disabled LAN CARD. I need to enable it to share internet connection with my other PC.