Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


dazz1

95 posts

Master Geek


#119350 29-May-2013 09:46
Send private message

Hi

I am configuring a headless remote server with a ZTE MF363 modem connected to the Telecom network.
The server is running Ubuntu 12.04.
I have done this before as described in the post: Configuring a MF626 T-Stick

This time, everything seems to work except that I can't ping anything.
I tried pinging google after running sudo wvdial from the CLI
$>ping 8.8.8.8
but didn't get a response.
Last time I fixed this by adding to /etc/ppp/options the following line:

replacedefaultroute

When that was done, everything worked but not this time. I don't have direct access to the 1st system, so I can't do a side-by-side comparison.

I think this is some problem with the ppp0 network configuration or file permissions rather than the modem config.

the wvdial file contains:
[code]
[Dialer Defaults]
Modem = /dev/ttyUSB2
Modem Type = Analog Modem
ISDN = 0
Baud = 460800
Dial Attempts = 3
Phone = *99#
Password = pass
Username = user
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = ATS7=60 S30=0 S0=0
Init4 = AT+CGDCONT=1,"IP","wap.telecom.co.nz"
Stupid Mode = 1
[/code]
This worked OK with the MF626 modem. wvdial doesn't throw up any error messages with the MF636

$>ifconfig
gives the following response (I have not included the eth0 and lo responses)

ppp0 Link encap:Point-to-Point Protocol
inet addr:10.219.126.218 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:147 errors:9 dropped:0 overruns:0 frame:0
TX packets:148 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:12197 (12.1 KB) TX bytes:10579 (10.5 KB)

The pppO appears to be working and packets are being Txd, Rxd OK

The output from syslog:
[code]
May 28 21:34:32 alpha pppd[4542]: pppd 2.4.5 started by root, uid 0
May 28 21:34:32 alpha pppd[4542]: Using interface ppp0
May 28 21:34:32 alpha pppd[4542]: Connect: ppp0 /dev/ttyUSB2
May 28 21:34:32 alpha pppd[4542]: CHAP authentication succeeded
May 28 21:34:32 alpha pppd[4542]: CHAP authentication succeeded
May 28 21:34:32 alpha ntpd[4500]: ntpd exiting on signal 15
May 28 21:34:34 alpha pppd[4542]: Could not determine remote IP address: defaulting to 10.64.64.64
May 28 21:34:34 alpha pppd[4542]: replacing old default route to eth0 [192.168.1.2]
May 28 21:34:34 alpha pppd[4542]: local IP address 10.218.181.52
May 28 21:34:34 alpha pppd[4542]: remote IP address 10.64.64.64
May 28 21:34:34 alpha pppd[4542]: primary DNS address 202.27.158.40
May 28 21:34:34 alpha pppd[4542]: secondary DNS address 202.27.156.72
May 28 21:35:12 alpha ntpdate[4607]: adjust time server 124.47.130.12 offset -0.290184 sec
May 28 21:35:12 alpha ntpd[4666]: ntpd 4.2.6p3@1.2290-o Tue Jun 5 20:12:11 UTC 2012 (1)
May 28 21:35:12 alpha ntpd[4667]: proto: precision = 0.980 usec
May 28 21:35:12 alpha ntpd[4667]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
May 28 21:35:12 alpha ntpd[4667]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
May 28 21:35:12 alpha ntpd[4667]: Listen and drop on 1 v6wildcard :: UDP 123
May 28 21:35:12 alpha ntpd[4667]: Listen normally on 2 lo 127.0.0.1 UDP 123
May 28 21:35:12 alpha ntpd[4667]: Listen normally on 3 eth0 192.168.1.96 UDP 123
May 28 21:35:12 alpha ntpd[4667]: Listen normally on 4 ppp0 10.218.181.52 UDP 123
May 28 21:35:12 alpha ntpd[4667]: Listen normally on 5 lo ::1 UDP 123
May 28 21:35:12 alpha ntpd[4667]: peers refreshed
May 28 21:35:12 alpha ntpd[4667]: Listening on routing socket on fd #22 for interface updates
[/code]
This appears to show that ppp0 connects normally and that the ntp client is then able to update the time. If so, then the server can see the internet.

The file /etc/networks/interfaces contains:


# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.96
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.2
# dns-* options are implemented by the resolvconf package, if installed
# Telecom DNS servers
dns-nameservers 202.27.158.40
dns-search home.org

# Telecom T-Stick network
auto ppp0
iface ppp0 inet wvdial


So this should auto start ppp0 after reboot and if it drops out.


Any pointers on where to look next would be appreciated.

Create new topic
gstarkey
78 posts

Master Geek


  #827564 29-May-2013 10:12
Send private message

It is not just Telcom blocking ping?
Try some other test, say a DNS lookup



dazz1

95 posts

Master Geek


  #827613 29-May-2013 11:29
Send private message

Hi

I don't know if Telecom blocks pings.

I have found a bug report that is consistent with my symptoms.
[url=https://bugs.launchpad.net/ubuntu/+source/ppp/+bug/608372]
I will try the fix tonight.

dazz1

95 posts

Master Geek


  #828147 30-May-2013 09:27
Send private message

Hi
The bug report identified the solution.

Adding the options

defaultroute
  replacedefaultroute


to the etc/ppp/options file fixed the problem.
These options change the default route so that ppp0 is the gateway to the internet while the ppp0 interface is open.
When ppp0 closes, the default route reverts to the eth0 interface.


Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.