Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1] 2

Author Topic: VMG1312-B10A Question  (Read 1297 times)

banger

  • Reg Member
  • ***
  • Posts: 532
  • Uno comms 80/20
VMG1312-B10A Question
« on: July 11, 2017, 09:42:39 PM »

There does not seem to be a way to set system time on this router when in bridge mode. Is there a way to get into the root shell and issue date command that way as ntp cannot connect in bridge mode?
Logged
Tim
www.uno.net.uk & freenetname
Asus DSL-N55U and ZyXEL VMG1312-B10A Bridge on 80 Meg TTB Fibre

https://www.thinkbroadband.com/speedtest/1502566996147131655

banger

  • Reg Member
  • ***
  • Posts: 532
  • Uno comms 80/20
Re: VMG1312-B10A Question
« Reply #1 on: July 11, 2017, 10:39:19 PM »

After searching the site I found http://forum.kitz.co.uk/index.php/topic,19186.0.html and it has the very useful supervisor password so I have written a script to update time/date from the supervisor shell. Should have just searched the site in the first place.

Took me a while to work out the time and date format to set it.
Logged
Tim
www.uno.net.uk & freenetname
Asus DSL-N55U and ZyXEL VMG1312-B10A Bridge on 80 Meg TTB Fibre

https://www.thinkbroadband.com/speedtest/1502566996147131655

kitzuser87430

  • Reg Member
  • ***
  • Posts: 395
Re: VMG1312-B10A Question
« Reply #2 on: July 12, 2017, 03:00:43 PM »

Quote
Took me a while to work out the time and date format to set it.

Any chance of a little more info please  ;D
Logged

banger

  • Reg Member
  • ***
  • Posts: 532
  • Uno comms 80/20
Re: VMG1312-B10A Question
« Reply #3 on: July 12, 2017, 03:41:07 PM »

Code: [Select]
set oShell = CreateObject("WScript.Shell")
oShell.run("Telnet")
WScript.Sleep 1000
oShell.SendKeys("Open 192.168.2.10 ")
WScript.Sleep 1000
oShell.SendKeys("{Enter}")
WScript.Sleep 1000
oShell.SendKeys"supervisor"
WScript.Sleep 1000
oShell.SendKeys("{Enter}")
WScript.Sleep 1000
oShell.SendKeys("zyad1234")
WScript.Sleep 1000
oShell.SendKeys("{Enter}")
WScript.Sleep 1000
oShell.SendKeys("sh")
WScript.Sleep 1000
oShell.SendKeys("{Enter}")
WScript.Sleep 1000
oShell.SendKeys("date 201707112332")
WScript.Sleep 1000
oShell.SendKeys("{Enter}")
WScript.Sleep 1000
oShell.SendKeys("exit")
WScript.Sleep 1000
oShell.SendKeys("{Enter}")
WScript.Sleep 1000
oShell.SendKeys("{Enter}")
WScript.Sleep 1000
oShell.SendKeys("quit")
WScript.Sleep 1000
oShell.SendKeys("{Enter}")
WScript.Sleep 1000
oShell.SendKeys("{Enter}")
WScript.Sleep 1000
oShell.SendKeys("quit")
WScript.Sleep 1000
oShell.SendKeys("{Enter}")

Above is a script to set the date and time on a Win 10 machine if you can follow scripts you know what it does. Time format is in yyyymmddhhmmss.  I contacted ZyXEL support and they asked me why I needed the time to be correct in bridge mode. Haha, I suppose they are right only thing is log entries are incorrect time.

Any more info give me a yell?
Logged
Tim
www.uno.net.uk & freenetname
Asus DSL-N55U and ZyXEL VMG1312-B10A Bridge on 80 Meg TTB Fibre

https://www.thinkbroadband.com/speedtest/1502566996147131655

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 1867
Re: VMG1312-B10A Question
« Reply #4 on: July 12, 2017, 08:52:32 PM »

Not to be rude but do we really need a new thread for each issue you have? Can't you keep it all in one thread?
Logged

kitzuser87430

  • Reg Member
  • ***
  • Posts: 395
