How to change network settings of a B&R X20 via telnet
You can reconfigure the network settings like default gateway and ip address of an B&R X20 Coppler directly via telnet.
Configuring an IP address
The required function code is fc6 followed by the address position and new value, for example: fc6 0x1005 123
sets the 123
in 192.168.123.77
sebastiankoch@~$telnet 192.168.97.77 Trying 192.168.97.77... Connected to 192.168.97.77. Escape character is '^]'. Telnet Monitor (Press Ctrl-C or type 'quit' to quit) : unknown command ! help fcX YYYY ZZZZ ... X = function code, Y = address, Z = data flash store ... store config to flash (same as fc6 0x1140 0xc1) flash erase ... restore default config (same as fc6 0x1142 0xc1 modules ... get number of IO modules (same as fc3 0x1100) restart ... restart with flash parameters (same as fc6 0x1143 0xc0) quit/end/exit ... quit telnet session ---- end of help ---- fc6 0x1003 192 value: 192 (0x00C0) fc6 0x1004 168 value: 168 (0x00A8) fc6 0x1005 0 value: 0 (0x0000) fc6 0x1006 77 value: 77 (0x004D) flash store value: 193 (0x00C1) restart Closing Connection !
Configuring a Subnet Netmask
Subnet configuration is similar to the setting of the ip address, use function code fc6
for each portion of the subnet mask, see below.
sebastiankoch@~$telnet 192.168.97.77 Trying 192.168.97.77... Connected to 192.168.97.77. Escape character is '^]'. Telnet Monitor (Press Ctrl-C or type 'quit' to quit) : fc6 0x1007 255 value: 255 (0x00FF) fc6 0x1008 255 value: 255 (0x00FF) fc6 0x1009 255 value: 255 (0x00FF) fc6 0x100A 0 value: 0 (0x0000) fc6 0x100A 192 value: 192 (0x00C0) flash store value: 193 (0x00C1) restart Closing Connection !
Configuring a Default Gateway
sebastiankoch@~$telnet 192.168.97.77 Trying 192.168.97.77... Connected to 192.168.97.77. Escape character is '^]'. Telnet Monitor (Press Ctrl-C or type 'quit' to quit) : fc6 0x100B 10 value: 10 (0x000A) fc6 0x100C 59 value: 59 (0x003B) fc6 0x100D 14 value: 14 (0x000E) fc6 0x100E 65 value: 65 (0x0041) flash store value: 193 (0x00C1) restart Closing Connection !
Related articles