LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fuduntu (https://www.linuxquestions.org/questions/fuduntu-98/)
-   -   How to set ip address (https://www.linuxquestions.org/questions/fuduntu-98/how-to-set-ip-address-4175437202/)

kohshan99 11-14-2012 09:50 PM

How to set ip address
 
hi to every one.
can any one tell me to how to set ip address ubuntu 12.04 LTS server??

coz my eth0 had 192.168.1.104 but my public ip is 202.166.162.178...


i want to set ip in server...

malekmustaq 11-15-2012 02:08 AM

Quote:

hi to every one.
can any one tell me to how to set ip address ubuntu 12.04 LTS server??
Use the Network Manager: Menu -> Network -> Network Manager


Quote:

coz my eth0 had 192.168.1.104 but my public ip is 202.166.162.178...

You do not need to. Your 192.168.1.104 is a subnet address while the other ip is a public class address. This explains that your host connects to the internet within and through a local gateway... this occurs normally when you have a router/modem connected to several hosts at home using a common internet connection from your provider. Your router facing outside is handled by your ISP's DHCP server: the latter fixes your public image (unless, the ISP has assigned you a static address --but this occurs only rarely). If you insist to fix your devide (eth0) to that external address chances are the DHCP will reject you if it has awarded that to others; or that, even from the local point, you may not be able to go out missing the proper gate anyway.

But you can always try to experiment, that is essential part of learning. Wish you luck.


Quote:

i want to set ip in server...
Do this to your card:

Code:

ifconfig eth0 202.166.162.178
check if it has...

Code:

ifconfig eth0
or read

Code:

man ifconfig

Good luck.

ViperChief 12-20-2012 04:17 AM

You might want to try in the Ubuntu forums. :| You're more likely to get help there since they know their distro specifics better than we do over here.


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