Main Content

Configure Ethernet Connection Manually on Mac

After running the Hardware Setup steps of the installer, if the radio is still not detected, you can attempt to configure the network interface manually via the Mac System Preferences or running commands in a terminal window.

Configure Ethernet Connection Via Mac System Preferences

  1. Click Network from System Preferences. From the left pane, select the network connection that is connected to the USRP™ radio. If your Mac has only one network interface card (NIC), see Using One Ethernet Port.

  2. The default IPV4 configuration is Using DHCP. The default IP address 169.254.142.233 is a private IP address automatically assigned by the operating system. For more information, see https://tools.ietf.org/html/rfc3927.

  3. Set Configure IPv4 to Manually. Set IP Address to 192.168.10.X, where X is any integer from 1 to 255 except 2, and Subnet Mask to 255.255.255.0. Click Apply.

    If your radio is on another subnet, meaning the first three octets of the IP address field are not 192.168.30, then enter the IP address values of your radio for the first three octets.

  4. The host computer configuration is complete. Continue to Verify Hardware Connection.

Configure Ethernet Connection Via Mac Terminal Window

Use these commands to determine the IP address of the radio. After determining the IP address for the radio, update the network interface IP address, and ping the radio to verify that the host-to-radio connection is working.

  1. View the list of network services, by entering this command at the Mac command prompt.

    $ networksetup -listallnetworkservices
    For the host computer used in this example, this is the output.
    An asterisk (*) denotes that a network service is disabled.
    Wi-Fi
    Ethernet
    AX88179 USB 3.0 to Gigabit Ethernet
    FireWire
    Bluetooth PAN
    Thunderbolt Bridge
    

  2. Determine which Ethernet adapter is used for the internet connection by pinging the IP address associated with each network service returned. When you identify the connection name of the network adapter connected to the Internet, avoid selecting that network adapter for the radio. For more information, see Using One Ethernet Port.

  3. For this example, the radio is attached to the AX88179 USB 3.0 to Gigabit Ethernet. Run this command to find the IP address and Ethernet address associated with AX88179 USB 3.0 to Gigabit Ethernet.

    $ networksetup -getinfo "AX88179 USB 3.0 to Gigabit Ethernet"
    DHCP Configuration
    IP address: 169.254.142.233
    Subnet mask: 255.255.0.0
    Router: (null)
    Client ID: 
    IPv6: Automatic
    IPv6 IP address: none
    IPv6 Router: none
    Ethernet Address: 8c:ae:4c:f4:f4:e5
    

  4. Run the ifconfig command, and find the network interface corresponding to the Ethernet address 8c:ae:4c:f4:f4:e5.

    $ ifconfig
    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    	options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>
    	inet 127.0.0.1 netmask 0xff000000 
    	inet6 ::1 prefixlen 128 
    	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
    	nd6 options=201<PERFORMNUD,DAD>
    gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
    stf0: flags=0<> mtu 1280
    en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    	options=10b<RXCSUM,TXCSUM,VLAN_HWTAGGING,AV>
    	ether 0c:4d:e9:b8:28:aa 
    	inet6 fe80::1431:de1f:143c:e8fe%en0 prefixlen 64 secured scopeid 0x4 
    	inet 172.21.152.123 netmask 0xffffff00 broadcast 172.21.152.255
    	nd6 options=201<PERFORMNUD,DAD>
    	media: autoselect (1000baseT <full-duplex,flow-control,energy-efficient-ethernet>)
    	status: active
    en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    	ether a8:8e:24:a2:10:6d 
    	inet6 fe80::140a:c54f:c99a:68a6%en1 prefixlen 64 secured scopeid 0x6 
    	inet 172.31.205.144 netmask 0xffffff00 broadcast 172.31.205.255
    	nd6 options=201<PERFORMNUD,DAD>
    	media: autoselect
    	status: active
    fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078
    	lladdr 28:0b:5c:ff:fe:15:fc:32 
    	nd6 options=201<PERFORMNUD,DAD>
    	media: autoselect <full-duplex>
    	status: inactive
    en2: flags=963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX> mtu 1500
    	options=60<TSO4,TSO6>
    	ether 32:00:11:5f:c3:20 
    	media: autoselect <full-duplex>
    	status: inactive
    p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304
    	ether 0a:8e:24:a2:10:6d 
    	media: autoselect
    	status: inactive
    awdl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1484
    	ether de:27:8b:39:9e:74 
    	inet6 fe80::dc27:8bff:fe39:9e74%awdl0 prefixlen 64 scopeid 0xa 
    	nd6 options=201<PERFORMNUD,DAD>
    	media: autoselect
    	status: active
    bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    	options=63<RXCSUM,TXCSUM,TSO4,TSO6>
    	ether 32:00:11:5f:c3:20 
    	Configuration:
    		id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
    		maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
    		root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
    		ipfilter disabled flags 0x2
    	member: en2 flags=3<LEARNING,DISCOVER>
    	        ifmaxaddr 0 port 8 priority 0 path cost 0
    	nd6 options=201<PERFORMNUD,DAD>
    	media: <unknown type>
    	status: inactive
    utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 2000
    	inet6 fe80::7e23:4719:93e:b73c%utun0 prefixlen 64 scopeid 0xc 
    	nd6 options=201<PERFORMNUD,DAD>
    en4: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    	options=b<RXCSUM,TXCSUM,VLAN_HWTAGGING>
    	ether 8c:ae:4c:f4:f4:e5 
    	inet6 fe80::1433:8cb7:fc90:4c37%en4 prefixlen 64 secured scopeid 0xd 
    	inet 169.254.142.233 netmask 0xffff0000 broadcast 169.254.255.255
    	nd6 options=201<PERFORMNUD,DAD>
    	media: autoselect (1000baseT <full-duplex,flow-control>)
    	status: active
    

    The output shows, you can see that en4 is the network interface corresponding to the Ethernet address 8c:ae:4c:f4:f4:e5, and its IP address is 169.254.142.233.

  5. Set the last two numbers of the IP address 169.254.142.233 to 255, and send a broadcast ping from en4. The output for this example shows a successful ping.

    $ ping -b en4 -c 5 169.254.255.255
    PING 169.254.255.255 (169.254.255.255): 56 data bytes
    64 bytes from 169.254.142.233: icmp_seq=0 ttl=255 time=0.137 ms
    64 bytes from 192.168.30.7: icmp_seq=0 ttl=32 time=1.268 ms
    64 bytes from 169.254.142.233: icmp_seq=1 ttl=255 time=0.292 ms
    64 bytes from 192.168.30.7: icmp_seq=1 ttl=32 time=1.488 ms
    64 bytes from 169.254.142.233: icmp_seq=2 ttl=255 time=0.273 ms
    64 bytes from 192.168.30.7: icmp_seq=2 ttl=32 time=1.422 ms
    64 bytes from 169.254.142.233: icmp_seq=3 ttl=255 time=0.261 ms
    64 bytes from 192.168.30.7: icmp_seq=3 ttl=32 time=1.322 ms
    64 bytes from 169.254.142.233: icmp_seq=4 ttl=255 time=0.225 ms
    
    --- 169.254.255.255 ping statistics ---
    5 packets transmitted, 5 packets received, +4 duplicates, 0.0% packet loss
    round-trip min/avg/max/stddev = 0.137/0.743/1.488/0.570 ms
    
    The broadcast ping return shows the IP address currently associated with en4 and the IP address associated with the radio.

  6. Based on the discovered radio IP address 192.168.30.7, assign an IP address to the network interface on the host computer from the same subnet, such as 192.168.30.1. Use a subnet mask of 255.255.255.0.

    $ sudo networksetup -setmanual "AX88179 USB 3.0 to Gigabit Ethernet" 192.168.30.1 255.255.255.0

Verify that the host computer can ping the IP address assigned to the radio.

$ ping -c 5 192.168.30.7
PING 192.168.30.7 (192.168.30.7): 56 data bytes
64 bytes from 192.168.30.7: icmp_seq=0 ttl=32 time=1.230 ms
64 bytes from 192.168.30.7: icmp_seq=1 ttl=32 time=1.388 ms
64 bytes from 192.168.30.7: icmp_seq=2 ttl=32 time=1.368 ms
64 bytes from 192.168.30.7: icmp_seq=3 ttl=32 time=1.450 ms
64 bytes from 192.168.30.7: icmp_seq=4 ttl=32 time=1.499 ms

--- 192.168.30.7 ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 1.230/1.387/1.499/0.091 ms

Related Topics