Announcement

Collapse
No announcement yet.

How to read IP address in DHCP mode

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to read IP address in DHCP mode

    Hi,

    I configured the Matchport to use DHCP.
    But I can't read the IP address which the device got from
    the DHCP server.

    This is the config I read fom the device. DHCP is enabled but IP address
    reads "<None>".
    There must be a way, the Lantronix configuration page shows me
    the correct IP address.
    But how to read it?

    Code:
    <configgroup name="interface" instance="eth0">
    <configitem name="bootp">
    <!--  Default: disable  -->
    <!--  enable, disable  -->
    <value>disable</value>
    </configitem>
    <configitem name="dhcp">
    <!--  Default: enable  -->
    <!--  enable, disable  -->
    <value>enable</value>
    </configitem>
    <configitem name="ip address">
    <!--
     Accepts an IP address and mask as either: (1) IP address only (192.168.1.1) gets a default mask, (2) CIDR (192.168.1.1/24), or (3) Explicit mask (192.168.1.1 255.255.255.0). 
    -->
    <!--  <None>), ...  -->
    <value><None></value>
    </configitem>
    <configitem name="default gateway">
    <!--
     Accepts in IP address in dotted notation, like 192.168.1.1. 
    -->
    <!--  <None>), ...  -->
    <value><None></value>
    </configitem>
    <configitem name="hostname">
    <!--   -->
    <!--   -->
    <value/>
    </configitem>
    <configitem name="domain">
    <!--   -->
    <!--   -->
    <value/>
    </configitem>
    <configitem name="dhcp client id">
    <!--   -->
    <!--   -->
    <value/>
    </configitem>
    <configitem name="primary dns">
    <!--
     Accepts in IP address in dotted notation, like 192.168.1.1. 
    -->
    <!--  <None>), ...  -->
    <value><None></value>
    </configitem>
    <configitem name="secondary dns">
    <!--
     Accepts in IP address in dotted notation, like 192.168.1.1. 
    -->
    <!--  <None>), ...  -->
    <value><None></value>
    </configitem>
    <configitem name="mtu">
    <!--  Default: 1500 bytes  -->
    <!--   -->
    <value>1500 bytes</value>
    </configitem>
    </configgroup>
    Any help is appreciated.

    Michael

  • #2
    Reading the current IP address

    Your current IP address is found in the XML status, not the configuration, since it's dynamically assigned by DHCP.

    Comment


    • #3
      Yes, of course...

      Thank you!

      Comment

      Working...
      X