Jump to content
Sign in to follow this  
Guest Slettet+142

[LØST]få statisk ip i linux med kommandoer?

Recommended Posts

Guest Slettet+142

hei...

hvilke kommandoer må man bruke for å sette statisk ip i linux?

bruker Ubuntu Server.

 

prøvde å lese deler av IP-manualen, men den e så lang at det mest sannsynlig og forhåpentligvis går kjappere å få svar her...

:)

Edited by Slettet+142

Share this post


Link to post

Jeg ville heller redigert /etc/network/interfaces til noe slikt: (som jeg har det)

 

auto eth0

iface eth0 inet static

address 192.168.0.101

netmask 255.255.255.0

gateway 192.168.0.1

Share this post


Link to post
Guest Slettet+142
Jeg ville heller redigert  /etc/network/interfaces til noe slikt: (som jeg har det)

 

auto eth0

iface eth0 inet static

address 192.168.0.101

netmask 255.255.255.0

gateway 192.168.0.1

6629484[/snapback]

kor endrer eg dns-en då?

 

eg har gjort det sånn:

auto eth0

iface eth0 inet static

address 10.0.0.2

address 80.202.114.***

netmask 255.255.255.0

gateway 10.0.0.1

 

gjør det nemlig sånn, for å få statisk ip, bruker 3dns-er og 2ip'er...

Share this post


Link to post
Guest Slettet+142
DNS konfigurasjon ligger i /etc/resolv.conf

6640946[/snapback]

ka vil dette si(i filen):

search lan

 

?

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...