Statisk IP på en ubuntu 8.04 LTS server som ligger bakom en linksys wrt160n router?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Statisk IP på en ubuntu 8.04 LTS server som ligger bakom en linksys wrt160n router?
Halloj alla!
jag är ny här på forumet och söker svar till ett litet problem jag stött på.
Det är så här att jag gett mig in på att fixa en linuxserver jag har valt att använda senaste ubuntu server versionen till detta. Jag har aldrig själv lekt med en linuxserver så allt är ganska nytt för mig, jag har lyckats få igång en filserver på nätverket och installerat mysql, php och apache på den. Men av tidigare erfarenheter av servrar så har jag lärt mig att det kan vara bra att ha en statisk ip på just den datorn speciellt om den ska ligga ute på nätet.
Då kommer vi till frågan: Hur ska jag gå tillväga för att fixa en statisk ip har sökt runt på flera olika ställen men inte lyckats lösa detta:/
He/she wants to know how to make their IP address static on their Ubuntu server. Also, the post is Swedish. I realise it's in the rules to only post in English, but this problem seems easy enough...To someone who uses Ubuntu. So, I just thought I'd put it out there, that is all. http://translate.google.com/translat...%0AMvh%0ABl00m
"Then we come to the question: How should I fix a static IP? I have searched around in several places, but not managed to solve this."
På klientdatorn, gå till System / Administration / Network. På fliken "Anslutningar", klicka på trådlösa (eller trådbunden) / egenskaper / anslutningsinställningarna sedan rullgardinsmenyn, klicka på "statiska".
Du kommer då att ha en statisk IP, delnät och gateway inställningar redan visar upp. Skriv ner dem (du kommer att behöva dem igen) och klicka på OK.
Gör sedan om servern på samma sätt och med samma värden.
Detta är det bästa jobb som översättaren kan göra ...
Last edited by buccaneere; 03-24-2009 at 10:50 PM.
And thanks for the help buccaneere i´m going to try this when I get home I hope it works.
I understand english so if there is anyone that can explain how to fix this in enlish then do it
or if there is no GUI then edit /etc/network/interfaces
Code:
man interfaces
The static Method
This method may be used to define ethernet interfaces with statically allocated IPv4 addresses.
Options
address address
Address (dotted quad) required
netmask netmask
Netmask (dotted quad) required
broadcast broadcast_address
Broadcast address (dotted quad)
network network_address
Network address (dotted quad) required for 2.0.x kernels
metric metric
Routing metric for default gateway (integer)
gateway address
Default gateway (dotted quad)
pointopoint address
Address of other end point (dotted quad). Note the spelling of "point-to".
media type
Medium type, driver dependent
hwaddress class address
Hardware Address. class is one of ether, ax25, ARCnet or netrom. address is dependent on the above choice.
mtu size
MTU size
Code:
username@it-lenny:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.4
netmask 255.255.255.0
gateway 192.168.1.1
network 192.168.1.0
broadcast 192.168.1.255
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.