× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Buck,

I think everything is right except for the route and the adapter ID 2 on the
host partition. You have that set up to be the logical side of a bridge
network, so it's not going to act like you would like it too initially.

Kill it and recreate it with the access internal network false. (check to
see if it used the same cmnxx resource or not and adjust as needed) (As a
note you could combine this virtual ID for both the bridge and the internal
network if you want to, it's just cleaner to separate them)

I also thing the real reason this not working is the route. Instead of

10.1.10.2 *HOST 10.1.10.2 10.1.10.1

Consider on the host

ADDTCPRTE RTEDEST('10.1.10.0')
SUBNETMASK('255.255.255.0')
NEXTHOP('10.1.10.2')

And use this on the virtual partition:

ADDTCPRTE RTEDEST('10.1.10.0')
SUBNETMASK('255.255.255.0')
NEXTHOP('10.1.10.1')


To create the bridge: follow this:
http://www-01.ibm.com/support/docview.wss?uid=nas8N1011193



--
Jim Oberholtzer
Chief Technical Architect
Agile Technology Architects


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Buck
Calabro
Sent: Tuesday, August 11, 2015 12:02 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Virtual Ethernet between IBM i LPARs

I can't believe there isn't a single place that has worked examples of
virtual Ethernet between IBM i partitions, but if there is one I can't find
it. I have an IBM i 7.2 partition that is the host for an IBM i
7.2 guest partition. The host partition has the physical Ethernet adapters.
What I want to do is create a Virtual Ethernet between the two partitions so
I can FTP between them. I'll worry about routing external clients (like
5250 sessions) later.

I followed the instructions for creating Virtual Ethernet adapters with the
HMC.
http://www-01.ibm.com/support/knowledgecenter/POWER8/p8hat/p8hat_configvirte
thp6.htm?cp=POWER8%2F1-6-1-0-3-4-2-2
This looks so straightforward I may be lulling myself into complacency.
Here are the two adapter configurations:

Host:
Adapter id: 2
Virtual switch: ETHERNET0
VLAN ID: 1
Required: False
IEEE 802.1q: False
Additional VLAN IDs:
Access external network: True
Trunk priority: 1

Guest:
Adapter id: 3
Virtual switch: ETHERNET0
VLAN ID: 1
Required: True
IEEE 802.1q: False
Additional VLAN IDs:
Access external network: False


The closest thing I could find to 'How to create Virtual Ethernet for IBM i
7.2' is this:
http://www-01.ibm.com/support/knowledgecenter/ssw_ibm_i_72/rzai2/rzai2virtet
hernet.htm
which describes how to share a physical adapter between a host and guest.
Which I probably eventually want. I followed the instructions and came up
with these line descriptions:

Host:
wrkhdwrsc *cmn

Resource name . . . . . . . : CMN13
Text . . . . . . . . . . . . : Ethernet Port
Type-model . . . . . . . . . : 268C-002
Serial number . . . . . . . : 00-00000
Part number . . . . . . . . :
Location : U8286.41A.21EF0DV-V1-C2-T1

dsplind veth1

LIND VETH1
OPTION *BASIC
*ELAN

RSRCNAME CMN13
BRIDGE *NONE
ONLINE *YES
VRYWAIT *NOWAIT
NETCTL VETH1NET
ADPTADR 621B5A661102
EXCHID 056FBAF0
ETHSTD *ETHV2
LINESPEED 1G
*AUTO
DUPLEX *FULL
*AUTO
SRVOPT *NONE


Guest:

wrkhdwrsc *cmn

Resource name . . . . . . . : CMN04
Text . . . . . . . . . . . . : Ethernet Port
Type-model . . . . . . . . . : 268C-002
Serial number . . . . . . . : 00-00000
Part number . . . . . . . . :
Location : U8286.41A.21EF0DV-V2-C3-T1

dsplind veth1

Line description . . . . . . . . . : VETH1
Option . . . . . . . . . . . . . . : *BASIC
Category of line . . . . . . . . . : *ELAN

