LaPastenague

Q: Terminal command to check Apple router status. natutil

There is a terminal command that allows you to see some details of what your Apple router is up to.. !!

 

It is not hugely useful.. very little of the info is absent from the airport utility but I did discover one interesting thing.

 

It is also returning some mixed up or wrong info.

 

The command is listed here.

 

https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/ man8/natutil.8.html

 

or in terminal type man natutil

 

It took me a bit to get output from it.

 

But this did work.

 

$ natutil -v -s

Searching for Internet Gateway Devices...

2 IGDs found

Getting IGD status...ok

WAN connection details:

Connection type: Ethernet

Link status: Up

Download bps: 10000000

Upload bps: 10000000

 

(this is the only really useful bit to me.. I can see with pppoe the link speed to the modem which is slow).

 

 

WAN IP connection details:

Connection type: IP_Routed

Connection status: Connected

IP address: 202.6x.xx.1xx

Uptime: 2025

RSIP Available: false

NAT Enabled: true

 

 

LAN DHCP configuration:

Configurable DHCP: true

Forwarding DHCP: false

Low IP: 10.0.1.2 (This info is wrong)

High IP: 10.0.1.200 (This info is wrong)

Netmask: 255.255.255.0

DNS domain: (unknown)

 

 

Getting IGD status...ok

WAN connection details:

Connection type: Ethernet

Link status: Down

Download bps: 0

Upload bps: 0

 

 

WAN IP connection details:

Connection type: IP_Bridged

Connection status: Disconnected

IP address: 192.168.2.109

Uptime: 336564

RSIP Available: false

NAT Enabled: false

 

 

LAN DHCP configuration:

Configurable DHCP: true

Forwarding DHCP: false

Low IP: 10.0.1.2 (This info is wrong)

High IP: 10.0.1.200 (This info is wrong)

Netmask: 255.255.255.0

DNS domain: (unknown)

 

The wrong info is interesting.. because it actually implies some of the things are hard coded and why people have issues.. maybe.

 

You can alter the output to get XML and you do get a tiny bit more info.

 

natutil -vx -s

Searching for Internet Gateway Devices...

2 IGDs found

Getting IGD status...ok

WAN connection details:

Connection type: Ethernet

Link status: Up

Download bps: 10000000

Upload bps: 10000000

 

 

WAN IP connection details:

Connection type: IP_Routed

Connection status: Connected

IP address: 202.xxx.xx.xxx

Uptime: 2404

RSIP Available: false

NAT Enabled: true

 

 

LAN DHCP configuration:

Configurable DHCP: true

Forwarding DHCP: false

Low IP: 10.0.1.2

High IP: 10.0.1.200

Netmask: 255.255.255.0

DNS domain: (unknown)

 

 

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

          <key>status</key>

          <dict>

                    <key>lan</key>

                    <dict>

                              <key>dhcpConfigurable</key>

                              <true/>

                              <key>dhcpForwarding</key>

                              <false/>

                              <key>ipRange</key>

                              <dict>

                                        <key>high</key>

                                        <string>10.0.1.200</string>

                                        <key>low</key>

                                        <string>10.0.1.2</string>

                              </dict>

                              <key>netMask</key>

                              <string>255.255.255.0</string>

                    </dict>

                    <key>ssid</key>

                    <string>TC24ghz</string>

                    <key>usb</key>

                    <dict>

                              <key>usbFlags</key>

                              <integer>1104</integer>

                    </dict>

                    <key>wan</key>

                    <dict>

                              <key>DNSServers</key>

                              <array>

                                        <string>203.24.100.125</string>

                                        <string>202.76.170.40</string>

                              </array>

                              <key>connection</key>

                              <string>Ethernet</string>

                              <key>domain</key>

                              <string></string>

                              <key>downSpeed</key>

                              <integer>10000000</integer>

                              <key>ipAddress</key>

                              <string>202.xx.xx.xx</string>

                              <key>ipConnection</key>

                              <string>IP_Routed</string>

                              <key>ipLink</key>

                              <string>Connected</string>

                              <key>link</key>

                              <string>Up</string>

                              <key>nat</key>

                              <true/>

                              <key>rsip</key>

                              <false/>

                              <key>upSpeed</key>

                              <integer>10000000</integer>

                              <key>uptime</key>

                              <integer>2404</integer>

                    </dict>

          </dict>

</dict>

</plist>

Getting IGD status...ok

WAN connection details:

Connection type: Ethernet

Link status: Down

Download bps: 0

Upload bps: 0

 

 

WAN IP connection details:

Connection type: IP_Bridged

Connection status: Disconnected

IP address: 192.168.2.109

Uptime: 336944

RSIP Available: false

NAT Enabled: false

 

 

LAN DHCP configuration:

Configurable DHCP: true

Forwarding DHCP: false

Low IP: 10.0.1.2

High IP: 10.0.1.200

Netmask: 255.255.255.0