Re: VMG1312-B10A Question
« Reply #5 on: July 12, 2017, 09:48:06 PM »

Cheers....
Quote
date 201707112332
with a preceding "sh"

Ian
Logged

banger

  • Reg Member
  • ***
  • Posts: 532
  • Uno comms 80/20
Re: VMG1312-B10A Question
« Reply #6 on: July 12, 2017, 09:49:27 PM »

Yes to get into the supervisor shell. :)
Logged
Tim
www.uno.net.uk & freenetname
Asus DSL-N55U and ZyXEL VMG1312-B10A Bridge on 80 Meg TTB Fibre

https://www.thinkbroadband.com/speedtest/1502566996147131655

jelv

  • Helpful
  • Reg Member
  • *
  • Posts: 598
Re: VMG1312-B10A Question
« Reply #7 on: July 13, 2017, 08:20:09 AM »

Not to be rude but do we really need a new thread for each issue you have? Can't you keep it all in one thread?

I didn't have a scooby about this issue but could make some comment about IPv6. If the topics had been combined and this had been the first issue raised in the topic I likely would have ignored new posts in the topic about IPv6 assuming they were still about time and bridge mode. So there is a point in raising a separate topic for each issue - unless ALL the issues to be discussed in the topic are in the initial post.
Logged
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Rick Cook, The Wizardry Compiled

banger

  • Reg Member
  • ***
  • Posts: 532
  • Uno comms 80/20
Re: VMG1312-B10A Question
« Reply #8 on: July 13, 2017, 07:46:06 PM »

ZyXEL support came back with this answer but it doesnt seem to work!

did you tried already putting a IP address instead of DNS name for NTP?
Like:
Name: 0.pool.ntp.org
Addresses: 5.189.146.13
80.190.97.205
185.183.156.211
213.95.200.109
Logged
Tim
www.uno.net.uk & freenetname
Asus DSL-N55U and ZyXEL VMG1312-B10A Bridge on 80 Meg TTB Fibre

https://www.thinkbroadband.com/speedtest/1502566996147131655

22over7

  • Member
  • **
  • Posts: 36
Re: VMG1312-B10A Question
« Reply #9 on: October 15, 2017, 03:43:59 PM »

This is a sort of third-world issue, of little importance.  I'm just curious.

In my VMG1312-B10A, bridged with access to stats over
a second wire, ps shows the line:
Code: [Select]
sntp -s pool.ntp.org -s time.nist.gov -s ntp1.tummy.com -t CET-1
As far as I can see, there is no dns defined or available, so no time
synchronisation will ever happen.  However, ssh'd into the modem, I can ping
things on my lan, like the router, that I thought was the LAN's gateway to the
internet.

So is there not some simple way to explain to the bridged modem that
IP addresses in the public internet will be dealt with via the
non-pppoe wire to the router (and btw DNS is at 8.8.8.8)?

If the question is stupid, forgive me.  I'm an ignoramus.






Logged

smf22

  • Member
  • **
  • Posts: 43
Re: VMG1312-B10A Question
« Reply #10 on: October 15, 2017, 05:02:10 PM »

If it's a stupid question then it's one I also asked and played around with until I got a working solution, albeit on a ZyXel 8924-B10A. I don't know how things differ in the VMG1312-B10A, but I would think the approach could be the same.

On my modem I couldn't see any way to add a DNS server so I took the approach of configuring the IP address of the NTP servers rather than their names. So in my case I see this:

Code: [Select]
~ # ps | grep ntp
18807 supervis  1412 S    sntp -s 87.124.126.49 -s 193.150.34.2 -s 178.79.152.182 -t GMT0BST,M3.5.0/1:0,M10.5.0/1:0

For the modem to get to the Internet and the NTP servers it obviously needs appropriate routes added. I wanted to use a default route (0.0.0.0/0) but got the error 'Destination address is invalid IPv4 address' so in the end I simply added specific routes for each of the NTP servers:

