AM335X-PAC Series User Manual version 2.0.4 Page: 41
Copyright © 2021 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
2.5.
LAN1/LAN2 Network Configuration
After logging into the LinPAC AM335x PAC successfully, the user can use ‘
ifconfig
’ command to get
the IP address of LAN1/LAN2. The LAN 1/2 of factory setting use DHCP. If user would prefer to
setup the IP address for static mode, the following steps for reference:
Step 1: Using the Linux command ‘
vi
’ to modify the file ‘
/etc/network/interfaces
’.
Step 2:
Using the ‘
#
’ to mark the default configuration.
Remove the ‘
#
’ comment from each line in the static IP block and comment out the DHCP block by
adding ‘
#
’ to each entry. Entry the relevant IP, Netmask and Gateway details in the respective
Assign IP block entries. (Refer to the Figure 2.5-1)
Figure 2.5-1.
Network configuration
Step 3: Restart networking in LinPAC.
After user save the file and use ‘
reboot
’ command to reset the device or type the command
“
/etc/init.d/networking restart
", user can use the new network configuration on LinPAC AM335x
PAC.