94
•
Board Support Package (BSP)
Ethernet Interface Services
WAGO-I/O-SYSTEM
750
Linux Fieldbus Coupler
wagoset (start without network connection)
If the Bootp or DHCP server is supposed to be searched during runtime, it is
reasonable, in most cases, to start the kernel without Ethernet configuration.
Start wagoset using the option
-m none
.
Dynamic assignments via bootpc
In order to get an IP address and other relevant information from a Bootp
server via the network, also after the start of the Linux kernel, use the bootpc
program. You can find the program in the
/sbin
directory.
In order to make the use of the Bootp client easier, the /
sbin
directory also
provides a Linux script, that executes the call of the bootpc. In order to run the
script in the background, execute the following call:
bootpc-startup &
The Bootp client is started in the background and sends a Bootp request
approx. every two seconds. With a correct reply, the Ethernet interface is
parameterized automatically (IP address, netmask, gateway).
The program and the script are terminated as soon as a valid Bootp server has
sent a reply. The call can also be a part of the boot script
/etc/inittab
, of
course.
~ # wagoset -h
Usage: wagoset OPTION [VALUE] ...
WAGO ETHERNET BOOT CONFIGURATION.
OPTION:
-v, --view View Configuration
-m, --mode Ethernet Mode; VALUE: static, dhcp, bootp, none
-i, --ip Static IP; VALUE: x.x.x.x
-s, --subnet Subnet-Mask; VALUE: x.x.x.x
-g, --gateway Gateway IP; VALUE: x.x.x.x
-o, --hostname Hostname: VALUE [String hostname]
-h, --help Print this message.
Proprietary. Send bug reports to
~ # wagoset -m none
No ethernet at bootup: Configuration value saved!
IP_Mode is: none IP-Address configuration: 192.168.1.10
Subnet Mask configuartion: 255.255.255.0
Gateway IP configuartion: 192.168.1.1
Hostnameconfiguartion: WagoLFBC