LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Network ip issue (https://www.linuxquestions.org/questions/linux-newbie-8/network-ip-issue-4175499812/)

thiyagusham 03-28-2014 12:12 PM

Network ip issue
 
1 Attachment(s)
Hi All;

In my laptop i instlled vmware version 9.
On virtual machine i installed linux distro.
I enabled ip configuraion using DHCP.It was working fine. recently i tried to set static ip.
After that i facing n/w issue.



PHP Code:

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:6D:CB:A9  
          inet6 addr
fe80::20c:29ff:fe6d:cba9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU
:1500  Metric:1
          RX packets
:25 errors:0 dropped:0 overruns:0 frame:0
          TX packets
:31 errors:0 dropped:0 overruns:0 carrier:0
          collisions
:0 txqueuelen:1000 
          RX bytes
:2602 (2.5 KiB)  TX bytes:7101 (6.9 KiB)
          
Interrupt:75 Base address:0x2024 

lo        Link encap
:Local Loopback  
          inet addr
:127.0.0.1  Mask:255.0.0.0
          inet6 addr
: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU
:16436  Metric:1
          RX packets
:4130 errors:0 dropped:0 overruns:0 frame:0
          TX packets
:4130 errors:0 dropped:0 overruns:0 carrier:0
          collisions
:0 txqueuelen:
          RX bytes
:5849340 (5.5 MiB)  TX bytes:5849340 (5.5 MiB


TB0ne 03-28-2014 12:15 PM

Quote:

Originally Posted by thiyagusham (Post 5142936)
Hi All;
In my laptop i instlled vmware version 9. On virtual machine i installed linux distro. I enabled ip configuraion using DHCP.It was working fine. recently i tried to set static ip. After that i facing n/w issue.

...and since you don't tell us what 'linux distro' you installed, what the actual issue/problem is, give us error message(s), or tell us what you're trying to do, what do you think we'll be able to tell you??? Are you using IPv4 or 6? HOW did you set the static address? If you switch it back to DHCP, does it work??

Since you provide no useful details, the best anyone can guess at is "you set it up wrong". Either you didn't provide a default gateway, DNS server(s), a valid address, or some other piece of the network puzzle is missing. Figure out what that piece is, and correct it.

thiyagusham 03-28-2014 12:24 PM

LINUX 5.5 distro installed.

using neat command i set static ip as '192.168.1.120'

again i have enabled dhcp. so now i am facing problem. I dont understand.

TB0ne 03-28-2014 12:37 PM

Quote:

Originally Posted by thiyagusham (Post 5142939)
LINUX 5.5 distro installed.

WHICH Linux 5.5??? RHEL? OEL? CentOS? ANY hints at all????
Quote:

using neat command i set static ip as '192.168.1.120' again i have enabled dhcp. so now i am facing problem. I dont understand.
...and back to "you don't provide any useful details". You set the static IP...great. Did you read and UNDERSTAND the previous post? Did you set the default gateway? DNS? WHAT MESSAGES did you get? You say you enabled DHCP and you are 'facing problem'...which doesn't tell us if DHCP has STOPPED working, or if you just have the problem with static addresses.

AGAIN: provide details and ask a clear question if you need help. If you're using Oracle Linux 5, then we can suggest you contact Oracle, since that is a COMMERCIAL PRODUCT. You have been advised of this numerous times in the past, and have been asked for details several times previously too, but seem to ignore these requests. And did you try to look this up on Oracle's website (which, as a DBA, you should have access to, especially since you're PAYING FOR these products, right???)
https://community.oracle.com/thread/...art=0&tstart=0

szboardstretcher 03-28-2014 01:01 PM

Looks like Oracle EL 5 from the thumbnail.

If you tried to configure a static IP and it didn't work,.. you will need to post the output of these commands for anyone to help:

Code:

cat /etc/sysconfig/network
cat /etc/sysconfig/network-scripts/ifcfg-eth0
cat /etc/resolv.conf


thiyagusham 03-28-2014 01:58 PM

2 Attachment(s)
Hi TBone ;

I have installed OEL 5.5
I did NOT enable ipv4 or ipv6 .

PHP Code:

# service network restart
Shutting down interface eth0:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  
Determining IP information for eth0... failed.
                                                           [[
B]FAILED[/B]]
You have new mail in /var/spool/mail/root 

PHP Code:

[root@oel5 ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6
=no
HOSTNAME
=oel5.myserver

[root@oel5 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
TYPE=Ethernet
DEVICE
=eth0
HWADDR
=00:0c:29:6d:cb:a9
BOOTPROTO
=dhcp
ONBOOT
=yes
USERCTL
=no
IPV6INIT
=no
PEERDNS
=yes

[root@oel5 ~]# cat /etc/resolv.conf
generated by /sbin/dhclient-script
search localdomain
nameserver 192.168.169.1 

What the actual issue/problem is, give us error message(s), or
tell us what you're trying to do, what do you think we'll be able to tell you???

When installing linux , i have selected 'network adapter as 'HOST ONLY'
then i choosed 'automatic ip address using 'dhcp'
so i got ip by default as '192.168.133.169'
Later using neat command i set static ip as '192.168.1.120'
then i have selected network adapter as 'bridged network'


Now i have removed everything!
again i set network adapter as 'host only'
but cannot enable any ip. this is problem.

HOW did you set the static address?
using 'neat' comamnd

If you switch it back to DHCP, does it work?
I tried , but not working. please see attached screen shot.

Did you set the default gateway? DNS? WHAT MESSAGES did you get?
I enabled when installing 'linux' .. i cannot recall anything.

Thanks TBone .. I hope ..

Please see attached screen shots.

TB0ne 03-28-2014 02:36 PM

Quote:

Originally Posted by thiyagusham (Post 5142970)
Hi TBone ;
I have installed OEL 5.5
I did NOT enable ipv4 or ipv6 .

If you don't enable ANY sort of IP, why do you think that it'll work???
Quote:

When installing linux , i have selected 'network adapter as 'HOST ONLY' then i choosed 'automatic ip address using 'dhcp'
so i got ip by default as '192.168.133.169' Later using neat command i set static ip as '192.168.1.120'
then i have selected network adapter as 'bridged network'
What makes you think that the 120 address is correct? Are you sure nothing else is using it? Did you ask your networking folks what range your static address can go in??
Quote:

Now i have removed everything! again i set network adapter as 'host only' but cannot enable any ip. this is problem.
Because you didn't set the address correctly, and have modified files outside of the neat utility. Restore the files back to their original state, THEN run the neat utility (after getting the correct network parameters from your networking team. Without default gateways, DNS servers, and a VALID IP address, things won't work. Ever.
Quote:

HOW did you set the static address? using 'neat' comamnd
No, you *TRIED* to set it using the neat command...but didn't actually show us what you filled in, only a screen shot of the error. And you've been asked if you have filled in the other networking parameters, but STILL haven't said if you did or not, and have not even acknowledged that you read that message.
Quote:

If you switch it back to DHCP, does it work?I tried , but not working. please see attached screen shot.
...because you manually modified things. Restore the files you modified from backups.
Quote:

Did you set the default gateway? DNS? WHAT MESSAGES did you get? I enabled when installing 'linux' .. i cannot recall anything.
AGAIN..you just say 'linux', when you should say OEL5. And, AGAIN: YOU NEED TO PAY FOR OEL5, and CONTACT ORACLE FOR HELP. You repeatedly ignore this.

You were sent a link from Oracle's knowledgebase. It has steps to take to get a static address/device configured. You either haven't read it, or haven't understood it. You don't provide what is needed for a static address to work, and until you do, IT WON'T.

CONTACT ORACLE SUPPORT...you say you're a DBA, and use both OEL and Oracle at your company, which means you are PAYING FOR SUPPORT. USE IT.

thiyagusham 03-28-2014 02:39 PM

Hi TBone ;

I have installed in my laptop for personal use.
Not commercial purpose. So i cannot ask oracle supporting for personal use.

TB0ne 03-28-2014 05:00 PM

Quote:

Originally Posted by thiyagusham (Post 5142988)
Hi TBone ;
I have installed in my laptop for personal use. Not commercial purpose. So i cannot ask oracle supporting for personal use.

...which DOES NOT MATTER AT ALL, since no matter WHY you installed it, that is a COMMERCIAL PRODUCT, just like Red Hat Enterprise is. Not paying = DON'T USE IT, period. And you have said in other threads, repeatedly, that you use Oracle, RHEL, and OEL at your workplace, so logging a support call should be very easy to do.

That said, did you read and understand the links provided to you previously, and the instructions you were handed?? Did you look on the Oracle knowledgebase, for instructions on how to do this? Have you done/tried ANYTHING suggested of you yet?


All times are GMT -5. The time now is 07:41 PM.