LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2012, 08:36 PM   #1
Mike1morris
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Rep: Reputation: Disabled
Question 1 segment, 2 ips , 1gateway, no connection


I have 1 segment, on which I am trying to set up oracle rac. On this segment, I have two public ip's, which both need to be activated on this one segment for my two oracle guest to communicate. I also have 1 gateway on this segment, 2vip ip's. When i set up the first guest ( guest a ), I can connect via telnet, ssh, putty Vic , etc. however I cannot get to the second guest , and in fact I cannot get the network to see it.
I have only 1nic on our z/vm... My etc/hosts is correct, my /etc/sysconfig/network looks right, and my .../ifcfg-eth0 looks ok... I think. But I obviously have something wrong.

To complicate things, I am doing this with zlinux, on z/vm (mainframe).

For a config like this do I 'need' 2 nics?

I have no idea what to look for after a week of reading, and testing !
Any help is greatly appreciated.
Thanks!
 
Old 08-17-2012, 09:23 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Your description to me if very unclear.
Can you please use actual IPs, including the relation between
z/VM as a gateway, and what exactly you mean with public IPs?
Surely your Oracle guests aren't sitting on the great unwashed
internet?


Cheers,
Tink
 
Old 08-20-2012, 06:57 AM   #3
Mike1morris
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
SOrry for being vague, I was away from the office....

Here is the set up from guest "ip ...108":

[root@acpic-s2434 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
# public
192.168.25.108 acpic-s2434.rcmp-grc.gc.ca acpic-s2434
#192.168.25.109 acpic-s2435.rcmp-grc.gc.ca acpic-s2435
# VIP
192.168.25.111 acpic-s2434-vip.rcmp-grc.gc.ca acpic-s2434
#192.168.25.112 acpic-s2435-vip.rcmp-grc.gc.ca acpic-s2435
# private
192.168.64.201 acpic-s2434-ocfs.rcmp-grc.gc.ca acpic-s2434
192.168.64.202 acpic-s2435-ocfs.rcmp-grc.gc.ca acpic-s2435
[root@acpic-s2434 ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=acpic-s2434.rcmp-grc.gc.ca
GATEWAY=192.168.25.97
[root@acpic-s2434 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# IBM QETH
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.25.108
NETMASK=255.255.255.224
NETTYPE=qeth
ONBOOT=yes
OPTIONS="layer2=1"
SUBCHANNELS=0.0.0600,0.0.0601,0.0.0602
[root@acpic-s2434 ~]#

Here is the set up from guest ip ...109:

[root@acpic-s2435 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
# public
#192.168.25.108 acpic-s2434.rcmp-grc.gc.ca acpic-s2434
192.168.25.109 acpic-s2435.rcmp-grc.gc.ca acpic-s2435
# VIP
#192.168.25.111 acpic-s2434-vip.rcmp-grc.gc.ca acpic-s2434
192.168.25.112 acpic-s2435-vip.rcmp-grc.gc.ca acpic-s2435
# private
192.168.64.201 acpic-s2434-ocfs.rcmp-grc.gc.ca acpic-s2434
192.168.64.202 acpic-s2435-ocfs.rcmp-grc.gc.ca acpic-s2435
[root@acpic-s2435 ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=acpic-s2435.rcmp-grc.gc.ca
GATEWAY=192.168.25.97
[root@acpic-s2435 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# IBM QETH
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.25.109
NETMASK=255.255.255.224
NETTYPE=qeth
ONBOOT=yes
OPTIONS="layer2=1"
SUBCHANNELS=0.0.0600,0.0.0601,0.0.0602
[root@acpic-s2434 ~]#

both of these ip's are on the same segment, and share one gateway :

192.168.25.96

192.168.25.97 acpic-r29-r28-v477.z.rcmp-grc.gc.ca [ default ]
192.168.25.98 acpic-r29-v477.z.rcmp-grc.gc.ca [ default ]
192.168.25.99 acpic-r28-v477.z.rcmp-grc.gc.ca [ default ]
192.168.25.100
192.168.25.101
192.168.25.102
192.168.25.103
192.168.25.104
192.168.25.105 acpic-s247-scan.rcmp-grc.gc.ca [ default ] Oracle Scan
192.168.25.106 acpic-s247-scan.rcmp-grc.gc.ca [ default ] Oracle Scan
192.168.25.107 acpic-s247-scan.rcmp-grc.gc.ca [ default ] Oracle Scan
192.168.25.108 acpic-s2434.rcmp-grc.gc.ca [ default ] Oracle Common Cluster
192.168.25.109 acpic-s2435.rcmp-grc.gc.ca [ default ] Oracle Common Cluster
192.168.25.110 acpic-s2436.rcmp-grc.gc.ca [ default ] Oracle Common Cluster
192.168.25.111 acpic-s2434-vip.rcmp-grc.gc.ca [ default ] Oracle Common Cluster
192.168.25.112 acpic-s2435-vip.rcmp-grc.gc.ca [ default ] Oracle Common Cluster
192.168.25.113 acpic-s2436-vip.rcmp-grc.gc.ca [ default ] Oracle Common Cluster



I can get ...109 to start up and I can telnet, ssh, and vnc into my guest and do wahtever, but, ...109 will start, and I cannot get into my guest via ssh telnet or vnc. infact the network does not even know the guest is up. I can not ping anything from ...109, and from ...108, I cannot ping ...109.

the idea is that both IP's should be active, and accessible in one segment. They should be able to communicate via the private IP.
I can't figure out whats wron with my setup. any help is appreciated.

Thanks
Mike

Last edited by Mike1morris; 08-21-2012 at 06:54 AM.
 
Old 08-20-2012, 09:33 AM   #4
Mike1morris
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
bump
 
Old 08-20-2012, 03:25 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I may be stating the obvious, but ... from the hosts file / shared list
192.168.25.108 acpic-s2434


From it's eth0:
192.168.25.109


You think that might be the problem? The guests seem to have the same name, btw...

Last edited by Tinkster; 08-20-2012 at 03:27 PM.
 
Old 08-21-2012, 07:00 AM   #6
Mike1morris
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
I edited / fixed my last post.
I had copied and pasted the first display and tried to finger poke it , since the guest setups are so similar.
So no the names are not the problem in my envionments, only in this post.
 
Old 08-21-2012, 02:23 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hmmm ... do you have access to the setup on the zVM side? Total
failure of networking in my experience is usually caused by a wrong
definition on the zVM side (or a wrong default GW on the guest side).


Cheers,
Tink
 
Old 08-22-2012, 07:40 AM   #8
Mike1morris
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
This is the setup on the z/vm side. the linux guest names mentioned above relate to csdv1 and 2 ( acpic-s2434 = csdv1, acpic-s2435 = csdv2 ), this is just the way z/vm works...

From this configuration, csdv1 works fine, what I mean by that is that I can connect via telnet, ssh, putty, vnc ,etc. I can also ping outside the guest . CSDV2 however, I can build and access via a back door, but I cannot telnet, ssh, putty or anything into the guest. CSDV2 is also not being seen by the network, hence I cannot ping anything at all from this guest, not even the other guest in the segment, or the gateway.
Yesterday I built the third guest csdv3, and it has the same issue as csdv2.

MODIFY PORT GROUP DEVETH00 JOIN 0280.P0 0290.P1
DEFINE VSWITCH VSWITCHT ETHERNET GROUP DEVETH00 ,
RDEV 02A0.P0 02B0.P1 ,
VLAN 1067 PORTTYPE ACCESS NATIVE 1
MODIFY VSWITCH VSWITCHT MACID F30010
MODIFY VSWITCH VSWITCHT GRANT LINUX0
MODIFY VSWITCH VSWITCHT GRANT LINUX1
MODIFY VSWITCH VSWITCHT GRANT IIDV
MODIFY VSWITCH VSWITCHT GRANT IIGDV
MODIFY VSWITCH VSWITCHT GRANT CSDV1 PORTT TRUNK VLAN 477 158
MODIFY VSWITCH VSWITCHT GRANT CSDV2 PORTT TRUNK VLAN 477 158
MODIFY VSWITCH VSWITCHT GRANT CSDV3 PORTT TRUNK VLAN 477 158

Mike
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] calculating average segment after segment using AWK vjramana Programming 2 03-21-2012 01:08 AM
How i can see the ips with many connection on my website DjZoC Linux - Security 1 11-01-2010 06:32 AM
Connection to same destination from the same host with different public IPs juanmacar Linux - Networking 5 11-07-2008 02:45 PM
Forwarding connection using the same subnet IPs superandrzej Linux - Networking 12 04-27-2004 02:05 AM
grsec signal 11 generates segment faults in Apache/Tomcat connection MJatIFAD Linux - Security 5 12-06-2003 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration