LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   change ip address to 192.168.0.x? (https://www.linuxquestions.org/questions/linux-newbie-8/change-ip-address-to-192-168-0-x-748050/)

windstory 08-17-2009 02:08 AM

change ip address to 192.168.0.x?
 
2 Attachment(s)
change ip address to 192.168.0.x?

My box is centos 5.3 x86 as guest and host is windows 7 x64.

At my box, lan adapters are 1st lan adapter is Intel PRo/1000 MT Desktop(NAT) and 2nd adapter is Intel PRO/1000 T Server (Host-Only).
And ifconfig is as attached pictures.

The 2 ips were shown at "ifconfig" could not be "DMZ"'s ip at my router. I experienced 192.168.0.x ip is accepatble to my router.

Please let me know hot to solve this.

prayag_pjs 08-17-2009 02:13 AM

Hi,

Can you re frame the question again..couldnt understand what the problem you are facing.


Regards,
Prayag

vap16oct1984 08-17-2009 02:19 AM

Please explain the peoblem in proper way. Its a confusion one. We don't know what you want? What is the problem?

windstory 08-17-2009 02:49 AM

My problme is IP number.
At this centos you can see;
eth0 : 10.0.2.15
eth1 : 192.168.56.101

But my router uses 192.168.0.1 to 192.168.0.255 for assigning DMZ.
So one of centos's ips should be 192.168.0.x.

vap16oct1984 08-17-2009 03:25 AM

So why not you change your ip . I mean just change the IP of eth0 .

windstory 08-17-2009 03:54 AM

Quote:

Originally Posted by vap16oct1984 (Post 3646181)
So why not you change your ip . I mean just change the IP of eth0 .

vap16oct1984/ Please let me know how to change it.

vap16oct1984 08-18-2009 05:11 AM

Before changing ip let me know do you have static ip or dynamic ip.
You can change the static ip by many ways. By directly editing the file /etc/sysconfig/network-scripts/ifcfg-eth0 file.

or directly by using the command .
#ifconfig

Dynamic ip is automatically handled by DHCP server.

windstory 08-18-2009 05:30 AM

Quote:

Originally Posted by vap16oct1984 (Post 3647752)
Before changing ip let me know do you have static ip or dynamic ip.
You can change the static ip by many ways. By directly editing the file /etc/sysconfig/network-scripts/ifcfg-eth0 file.

or directly by using the command .
#ifconfig

Dynamic ip is automatically handled by DHCP server.

Thank you fo your kin reply.

I'm trying to dynamic ip address from static ip.
This means I set up static ips host and guest at writing post.

vap16oct1984 08-19-2009 01:33 AM

well it looks like you are new to Linux. well tell me do you have idea how to change ip in linux. please don't mind can you tell me how long you are using Linux. This will help me to explain you all the things accordingly.

windstory 08-19-2009 04:13 AM

Quote:

Originally Posted by vap16oct1984 (Post 3648983)
well i looks like yu are new to Linux. well tell me do you have idea how to change ip in linux. please don't mind can you tell me how long you are using Linux. This will help me to explain you all the things accordingly.

vap16oct1984/ I resolved this problem by searching google.


I have been exprerienced so long years, but I lnow only somethings - installation of linux, installing xampp, and copy and paste files. So if I meet some problems, I should ask.

vap16oct1984 08-20-2009 07:10 AM

Great Windstory. great work. Keep it up it helps you to know about linux and There is so much fun in linux. just start playing with Linux as much as possible.

windstory 08-20-2009 07:49 AM

Quote:

Originally Posted by vap16oct1984 (Post 3650749)
Great Windstory. great work. Keep it up it helps you to know about linux and There is so much fun in linux. just start playing with Linux as much as possible.

vap16oct1984/

Thank you for your kind advise and replies and considerations on my problem.

Your comment encourages me in resolving linux's endless problems.


All times are GMT -5. The time now is 01:00 PM.