5 - 8 VM600 networking manual MAVM600-NET/E
Edition 9 - February 2018
Adding a default gateway to a CPUM card
ETHERNET COMMUNICATIONS WITH A VM600 RACK
To get around this potential problem, a default gateway can be defined for a CPUM card.
NOTE: For proper operation, the IP addresses of the gateway and the CPUM must belong
to the same subnet. If this is not the case, the gateway cannot be accessed by the
CPUM.
In addition, the host computer and the gateway must also have IP addresses that are visible
to each other.
5.6 Adding a default gateway to a CPUM card
5.6.1 CPUM cards running firmware version 075 or later
For a CPUM card running firmware version 075 or later, the default gateway for a CPUM card
is defined and added using the sysinit file.
5.6.2 About the sysinit file
The sysinit file is a system initialisation file that contains commands to set up various
device drivers and services for the CPUM card.
To add a default gateway to a CPUM card, a command must be added to the
Configure TCP/IP section of the sysinit file, as shown in 5.6.2.1 Example sysinit file.
The path to the sysinit file is /etc/system/sysinit
5.6.2.1 Example sysinit file
The Configure TCP/IP section of an example sysinit file without a default gateway:
#--------------------------------
#
# Configure TCP/IP
startnet
The Configure TCP/IP section an example sysinit file with a default gateway:
#--------------------------------
#
# Configure TCP/IP
startnet
route add default 10.10.1.254
5.6.2.2 Description
To add a default gateway to a CPUM card, the route command is used. For example:
route add default 10.10.1.254
Where: