Jump to content

Ubuntu Server Help

Flyguygamer
Go to solution Solved by MrSuperb,

Now it is working. I am just not sure what to do from here.

 

just put the right information in the text file ;)

 

e.g. this:

iface eth0 inet staticaddress 192.168.1.100network 192.168.1.0netmask 255.255.255.0broadcast 192.168.1.255gateway 192.168.1.1dns-nameservers 192.168.1.1 8.8.8.8

that depends on your network though.

I am trying to get a static ip for my nas but I can't run the commands.

 

Set Static IP Address

sudo nano /etc/network/interfaces

iface eth0 inet static

address 192.168.1.100

network 192.168.1.0

netmask 255.255.255.0

broadcast 192.168.1.255

gateway 192.168.1.1

dns-nameservers 192.168.1.1 8.8.8.8

Link to comment
Share on other sites

Link to post
Share on other sites

???

 

There is only one command

 

You have to set the static ip in your dhcp server (i.e. most of the times your router)

Mini-Desktop: NCASE M1 Build Log
Mini-Server: M350 Build Log

Link to comment
Share on other sites

Link to post
Share on other sites

???

 

There is only one command

 

You have to set the static ip in your dhcp server (i.e. most of the times your router)

I did, nothing. The command doesn't work.

Link to comment
Share on other sites

Link to post
Share on other sites

are you logged in????

Yes. Even when I did get in yesterday,nothing worked inside of nano. ^O did nothing. Not I cant even access. I will log out and try again

Link to comment
Share on other sites

Link to post
Share on other sites

Yes. Even when I did get in yesterday,nothing worked inside of nano. ^O did nothing. Not I cant even access. I will log out and try again

 

you are aware that ^ represents ctrl ?

 

I prefer vi to nano

Mini-Desktop: NCASE M1 Build Log
Mini-Server: M350 Build Log

Link to comment
Share on other sites

Link to post
Share on other sites

so are you logged in now? what happens when you just enter nano and press enter?

Now it is working. I am just not sure what to do from here.

Link to comment
Share on other sites

Link to post
Share on other sites

Now it is working. I am just not sure what to do from here.

 

just put the right information in the text file ;)

 

e.g. this:

iface eth0 inet staticaddress 192.168.1.100network 192.168.1.0netmask 255.255.255.0broadcast 192.168.1.255gateway 192.168.1.1dns-nameservers 192.168.1.1 8.8.8.8

that depends on your network though.

Mini-Desktop: NCASE M1 Build Log
Mini-Server: M350 Build Log

Link to comment
Share on other sites

Link to post
Share on other sites

e.g.

# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).# The loopback network interfaceauto loiface lo inet loopback# The primary network interfaceauto em1iface em1 inet static        address 192.168.0.100        netmask 255.255.255.0        network 192.168.0.0        broadcast 192.168.0.255        gateway 192.168.0.1        dns-nameservers 8.8.8.8 8.8.4.4# This is an autoconfigured IPv6 interfaceiface em1 inet6 auto

Mini-Desktop: NCASE M1 Build Log
Mini-Server: M350 Build Log

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×