51
RSB-4221 User Manual
Chapter 4
LinuxBSP
Figure 4.6 IP Configuration
4.8.3.2
Configuration via console
As a choice, you can also do network configuration by console using telnet. Run the
following command on RSB-4221:
Get IP by DHCP:
If you want to reserve the setting after rebooting the device, set as below
Set static IP:
Stop the DHCP process
Set the static IP as below.
If you want to reserve the setting after rebooting the device, set as below
advantech# /etc/init.d/dhcpc eth0 start
advantech# /etc/init.d/dhcpc eth1 start
advantech# echo "/etc/init.d/dhcpc eth0 start" > /etc/adv.d/netcfg.eth0
advantech# echo "/etc/init.d/dhcpc eth1 start" > /etc/adv.d/netcfg.eth1
advantech# /etc/init.d/dhcpc eth0 stop
advantech# /etc/init.d/dhcpc eth1 stop
advantech# /sbin/ifconfig eth0 172.21.73.191 netmask 255.255.255.0
advantech# /sbin/route add default gw 172.21.73.253 eth0
advantech# echo 'nameserver 172.21.128.251' >> /etc/resolv.conf
advantech# /sbin/ifconfig eth1 192.168.3.102 netmask 255.255.255.0
advantech# /sbin/route add default gw … eth1
advantech# echo 'nameserver 172.21.128.251' >> /etc/resolv.conf
advantech# echo "/sbin/ifconfig eth0 172.21.73.191 netmask 255.255.255.0; /
sbin/route add default gw 172.21.73.253 eth0;echo 'nameserver 172.21.128.251'
> /etc/resolv.conf;" > /etc/adv.d/netcfg.eth0
advantech# echo "/sbin/ifconfig eth1 192.168.3.102 netmask 255.255.255.0; /
sbin/route add default gw ... eth1;echo 'nameserver 172.21.128.251' > /etc/
resolv.conf;" > /etc/adv.d/netcfg.eth1
Summary of Contents for RSB-4221
Page 6: ...RSB 4221 User Manual vi...
Page 10: ...RSB 4221 User Manual x...
Page 14: ...RSB 4221 User Manual 4...
Page 33: ...23 RSB 4221 User Manual Chapter 2 H W Installation 2 3 2 Board Dimension...
Page 48: ...RSB 4221 User Manual 38...