The current Pico-G1 system supports network connectivity only over wired Ethernet. Wi-Fi, USB networking, and other wireless options are not supported. The board communicates with the external network (router or switch) through the onboard Ethernet interface (eth0), which provides LAN access and internet connectivity.
Connect an Ethernet cable and log in to the Pico-G1 command line:
ifconfig -a
Expected output:
eth0 Link encap:Ethernet HWaddr 12:76:87:78:E4:F1
inet addr:192.168.49.243 Bcast:192.168.49.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3435 errors:1 dropped:103 overruns:0 frame:1
TX packets:4380 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:232241 (226.7 KiB) TX bytes:1022554 (998.5 KiB)
Interrupt:35 Memory:100d0000-100d017f
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Reading the output
- MAC address (HWaddr): 12:76:87:78:E4:F1
- IP address (Inet addr): 192.168.49.243
- Broadcast address (Bcast): 192.168.49.255
- Subnet mask (Mask): 255.255.255.0
Step 1: Assign the static IP manually.
ifconfig eth0 <ip-address> netmask <subnet-mask>
Expected output:
ftgmac030 100d0000.ethernet eth0: Link is Down
ftgmac030 100d0000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
Step 2: Configure the default gateway.
route add default gw <gateway-ip>
Step 3: Verify the configuration.
ifconfig -a
Expected output:
eth0 Link encap:Ethernet HWaddr BE:B9:44:92:69:7E
inet addr:192.168.49.151 Bcast:192.168.49.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:367 errors:0 dropped:54 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27282 (26.6 KiB) TX bytes:0 (0.0 B)
Interrupt:35 Memory:100d0000-100d017f
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:840 (840.0 B) TX bytes:840 (840.0 B)
This section uses ping for a simple connectivity test on Pico-G1.
ping
ping (Packet Internet Groper) is a tool for testing network reachability and response state. It is commonly used to determine whether hosts can reach each other and what the latency is.
It sends ICMP packets of a specified size (Echo Request) to the destination. If the destination is online and reachable, it returns the same packets (Echo Reply). Reachability and link quality are judged from whether a reply arrives and from the round-trip time (RTT).
If no reply arrives within the timeout, the request is considered timed out, which usually means the destination is unreachable or the network has a problem.
ping <gateway-ip>
If the gateway is reachable, the output looks like this:
PING 192.168.49.1 (192.168.49.1): 56 data bytes
64 bytes from 192.168.49.1: seq=0 ttl=255 time=2.370 ms
64 bytes from 192.168.49.1: seq=1 ttl=255 time=0.722 ms
64 bytes from 192.168.49.1: seq=2 ttl=255 time=0.776 ms
64 bytes from 192.168.49.1: seq=3 ttl=255 time=0.772 ms
64 bytes from 192.168.49.1: seq=4 ttl=255 time=0.686 ms
64 bytes from 192.168.49.1: seq=5 ttl=255 time=0.670 ms
64 bytes from 192.168.49.1: seq=6 ttl=255 time=0.660 ms
......
If the gateway cannot be pinged, the LAN connection is usually faulty. Possible causes include a wrong IP address, a mismatched subnet mask, a disconnected physical link (cable or switch port), or a malfunctioning network device. Pinging the gateway is therefore the basic first check for LAN connectivity.
ping 8.8.8.8 # public DNS server provided by Google
If it is reachable, the output looks like this:
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=1 ttl=103 time=169.530 ms
64 bytes from 8.8.8.8: seq=2 ttl=103 time=168.256 ms
64 bytes from 8.8.8.8: seq=3 ttl=103 time=168.688 ms
64 bytes from 8.8.8.8: seq=4 ttl=103 time=170.348 ms
64 bytes from 8.8.8.8: seq=5 ttl=103 time=173.833 ms
64 bytes from 8.8.8.8: seq=6 ttl=103 time=176.207 ms
64 bytes from 8.8.8.8: seq=7 ttl=103 time=167.836 ms
This confirms that Pico-G1 has internet access.