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

Login with username, password and session length
Advanced search  

News:

Author Topic: ZyXEL VMG 1312-B10A - IPv4 default gateway set in config XML  (Read 1857 times)

Weaver

  • Senior Kitizen
  • ******
  • Posts: 11459
  • Retd s/w dev; A&A; 4x7km ADSL2 lines; Firebrick
ZyXEL VMG 1312-B10A - IPv4 default gateway set in config XML
« on: August 08, 2018, 02:23:17 AM »

Is there a way that I can specify a default gateway in the XML config?
Logged

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: ZyXEL VMG 1312-B10A - IPv4 default gateway set in config XML
« Reply #1 on: August 08, 2018, 04:59:59 PM »

Is there a way that I can specify a default gateway in the XML config?

Hmm . . .

A "default gateway" to where? And what process would you expect to use that "default gateway"? To "The Internet"? To the VMG1312-B10A itself? Then there is the question of from where?

I'm probably a bit dim today (weather taking its toll), so could you rephrase the question, please.

Looking at the saved configuration file, from the VMG1312-B10A in The Cattery, which is configured in modem/router/WAP mode, I see the following --

Code: [Select]
[Duo2 ZyXEL_VMG1312-B10A]$ grep -i gateway config*txt
  <InternetGatewayDevice>
        <InterfaceReference>InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig.1</InterfaceReference>
        <InterfaceReference>InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig.2</InterfaceReference>
        <InterfaceReference>InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig.3</InterfaceReference>
        <InterfaceReference>InternetGatewayDevice.LANDevice.1.LANUSBInterfaceConfig.1</InterfaceReference>
        <InterfaceReference>InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.X_404A03_WlanAdapter.WlVirtIntfCfg.1</InterfaceReference>
        <InterfaceReference>InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.X_404A03_WlanAdapter.WlVirtIntfCfg.2</InterfaceReference>
        <InterfaceReference>InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.X_404A03_WlanAdapter.WlVirtIntfCfg.3</InterfaceReference>
        <InterfaceReference>InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.X_404A03_WlanAdapter.WlVirtIntfCfg.4</InterfaceReference>
        <InterfaceReference>InternetGatewayDevice.WANDevice.7.WANConnectionDevice.1.WANPPPConnection.1</InterfaceReference>
        <InterfaceReference>InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.X_404A03_WlanAdapter.WlVirtIntfCfg.1</InterfaceReference>
        <InterfaceReference>InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.X_404A03_WlanAdapter.WlVirtIntfCfg.2</InterfaceReference>
        <InterfaceReference>InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.X_404A03_WlanAdapter.WlVirtIntfCfg.3</InterfaceReference>
        <InterfaceReference>InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.X_404A03_WlanAdapter.WlVirtIntfCfg.4</InterfaceReference>
        <InterfaceReference>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1</InterfaceReference>
        <InterfaceReference>InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig.5</InterfaceReference>
          <X_404A03_GatewayUsed>TRUE</X_404A03_GatewayUsed>
      <DefaultConnectionService>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1</DefaultConnectionService>
  </InternetGatewayDevice>
[Duo2 ZyXEL_VMG1312-B10A]$

I doubt that the above is relevant.  :-\
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

Weaver

  • Senior Kitizen
  • ******
  • Posts: 11459
  • Retd s/w dev; A&A; 4x7km ADSL2 lines; Firebrick
Re: ZyXEL VMG 1312-B10A - IPv4 default gateway set in config XML
« Reply #2 on: August 09, 2018, 02:04:56 AM »

@Burakkucat, the default gateway setting to accompany the netmask value in the LAN IP setup, which would be the address of the firebrick as it is the gateway to the internet, set on those two-mode LANs as 192.168.n.254 whereas the modem's admin i/f is set to 192.168.n.1 (see FB config snippets poss). The modem does not know how to reach nodes outside the subnet defined by the netmask, which is set to be a /24 arbitrarily. I think that is the thing stopping eg DNS, NTP etc from working in the modem.
Logged

johnson

  • Reg Member
  • ***
  • Posts: 838
Re: ZyXEL VMG 1312-B10A - IPv4 default gateway set in config XML
« Reply #3 on: August 09, 2018, 02:20:29 AM »

Personally I cant really see a need for the modem to have internet connectivity. I guess NTP so the time is right, but what for? I've tried in the past to enable logging with little success and with my stats server (still beavering away at it little by little) I just calculate the different between the modems reported time and the browsers to get proper labels for data.
Logged

Weaver

  • Senior Kitizen
  • ******
  • Posts: 11459
  • Retd s/w dev; A&A; 4x7km ADSL2 lines; Firebrick
Re: ZyXEL VMG 1312-B10A - IPv4 default gateway set in config XML
« Reply #4 on: August 09, 2018, 02:35:53 AM »

johnson, is correct - it is not critical. I just felt an irrational need to 'do the right thing' if it was easy. DNS is more valuable. I can, and have lived without it having internet access.

It is just that if it is easy then I would do it.
Logged

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: ZyXEL VMG 1312-B10A - IPv4 default gateway set in config XML
« Reply #5 on: August 09, 2018, 04:38:27 PM »

Ah, I now see the question clearly and my answer is "I don't know".  :(
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

j0hn

  • Kitizen
  • ****
  • Posts: 4093
Re: ZyXEL VMG 1312-B10A - IPv4 default gateway set in config XML
« Reply #6 on: August 09, 2018, 06:53:04 PM »

It isn't supposed to have a default gateway.

You can set static routes to get NTP working. This fixes the times on the logs.

You can probably do the same for DNS, but the modem isn't supposed to be doing DNS.
Logged
Talktalk FTTP 550/75 - Speedtest - BQM