LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-24-2009, 06:38 PM   #1
Bl00m
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Rep: Reputation: 0
Question 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
 
Old 03-24-2009, 06:48 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
English only please, we're not that sophisticated.
 
Old 03-24-2009, 07:12 PM   #3
Qoph
LQ Newbie
 
Registered: Mar 2009
Distribution: SuSE 10.3>11.1, Slackware 13.0
Posts: 18

Rep: Reputation: 0
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."
 
Old 03-24-2009, 10:31 PM   #4
buccaneere
Member
 
Registered: Nov 2007
Posts: 213

Rep: Reputation: 16
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 ...
Attached Thumbnails
Click image for larger version

Name:	Screenshot.jpg
Views:	25
Size:	43.1 KB
ID:	355  

Last edited by buccaneere; 03-24-2009 at 10:50 PM.
 
Old 03-25-2009, 09:43 AM   #5
Bl00m
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 03-26-2009, 01:26 PM   #6
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
--- Static IP Address = # network-admin - Highlight adater - Properties - type addr
-- Static IP Click System > Administration > Network > General > Properties > addr
 
Old 03-26-2009, 01:46 PM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu server 6.06 LTS won't start after install saber0091 Linux - General 19 10-27-2009 02:57 AM
LXer: Installing And Using OpenVZ On Ubuntu 8.04 LTS Server LXer Syndicated Linux News 0 08-12-2008 06:50 PM
LXer: I update Ubuntu 6.06 LTS and 8.04 LTS ... one has SSH issues, one does not LXer Syndicated Linux News 0 05-20-2008 07:30 AM
LXer: The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server) LXer Syndicated Linux News 0 04-27-2008 06:50 AM
Ubuntu 6.06 LTS and Mail Server wh33t Linux - Server 4 11-16-2007 08:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration