192 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Book Review - Swift iOS 24-Hour Trainer, by Abishek Mishra
Thu, Feb 16th 2017 102
IBM Advantage Blog
Thu, Feb 16th 2017 278
WebSphere Application Server - Binary Scanner
Tue, Feb 14th 2017 118
WebSphere Liberty Profile - Where's my stuff ?
Tue, Feb 14th 2017 109
Improve IBM BPM performance with an Oracle database
Mon, Feb 13th 2017 110
java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/ibm/rules/res/xu/spi/internal/XUResourceAdapter
Sun, Feb 12th 2017 88
Pango-WARNING **: failed to choose a font, expect ugly output
Sat, Feb 11th 2017 69
Top 10
IBM Advantage Blog
Thu, Feb 16th 2017 278
WebSphere Application Server - Binary Scanner
Tue, Feb 14th 2017 118
Improve IBM BPM performance with an Oracle database
Mon, Feb 13th 2017 110
WebSphere Liberty Profile - Where's my stuff ?
Tue, Feb 14th 2017 109
Book Review - Swift iOS 24-Hour Trainer, by Abishek Mishra
Thu, Feb 16th 2017 102
java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/ibm/rules/res/xu/spi/internal/XUResourceAdapter
Sun, Feb 12th 2017 88
Pango-WARNING **: failed to choose a font, expect ugly output
Sat, Feb 11th 2017 69
Just because we can doesn't mean we should - Serving Static Content from WebSphere Application Server's Web Container
Wed, Feb 8th 2017 38
Hmmm, macOS Sierra and XQuartz and X11
Thu, Oct 27th 2016 31
Transport Layer Security (TLS) 1.2 and SoapUI
Fri, Jun 12th 2015 30


Red Hat Enterprise Linux 7 - Driving Network Manager via Command-Line
Twitter Google+ Facebook LinkedIn Addthis Email Gmail Flipboard Reddit Tumblr WhatsApp StumbleUpon Yammer Evernote Delicious
   

This is definitely a WIP, and results from my experiences with Red Hat Enterprise Linux 7.3, which does networking subtly differently to older versions of RHEL.

Having restored a VM from an OVA export ( using VMware Fusion on macOS ), I realised that I no longer had any network connectivity, even though the VM configuration hadn't changed.

I saw this from the VM console, whilst logged in as a root.

Firstly I checked the IP stack with ifconfig : -

