TCPIP setup for Linux

classic Classic list List threaded Threaded
137 messages Options
1234 ... 7
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

TCPIP setup for Linux

Hercules390 - General mailing list
I have Hercules running under OPENSUSE linux and I followed the install guide for setting
 up TCPIP connectivity.
 When Hercules is started the following errors are issued:
 

 00:49:57 HHCIF005E hercifc: ioctl error doing TUNSETIFF on ?: 1 Operation not permitted
 00:50:02 HHCTU001E hercifc timeout, possible older version?
 00:50:02 HHCTU003E Error setting TUN/TAP mode: /dev/net/tun: Operation not permitted
 
 00:50:02 HHCCF044E Initialization failed for device 0E21
 

 Looks like an authorization issue.
 What have I missed ?
 

 Thanks....Dani
 

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
Start it as root.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
You mean start Hercules as root ?  I'll try that. Thanks.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
When I start Hercules as ROOT there is a different error issued now:

HHCIF005E hercifc: ioctl error doing SIOCDIFADDR on tun0: 25 Inappropriate
ioctl for device

In the CNF file I have the following line:

0E20.2   CTCI 192.168.1.123 192.168.1.124

Is this correct ?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list


On 2/10/2017 5:42 AM, [hidden email] [hercules-390] wrote:
>
>
> Start it as root.

Or ensure hercifc is setuid root.

--Ivan


[Non-text portions of this message have been removed]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
I noticed the following messages in the Hercules log file:

13:23:57 HHCCT073I 0E20: TUN device tun0 opened

13:23:57 HHCIF005E hercifc: ioctl error doing SIOCDIFADDR on tun0: 25
Inappropriate ioctl for device

other than that, TCPIP starts up without errors but I am unable to connect
to z/Os from other machines on the network.

I followed all the instructions in http://www.hercules-390.eu/herctcp.html
so not sure what to do next.

Thanks....Dani
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
Hi Dany,
 

 > other than that, TCPIP starts up without errors but I am unable to connect to z/Os
 > from other machines on the network.

 

 Can you ping the host from z/OS?
 

 JLN
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
I can only ping the internal CTC address 192.168.1.123 from z/os.

Unable to ping the real ethernet adapter address which is 192.168.1.23

IFCONFIG output:

inux-thii:~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 74:D4:35:92:91:5E
         inet addr:192.168.1.23  Bcast:192.168.1.255  Mask:255.255.255.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:115763 errors:0 dropped:0 overruns:0 frame:0
         TX packets:67297 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:25001710 (23.8 Mb)  TX bytes:9107410 (8.6 Mb)

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         UP LOOPBACK RUNNING  MTU:65536  Metric:1
         RX packets:131438 errors:0 dropped:0 overruns:0 frame:0
         TX packets:131438 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1
         RX bytes:26633722 (25.3 Mb)  TX bytes:26633722 (25.3 Mb)

tun0      Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
         inet addr:192.168.1.124  P-t-P:192.168.1.123  Mask:255.255.255.255
         UP POINTOPOINT RUNNING  MTU:1500  Metric:1
         RX packets:6 errors:0 dropped:0 overruns:0 frame:0
         TX packets:180 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:500
         RX bytes:792 (792.0 b)  TX bytes:31048 (30.3 Kb)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
I have to add a default route on my S390 Linux to access the outside world.
 
regards;

Rahim Azizarab
   

  

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
It is questionable or at least that is not what mine looked like.  I followed the example on Hercules web page, and just had to add a default route to get things working. 
regards;

Rahim Azizarab
 

  

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
Hi Dany,
 

 > I can only ping the internal CTC address 192.168.1.123 from z/os.
 

 Is z/OS's TCP/IP properly configured?

 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
I tried to follow the instructions:

DEVICE CTCDEV1 CTC E20
LINK CTCLINK1 CTC 0 CTCDEV1
HOME 192.168.1.123 CTCLINK1
GATEWAY
192.168.1.124  =             CTCLINK1  1500   HOST
DEFAULTNET     192.168.1.124 CTCLINK1  1500   0
START CTCDEV1
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
Hi Dan,
 

 OK.
 From the Linux side, same machine, could you try to ping:
 192.168.1.124 and then 192.168.1.123
 

 

 

 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
From Linux I can ping  192.168.1.124 but not 192.168.1.123
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
Hi Dan,
 

 Did you run hlq=tcpip?
 

 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
If you didn't run it, don't!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
HLQ of what?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
makesite hlq=tcpip
 as command into z/OS to generate a binary file of the configurations.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
No  I didn't do that.   Not familiar.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TCPIP setup for Linux

Hercules390 - General mailing list
In reply to this post by Hercules390 - General mailing list
I'm not running S390-Linux so not sure the setup is the same.
1234 ... 7
Loading...