NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

IP-address change. Static and persistent. From shell/SSH.

Solved!
Go to solution

How may I have a static and persistent IP-address change of a sbRIO-9627 from shell/SSH?

I have tested

 

ifconfig eth0 <IP address> netmask <subnet MASK> up

 

without success.

 

I am aware of other options:

  1. RAD Utility
  2. NI MAX
  3. Web Interface
0 Kudos
Message 1 of 3
(2,723 Views)
Solution
Accepted by topic author wittrup

Solution found:

 

nirtcfg --set section=ETH0,token=ip_address,value=192.168.1.5
/etc/init.d/networking restart

 

 

Message 2 of 3
(2,695 Views)

In addition to the 3 (4) methods you mention you can also have your RT-application do the change itself through the System Configuration API. We use this to have the system change its own configuration if the current one fails (from DHCP to a last known static IP for example).

0 Kudos
Message 3 of 3
(2,576 Views)