Code: [Select]
~ # ip route show
178.79.152.182 via 192.168.1.1 dev br0
87.124.126.49 via 192.168.1.1 dev br0
193.150.34.2 via 192.168.1.1 dev br0
[snip]

The interface name that each route uses is that which you use to reach the LAN.

Whilst this works and the time is correct, the timezone is still showing UTC rather than the GMT/BST as specified. Presumably this will adjust for daylight savings, but I'll find out for sure in a couple of weeks.

Screen shots of the NTP and routing configuration are attached, although they may be different on your modem.
Logged
BT FTTC 80/20 Huawei Cab - Zyxel VMG8924-B10A bridge mode + Ubiquiti EdgeRouter X - smf22 on MDWS via DSLstats

banger

  • Reg Member
  • ***
  • Posts: 532
  • Uno comms 80/20
Re: VMG1312-B10A Question
« Reply #11 on: October 15, 2017, 07:08:05 PM »

Thanks for that explanation and pics smf22 trying this now on my VMG1312-B10A.

Hmm trying to PING the NTP server doesn't seem to work and using NSLOOKUP gives

Server:    localhost
Address 1: 127.0.0.1 localhost

Name:      178.79.152.182
Address 1: 178.79.152.182
----NsLookup end----
« Last Edit: October 15, 2017, 07:35:00 PM by banger »
Logged
Tim
www.uno.net.uk & freenetname
Asus DSL-N55U and ZyXEL VMG1312-B10A Bridge on 80 Meg TTB Fibre

https://www.thinkbroadband.com/speedtest/1502566996147131655

j0hn

  • Kitizen
  • ****
  • Posts: 1043
Re: VMG1312-B10A Question
« Reply #12 on: October 15, 2017, 08:28:19 PM »

Is smf22 using bridge mode though? That's where the problem lies.
Logged
BT FTTC 55/10 ECI Huawei Cab - Zyxel VMG1312-B10A bridge mode + Asus RT-AC68U running Asuswrt-Merlin - minted on MDWS via DslStats

banger

  • Reg Member
  • ***
  • Posts: 532
  • Uno comms 80/20
Re: VMG1312-B10A Question
« Reply #13 on: October 15, 2017, 08:58:19 PM »

Good question John, I even added a DNS entry for 192.168.1.1 for my gateway but NSLookup still says the same as above.
Logged
Tim
www.uno.net.uk & freenetname
Asus DSL-N55U and ZyXEL VMG1312-B10A Bridge on 80 Meg TTB Fibre

https://www.thinkbroadband.com/speedtest/1502566996147131655

smf22

  • Member
  • **
  • Posts: 43
Re: VMG1312-B10A Question
« Reply #14 on: October 16, 2017, 09:17:47 AM »

Is smf22 using bridge mode though? That's where the problem lies.

Yes I am using bridge mode. And your question has prompted me to include a signature with my setup. Hope you don't mind me stealing yours  ;)

@banger: Where you're going wrong is expecting the modem to be able to resolve the NTP server IP address. As I mentioned, I couldn't find anywhere that would allow me to add a DNS server to the ZyXel configuration, so as I saw it there were two options:

- Configure the NTP server IP address in the ZyXel 'Time' settings so there is no DNS lookup
- Add the NTP server name and IP address to the /etc/hosts file so the IP is locally resolved

I chose the first option and hence the three IP addresses, 87.124.126.49, 193.150.34.2 and 178.79.152.182, seen in the 'ps' output and in the modem configuration picture. This is the main difference to the configuration where the NTP server is defined as a name e.g., pool.ntp.org, time.nist.gov and ntp1.tummy.com as seen in the 'ps' output that 22over7 included here.

But there's one crucial step I omitted from my previous post. As @banger said he couldn't ping the NTP server I thought I'd capture this to include in the post. When I did this I found the following:

Code: [Select]
~ # ping 193.150.34.2
PING 193.150.34.2 (193.150.34.2): 56 data bytes
Request timed out
Request timed out
Request timed out
Request timed out

--- 193.150.34.2 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss

Running a packet capture on my router I could see the ping 'echo request' being sent by the ZyXel and the 'echo reply' from the NTP server.