ifconfig -a

ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 00:50:56:38:a3:ca  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0  KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 4  bytes 340 (340.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4  bytes 340 (340.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


So I've got an Ethernet interface - ens33 - which has no IP address.

Using Network Manager CLI, I checked the connection: -

nmcli connection

NAME         UUID                                  TYPE            DEVICE 
eno16777736  13756690-ac77-b776-4fc1-f5535cee6f16  802-3-ethernet  

which showed that the internal connection ( eno16777736 ) wasn't mapped to the ens33 interface.

This is easily resolved: -

nmcli connection modify eno16777736 connection.interface-name ens33

where I join the connection to the interface.

Now ifconfig shows a pukka IP address: -

ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.153.130  netmask 255.255.255.0  broadcast 192.168.153.255
        inet6 fe80::20c:29ff:fefe:a16a  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:fe:a1:6a  txqueuelen 1000  (Ethernet)
        RX packets 127  bytes 15722 (15.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 84  bytes 11401 (11.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 4  bytes 340 (340.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4  bytes 340 (340.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


The actual IP configuration is, as before, handled via a script: -

/etc/sysconfig/network-scripts/ifcfg-eno16777736

TYPE="Ethernet"
BOOTPROTO="dhcp"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
NAME="eno16777736"
UUID="28ca0f72-3f90-41d1-a2f7-5ec6ea5fffbc"
DEVICE=ens33
ONBOOT="yes"
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes


which shows that the connection is using DHCP.

If I wanted to allocate a static IP address, I'd change the file as follows: -

TYPE="Ethernet"
BOOTPROTO="static"
IPADDR=192.168.153.133
NETMASK=255.255.255.0
GATEWAY=192.168.153.2

DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
NAME="eno16777736"
UUID="28ca0f72-3f90-41d1-a2f7-5ec6ea5fffbc"
DEVICE=ens33
ONBOOT="yes"
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes


and restart the network service: -

service network restart

Restarting network (via systemctl):                        [  OK  ]

we now have this: -

ifconfig ens33

ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.153.133  netmask 255.255.255.0  broadcast 192.168.153.255
        inet6 fe80::20c:29ff:fefe:a16a  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:fe:a1:6a  txqueuelen 1000  (Ethernet)
        RX packets 961  bytes 88811 (86.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 539  bytes 75366 (73.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

So, to conclude, we have an interface - ens33 - and a Network Manager connection - eno16777736 - and NMCLI can show the join: -

nmcli connection

NAME         UUID                                  TYPE            DEVICE 
eno16777736  28ca0f72-3f90-41d1-a2f7-5ec6ea5fffbc  802-3-ethernet  ens33  

Thanks to this: -


and this: -


for inspiration.

For the record, at some point, I also had to do this: -

Map physical connection to interface

nmcli connection add type ethernet con-name ens33 ifname eth0

but I can't recall precisely how/why I got there, so we'll bank that for now :-)


---------------------
http://portal2portal.blogspot.com/2017/02/red-hat-enterprise-linux-7-driving.html
Feb 08, 2017
31 hits



Recent Blog Posts
102
Book Review - Swift iOS 24-Hour Trainer, by Abishek Mishra
Thu, Feb 16th 2017 7:48a   Dave Hay
This is another in my infrequent series of book reviews for the British Computer Society.Swift iOS 24-Hour Trainer, by Abishek MishraSo let me start by declaring that I did not read this book in 24 hours; in fact, it's taken me far longer to read, for no other reason than that I've been reading it in chunks, one lesson per day, and there are over 30 lessons.Therefore, I can't say, hand on heart, that the 24-hour programme actually works; however, for a committed reader, one who has made time
278
IBM Advantage Blog
Thu, Feb 16th 2017 6:11a   Dave Hay
Highlighting someone else's blog is always nice …IBM Advantage BlogThis blog is a collection of ideas, thoughts and links to interesting resources related to the competitive position of IBM software and cloud offerings. Customers have many choices in selecting the software to run their business and comparative information is hard to find. We strive to keep the information presented here purely factual and avoid FUD tactics. If you believe that any of the posts violate these principles – ple
118
WebSphere Application Server - Binary Scanner
Tue, Feb 14th 2017 2:24p   Dave Hay
From this: -The binary scanner…not just for migrations anymore!With the latest release of the binary scanner, two new enhancements are available that can help application developers and administrators outside the scope of a migration. Have you developed a new application for Liberty or moved one over from another application server and are wondering what features you need to configure in the server.xml file? Or maybe you are supporting a legacy application that has grown over time and you have
109
WebSphere Liberty Profile - Where's my stuff ?
Tue, Feb 14th 2017 11:11a   Dave Hay
I saw this: -[14/02/17 10:50:51:653 GMT] 0000002b com.ibm.ws.webcontainer.webapp W SRVE0190E: File not found: /foo.jsp[14/02/17 10:50:51:744 GMT] 0000002b com.ibm.ws.logging.internal.impl.IncidentImpl I FFDC1015I: An FFDC Incident has been created: "com.ibm.ws.jsp.webcontainerext.JSPErrorReport: JSPG0036E: Failed to find resource /foo.jsp com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter 144" at ffdc_17.02.14_10.50.51.0.log[14/02/17 10:5
110
Improve IBM BPM performance with an Oracle database
Mon, Feb 13th 2017 3:10p   Dave Hay
This was published last week: -Improve IBM BPM performance with an Oracle databaseIBM® Business Process Manager (BPM) is a platform for processing and orchestrating enterprise business tasks. With proper planning, you can prevent performance issues before the end users of your process applications report them. This article focuses on what you can learn from the BPMDB database in IBM BPM to prevent problems and to troubleshoot issues when they occur.This is part of a 3-part series: -Improve IBM
88
java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/ibm/rules/res/xu/spi/internal/XUResourceAdapter
Sun, Feb 12th 2017 9:06p   Dave Hay
Not sure why I've not seen this before, but that's a problem for another day.During a build of an IBM Operational Decision Manager (ODM) 8.8.1 environment, I saw this: -... [wsadmin] GBRPT0017I: Install resource adapter on the node: Node1 [wsadmin] WASX7017E: Exception received while running file "/opt/ibm/WebSphereProfiles/Dmgr01/bin/rules/configureDSRulesNetworkDeployer.py"; exception information: com.ibm.websphere.management.exception.ConfigServiceException [wsadmin] javax.management.
69
Pango-WARNING **: failed to choose a font, expect ugly output
Sat, Feb 11th 2017 9:18a   Dave Hay
I saw this: -(IBM Installation Manager:105744): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common'when starting IBM Installation Manager 1.8.6 in GUI mode: -/opt/ibm/InstallationManager/eclipse/IBMIM on a Red Hat Enterprise Linux 7.3 box.It was easily fixed: -yum install gtk2 libXtst xorg-x11-fonts-Type1 psmiscLoaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos, subscription-managerThis system is receiving updates f
38
Just because we can doesn't mean we should - Serving Static Content from WebSphere Application Server's Web Container
Wed, Feb 8th 2017 3:35p   Dave Hay
This ties up with something about which I've been talking with one of my colleagues.Using my BPM 8.5.7 VM, I created an HTML file: -Hello.html Hello World! here: -/opt/ibm/WebSphereProfiles/AppSrv01/installedApps/PCCell1/IBM_BPM_Portal_AppCluster.ear/process-portal.warThis location hosts the Heritage Process Portal, which has two URIs: - The first URI - /portal - actually references a different WAR file ( process-portal-support.war ) whereas the second URI - /HeritagePortal - refe
31
Red Hat Enterprise Linux 7 - Driving Network Manager via Command-Line
Wed, Feb 8th 2017 7:13a   Dave Hay
This is definitely a WIP, and results from my experiences with Red Hat Enterprise Linux 7.3, which does networking subtly differently to older versions of RHEL.Having restored a VM from an OVA export ( using VMware Fusion on macOS ), I realised that I no longer had any network connectivity, even though the VM configuration hadn't changed.I saw this from the VM console, whilst logged in as a root.Firstly I checked the IP stack with ifconfig : -ifconfig -aens33: flags=4163 mtu 1500 ether
10
WebSphere Liberty Profile on macOS - SuperSnooping
Fri, Jan 27th 2017 6:41p   Dave Hay
So I've run this on Liberty multiple times, including most recently on my Mac, natively.This is what I have: -Check Liberty Version~/Downloads/wlp/bin/server versionobjc[43120]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/bin/java (0x10761e4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x1077184e0). One of the two will be used. Which one is undefined.WebSphere Application S




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition