1.
Open /etc/rc.d/rc.conf.
2.
Modify IPADDR0="xxx.xx.xx.xxx".
3.
Modify NETMASK0="xxx.xx.xx.xxx".
4.
#reboot
5.
Open /etc/rc.d/rc.local
6.
Add # to mark ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
Here is a real case for your reference.The hosts(UBC-200) IP is 172.17.21.97; the
target(A desktop computer) IP is 172.17.20.192:
#ifconfig eth0 172.17.21.97 up
#ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:04:9F:01:30:E0
inet addr:172.17.21.97 Bcast:172.17.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2851 errors:0 dropped:271 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:291407 (284.5 KiB) TX bytes:2000 (1.9 KiB)
The target computer(Client) IP address is 172.17.20.192, so we can use below com-
mand to see if we can get any response from the client
#ping 172.17.20.192
PING 172.17.20.192 (172.17.20.192): 56 data bytes
64 bytes from 172.17.20.192: seq=0 ttl=128 time=7.417 ms
64 bytes from 172.17.20.192: seq=1 ttl=128 time=0.203 ms
64 bytes from 172.17.20.192: seq=2 ttl=128 time=0.300 ms
‐‐‐ 172.17.20.192 ping statistics ‐‐‐
3 packets transmitted, 3 packets received, 0% packet loss
round‐trip min/avg/max = 0.203/2.640/7.417 ms
3.1.13
RS232 Test
#setserial ‐g /dev/ttymxc*
/dev/ttymxc0, UART: undefined, Port: 0x0000, IRQ: 58
/dev/ttymxc1, UART: undefined, Port: 0x0000, IRQ: 59
/dev/ttymxc2, UART: undefined, Port: 0x0000, IRQ: 60
/dev/ttymxc3, UART: undefined, Port: 0x0000, IRQ: 61
/dev/ttymxc4, UART: undefined, Port: 0x0000, IRQ: 62
3.1.13.1
ttymxc1 Testing
#stty ‐F /dev/ttymxc1 ‐echo
#cat /dev/ttymxc1 &
#echo Hello > /dev/ttymxc1
ROM-3420 User Manual
18