Code: [Select]
smf22@erx1:~$ sudo tcpdump -n -i switch0.101 host 192.168.1.250 and icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on switch0.101, link-type EN10MB (Ethernet), capture size 262144 bytes
08:21:31.450801 IP 192.168.1.250 > 193.150.34.2: ICMP echo request, id 22173, seq 0, length 64
08:21:31.459912 IP 193.150.34.2 > 192.168.1.250: ICMP echo reply, id 22173, seq 0, length 64
08:21:32.450075 IP 192.168.1.250 > 193.150.34.2: ICMP echo request, id 22173, seq 1, length 64
08:21:32.459362 IP 193.150.34.2 > 192.168.1.250: ICMP echo reply, id 22173, seq 1, length 64
08:21:33.449793 IP 192.168.1.250 > 193.150.34.2: ICMP echo request, id 22173, seq 2, length 64
08:21:33.459116 IP 193.150.34.2 > 192.168.1.250: ICMP echo reply, id 22173, seq 2, length 64
08:21:34.449449 IP 192.168.1.250 > 193.150.34.2: ICMP echo request, id 22173, seq 3, length 64
08:21:34.458591 IP 193.150.34.2 > 192.168.1.250: ICMP echo reply, id 22173, seq 3, length 64

This was when I remembered that I'd previously disabled the firewall on the ZyXel. This shouldn't be done if using the device as a router, but it's fine in bridge mode where the LAN interface is behind a firewall. Oddly enough when I checked this I found the firewall disabled just as I'd left it. On the off chance I re-enabled and disabled it and then found that ping worked again:

Code: [Select]
~ # ping 193.150.34.2
PING 193.150.34.2 (193.150.34.2): 56 data bytes
64 bytes from 193.150.34.2: seq=0 ttl=54 time=9.723 ms
64 bytes from 193.150.34.2: seq=1 ttl=54 time=9.505 ms
64 bytes from 193.150.34.2: seq=2 ttl=54 time=10.004 ms
64 bytes from 193.150.34.2: seq=3 ttl=54 time=9.750 ms

--- 193.150.34.2 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 9.505/9.745/10.004 ms

And if I run another packet capture on my router I also see NTP packets between the ZyXel and the configured NTP servers:

Code: [Select]
smf22@erx1:~$ sudo tcpdump -n -i switch0.101 host 192.168.1.250 and udp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on switch0.101, link-type EN10MB (Ethernet), capture size 262144 bytes
08:23:09.831705 IP 192.168.1.250.39521 > 87.124.126.49.123: NTPv3, Client, length 48
08:23:09.851436 IP 87.124.126.49.123 > 192.168.1.250.39521: NTPv3, Server, length 48
08:23:10.837461 IP 192.168.1.250.45917 > 193.150.34.2.123: NTPv3, Client, length 48
08:23:10.847203 IP 193.150.34.2.123 > 192.168.1.250.45917: NTPv3, Server, length 48
08:23:11.839234 IP 192.168.1.250.40163 > 178.79.152.182.123: NTPv3, Client, length 48
08:23:11.848962 IP 178.79.152.182.123 > 192.168.1.250.40163: NTPv3, Server, length 48
08:23:27.838023 IP 192.168.1.250.53311 > 87.124.126.49.123: NTPv3, Client, length 48
08:23:27.857350 IP 87.124.126.49.123 > 192.168.1.250.53311: NTPv3, Server, length 48

So in summary:

- In the ZyXel 'Time' configuration, instead of using the NTP servers listed in the 'drop down', select 'Other' and configure the IP address of your chosen NTP servers.
- In the 'routing' configuration define a static route for each of your chosen NTP server IP addresses.
- Disable the IPv4 firewall

So things do work as I (eventually) described, but given what I found this morning, it does appear to stop working after a period. Another something to keep an eye on.
Logged
BT FTTC 80/20 Huawei Cab - Zyxel VMG8924-B10A bridge mode + Ubiquiti EdgeRouter X - smf22 on MDWS via DSLstats
Pages: [1] 2