VMware Cloud Community
BIG1
Contributor
Contributor

network connection

Hi all,

I created a VM with OS :Oracle Linux 6.

Now I can not do anything because Network connection does not work.

I can not ping VMserver (ESXi5). I receive not accessible.

My question is :

How to know if :

-it is a Linux network configuration problem ?

Or

-it is a VM configuration problem ? Something like Bridge or else ?

Thank you.

0 Kudos
8 Replies
JinuV
Enthusiast
Enthusiast

1.Make sure you have assign  the VM to proper port group

2.Check the interface link status using "ethtool ethx"

ethtool.JPG

3.Disable the NetworkManager Service # service stop NetworkManager

4.Edit the vi /etc/sysconfig/network-scripts/ifcfg-ethx and entry below details ,remove all other details

DEVICE="ethx"

USERCTL="no"

HWADDR="00:17:A4:77:00:0C"

ONBOOT="yes"

BOOTPROTO="none"

IPADDR=x.x.x.x

NETAMSK=255.255.255.0

GATEWAY=x.x.x.x

4.Restart the Network Service #service restart network.

Thanks & Regards

Jinu Varghese

Please accept as correct answer if it helps

0 Kudos
BIG1
Contributor
Contributor

Thank you.

Here is the output of ethtool (seems Ok ? I have Liked yes)

Capture.PNG

But when I issu :

service stop NetworkManager

I have :

unknown commande line.

Thanks and regards.

0 Kudos
JinuV
Enthusiast
Enthusiast

Send the output of ifconfig

0 Kudos
BIG1
Contributor
Contributor

Thank you.

[root@OracleDB11gR24 ~]# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:0C:29:B0:97:D4 

          inet adr:xxx.31.71.168  Bcast:xxx.31.71.255  Masque:255.255.255.0

          adr inet6: fe80::20c:29ff:feb0:97d4/64 Scope:Lien

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:775 errors:0 dropped:0 overruns:0 frame:0

          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 lg file transmission:1000

          RX bytes:46558 (45.4 KiB)  TX bytes:606 (606.0 b)

lo        Link encap:Boucle locale 

          inet adr:127.0.0.1  Masque:255.0.0.0

          adr inet6: ::1/128 Scope:Hôte

          UP LOOPBACK RUNNING  MTU:65536  Metric:1

          RX packets:16 errors:0 dropped:0 overruns:0 frame:0

          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 lg file transmission:0

          RX bytes:960 (960.0 b)  TX bytes:960 (960.0 b)

0 Kudos
JinuV
Enthusiast
Enthusiast

Do you have any vlan in your environment,  if there make sure you port  group is vlan tagging and make sure Do have any other VM in the same port group . send the out of netstat -nr

0 Kudos
BIG1
Contributor
Contributor

Thank you.

If Vlan is the LAN between our VMs on ESXi, yes we have with the same IP group address : 192.168.127.XX.

My GATEWAY 192.168.127.254 does not respond to ping. It is not alive then. Should I change this Gateway address ?

here is netstat feedback :

[root@OracleDB11gR24 ~]# netstat -nr

Table de routage IP du noyau

Destination     Passerelle      Genmask         Indic   MSS Fenêtre irtt Iface

192.168.127.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0

Thanks and regards.

0 Kudos
BIG1
Contributor
Contributor

I can not ping for example 192.168.127. 1 even if it is alive (I can connect to it from my vSphere client on my laptop). For pinging 192.168.127.1 I do not need Gateway. Yes ? Then it should be something wrong with my VM configuration not with Linux network configuration.

Thanks.

0 Kudos
JinuV
Enthusiast
Enthusiast

As per  your given details your VM  ip  adr is    :xxx.31.71.168  and you are trying to ping 192.168.127.1  ,from this i understood you are trying to ping a different subnet, please follow the below link for better under stand the vmware network. http://rickardnobel.se/vswitch-and-vlan-tagging-part-1/

0 Kudos