LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Statisk IP på en ubuntu 8.04 LTS server som ligger bakom en linksys wrt160n router? (https://www.linuxquestions.org/questions/linux-networking-3/statisk-ip-p%E5-en-ubuntu-8-04-lts-server-som-ligger-bakom-en-linksys-wrt160n-router-714176/)

Bl00m 03-24-2009 06:38 PM

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:/

Tack på föhand
Mvh
Bl00m

mostlyharmless 03-24-2009 06:48 PM

English only please, we're not that sophisticated.

Qoph 03-24-2009 07:12 PM

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."

buccaneere 03-24-2009 10:31 PM

1 Attachment(s)
No sprechen sie swahili-bonics ni francey, but I do speak smiley, and there ain't no mistakin' that smiley in the title!!!

http://www.linuxquestions.org/questi...5&d=1237951738



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 ...

Bl00m 03-25-2009 09:43 AM

Sorry for the mistake i did:P

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:)

Have a nice day everyone.

john test 03-26-2009 01:26 PM

--- Static IP Address = # network-admin - Highlight adater - Properties - type addr
-- Static IP Click System > Administration > Network > General > Properties > addr

farslayer 03-26-2009 01:46 PM

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



All times are GMT -5. The time now is 05:42 PM.