DNS domain: (unknown)

 

 

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

          <key>status</key>

          <dict>

                    <key>lan</key>

                    <dict>

                              <key>dhcpConfigurable</key>

                              <true/>

                              <key>dhcpForwarding</key>

                              <false/>

                              <key>ipRange</key>

                              <dict>

                                        <key>high</key>

                                        <string>10.0.1.200</string>

                                        <key>low</key>

                                        <string>10.0.1.2</string>

                              </dict>

                              <key>netMask</key>

                              <string>255.255.255.0</string>

                    </dict>

                    <key>ssid</key>

                    <string>TC24ghz</string>

                    <key>usb</key>

                    <dict>

                              <key>usbFlags</key>

                              <integer>1104</integer>

                    </dict>

                    <key>wan</key>

                    <dict>

                              <key>DNSServers</key>

                              <array>

                                        <string>192.168.2.1</string>

                              </array>

                              <key>connection</key>

                              <string>Ethernet</string>

                              <key>domain</key>

                              <string></string>

                              <key>downSpeed</key>

                              <integer>0</integer>

                              <key>ipAddress</key>

                              <string>192.168.2.109</string>

                              <key>ipConnection</key>

                              <string>IP_Bridged</string>

                              <key>ipLink</key>

                              <string>Disconnected</string>

                              <key>link</key>

                              <string>Down</string>

                              <key>nat</key>

                              <false/>

                              <key>rsip</key>

                              <false/>

                              <key>upSpeed</key>

                              <integer>0</integer>

                              <key>uptime</key>

                              <integer>336944</integer>

                    </dict>

          </dict>

</dict>

</plist>

 

It seems to allow you to set ports to open or closed and to check port forwarding.. that could be useful.

 

I only post it as it seems no one has listed the info.

 

I am running standard Mountain Lion not server.

Mac mini, OS X Mountain Lion (10.8.5), 2011 base model

Posted on May 23, 2014 7:56 PM

Close

Q: Terminal command to check Apple router status. natutil

  • All replies
  • Helpful answers

  • by johan2y,

    johan2y johan2y May 24, 2014 7:21 PM in response to LaPastenague
    Level 1 (0 points)
    May 24, 2014 7:21 PM in response to LaPastenague

    Hello there LaPastenague,

     

    This is great news to me. Ive been struggling with a very slow transfer rate to and from my TC and support has been unable to assist.

     

    I did run your command and got only a shorter version of what you got but I am not sure what it really is telling me.

     

    Could I kindly ask you for a bit of assistance?

     

    Here is the return of my natutil command ( I did set it up to extend an existing network but it doesnt really care about that :-))

     

    Getting IGD status...ok

    WAN connection details:

    Connection type: Ethernet

    Link status: Down

    Download bps: 0

    Upload bps: 0

     

    WAN IP connection details:

    Connection type: IP_Bridged

    Connection status: Disconnected

    IP address: 192.168.0.197

    Uptime: 87580

    RSIP Available: false

    NAT Enabled: false

     

    LAN DHCP configuration:

    Configurable DHCP: true

    Forwarding DHCP: false

    Low IP: 10.0.1.2

    High IP: 10.0.1.200

    Netmask: 255.255.255.0

    DNS domain: (unknown)

  • by LaPastenague,

    LaPastenague LaPastenague May 24, 2014 9:23 PM in response to johan2y
    Level 9 (52,335 points)
    Wireless
    May 24, 2014 9:23 PM in response to johan2y

    Describe how it is configured.. is it in wireless join to network.. ??

     

    A full network description will help.

     

    If so it is getting 0 bps on both upload and download even if it has a network connection.. which it does.

     

    I would recommend you move it to the main router and plug in by ethernet.

     

    There is nothing else I can particularly see from this.

  • by johan2y,

    johan2y johan2y May 25, 2014 2:11 PM in response to LaPastenague
    Level 1 (0 points)
    May 25, 2014 2:11 PM in response to LaPastenague

    I have a D-link DWR-923 ROUTER transforming a 3G or 4G incoming signal from a mobile internet broadband provider.

     

    The DWR-923 is configured in DHCP and distributes the IPs for all computers. Whereas some of the computers have in the passed somtimes been static, they are not now.

     

    The TC is set to extend a network, of course the one of the router. At todays operation however, it was directly cabled to the DWR-923.

     

    Due to the poor performance of the TC, Its currently residing on its own with the router having only one computer, being my macbook Pro connected to it, and then through Wi-Fi.

     

    I said that the TC is set to extend but in reality I always get the feeling that its only joining.

     

    Does this infomormation suffice or is there any other info that could be useful to you?

     

    I truely appreciated your input.

     

    Thankx,

    Johan

  • by LaPastenague,

    LaPastenague LaPastenague May 25, 2014 2:27 PM in response to johan2y
    Level 9 (52,335 points)
    Wireless
    May 25, 2014 2:27 PM in response to johan2y

    I think you might have the TC setup wrongly.. Actually let me make that clear.. it is wrong.

     

    TC cannot extend the wireless.. nor should you join the wireless from dlink.

     

    1. Factory reset the TC.

     

    The Factory Reset universal

     

    Unplug your TC/AE. Hold in reset. and power the TC/AE back on..  all without releasing reset and keep holding in for about 10sec. The time is not important.. it is the front LED rapid flashing that indicates you are in factory mode.

    Release reset.

    If it doesn’t flash rapidly you have released reset at some point and try again.

    Be Gentle! Feel the switch click on. It has a positive feel..  add no more pressure after that.

    TC/AE will reboot after a couple of minutes with default factory settings and will wipe out previous configurations.

    No files are deleted on the hard disk.. No reset of the TC deletes files.. to do that you use erase from the airport utility.

     

    2. Configure the TC with airport utility.

    Plug WAN TC to LAN port dlink with ethernet cable.

     

    Setup the TC to bridge mode.

     

    bridgev6AU.png

     

    Set it to create a wireless network.. not extend or join. The name can either be identical to the Dlink wireless with same wireless security and password or different is up to you. For roaming you use same.. for two separate wireless networks that are connected use different.

     

    I strongly recommend all names comply to SMB rules.. ie short, no spaces and pure alphanumeric.

  • by johan2y,

    johan2y johan2y May 26, 2014 3:43 PM in response to LaPastenague
    Level 1 (0 points)
    May 26, 2014 3:43 PM in response to LaPastenague

    WOW,   thanks. !!