Resource name . . . . . . . . . . : CMN04
Bridge identifier . . . . . . . . : *NONE
Online at IPL . . . . . . . . . . : *YES
Vary on wait . . . . . . . . . . . : *NOWAIT
Network controller . . . . . . . . : VETH1NET
Local adapter address . . . . . . : 621B54F2DE03
Exchange identifier . . . . . . . : 056FBA0F
Ethernet standard . . . . . . . . : *ETHV2
Line speed . . . . . . . . . . . . : 1G
Current line speed . . . . . . . . : *AUTO
Duplex . . . . . . . . . . . . . . : *FULL
Current duplex . . . . . . . . . . : *AUTO
Serviceability options . . . . . . : *NONE


All of that seems straightforward, no drama. Now comes the part that seems
insurmountable: assigning IP addresses. Just to try to get something going,
I have tried host = 10.1.10.1 and guest = 10.1.10.2.

Host TCP/IP config:

cfgtcp 1

Internet Subnet Line Line
Address Mask Description Type

10.1.0.4 255.255.255.0 ETHLINE *ELAN
10.1.10.1 255.255.255.0 VETH1 *ELAN
10.1.241.4 255.255.255.0 ETHLINEPVT *ELAN
127.0.0.1 255.0.0.0 *LOOPBACK *NONE
192.168.101.2 255.255.255.0 ETHLINEPUB *ELAN

cfgtcp 2

Route Subnet Next Preferred
Destination Mask Hop Interface

*DFTROUTE *NONE 10.1.0.1 10.1.0.4
*DFTROUTE *NONE 10.1.241.2 10.1.241.4
*DFTROUTE *NONE 192.168.101.1 192.168.101.2
10.0.2.0 255.255.255.0 10.1.0.1 *NONE
...
10.1.10.2 *HOST 10.1.10.2 10.1.10.1
...

wrkcfgsts *lin veth1

VETH1 ACTIVE
VETH1NET ACTIVE
VETH1TCP ACTIVE

Guest TCP/IP config:

cfgtcp 1

Internet Subnet Line Line
Address Mask Description Type

10.1.10.2 255.255.255.0 VETH1 *ELAN
127.0.0.1 255.0.0.0 *LOOPBACK *NONE

cfgtcp 2

Route Subnet Next Preferred
Destination Mask Hop Interface

*DFTROUTE *NONE 10.1.10.1 10.1.10.2

wrkcfgsts *lin veth1

VETH1 ACTIVE
VETH1NET ACTIVE
VETH1TCP ACTIVE

Everything seems to come up OK when I do a STRTCPIFC.
I can ping the local machine, ie from host ping '10.1.10.1' works.
Likewise from guest ping '10.1.10.2' works, so the interface seems OK, but
ping to the opposite LPAR does not work.

(on the guest)
PING reply 5 from 10.1.10.2 took 0 ms. 256 bytes.
Round-trip (in milliseconds) min/avg/max = 0/0/0.
Connection verification statistics: 5 of 5
4 > ping '10.1.10.1'
Verifying connection to host system 10.1.10.1.
No response from host within 1 seconds
No response from host within 1 seconds
No response from host within 1 seconds
No response from host within 1 seconds
No response from host within 1 seconds
Connection verification statistics: 0 of 5

I used netstat 2 to look at the routes, and on the guest LPAR, I get this:

Route Subnet Next Route
Destination Mask Hop Available
10.1.10.0 255.255.255.0 *DIRECT *YES
10.1.10.1 *HOST 10.1.10.1 *NO
127.0.0.0 255.0.0.0 *DIRECT *YES
224.0.0.0 240.0.0.0 *DIRECT *YES
224.0.0.0 240.0.0.0 *DIRECT *YES
*DFTROUTE *NONE 10.1.10.1 *NO

It looks better on the host:

Route Subnet Next Route
Destination Mask Hop Available
10.1.241.0 255.255.255.0 *DIRECT *YES
10.1.10.0 255.255.255.0 *DIRECT *YES
10.1.0.0 255.255.255.0 *DIRECT *YES
10.1.10.2 *HOST 10.1.10.2 *YES
...

No route available from the guest to the host. I've hit the limit of my
understanding of how to manipulate TCP/IP configuration with IBM i.
Shouldn't a packet from .2 which is bound for .1 go out the one and only
interface configured (10.1.10.2)? Which is VLAN 1 on the guest. And
shouldn't VLAN 1 on the guest be connected to VLAN 1 on the host? Which
line is attached to TCP/IP interface 10.1.10.1?

--
--buck

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.