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... |
Quote:
Quote:
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:
Code:
ifconfig eth0 202.166.162.178 Code:
ifconfig eth0 Code:
man ifconfig Good luck. |
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. |