This section lists the CLI configuration steps for IN-OUT Mode Configuration for Raw Socket connection.
Type the following:
iS5comm# configure terminal
iS5comm(config)# interface vlan 1
iS5comm(config-if)# no shutdown
iS5comm(config-if)# ip address 192.168.0.40 255.255.255.0
iS5comm (config-if)# end
iS5comm# configure terminal
iS5comm(config)# interface serial 0/9
iS5comm(config-serial-if)# baud-rate 115200
iS5comm (config-serial-if)# no shutdown
iS5comm (config-serial-if)# end
Perform configurations and tests from the Server Configuration - refer to the section Raw Socket Server Mode Configuration.All tests should give the same results.
iS5comm # configure terminal
iS5comm(config)# serial connection-type raw profile PROF_9_IN_OUT
iS5comm(raw-PROF_9_IN_OUT)# transport protocol tcp
iS5comm(raw-PROF_9_IN_OUT-TCP)# direction in-out
No need to configure VLAN1 and serial interface baud rate again.
Don’t delete the profile at the end of server testing.
Perform configurations and tests from the Client Configuration - refer to the section Raw Socket Client Mode Configuration. All tests should give the same results.
iS5comm # configure terminal
iS5comm(config)# serial connection-type raw profile PROF_9_IN_OUT
iS5comm(raw-PROF_9_IN_OUT)# transport protocol tcp
iS5comm(raw-PROF_9_IN_OUT-TCP)# direction in-out
No need to configure VLAN1 and serial interface baud rate again.
Don’t delete the profile at the end of server testing