Static IP addressing

Questions about cabled networking
Forum rules
Before you post please read how to get help
Post Reply
saphetiger
Level 1
Level 1
Posts: 2
Joined: Sat Feb 22, 2014 6:45 pm

Static IP addressing

Post by saphetiger »

I recently migrated my Ubuntu 10.10 machine over to Linux Mint 16 Petra. I really like it. There's one thing that's baffling me though. Normally I go into /etc/network/interfaces and set my IP there, but this isn't working here. Is there something that changed with v16? All of the documentation for prior versions of mint seem to indicate this is still how to do it.

Here is my /etc/network/interfaces file:

Code: Select all

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static 
address 192.168.1.52
netmask 255.255.255.0
gateway 192.168.1.1
I was able to set my ip address using the network manager applet, but I really don't want users to have access to change the ip address, and do need a static IP set at boot.

User avatar
mbohets
Level 2
Level 2
Posts: 97
Joined: Sun Apr 28, 2013 8:26 am
Location: Belgium

Re: Static IP addressing

Post by mbohets »

I used to have a fixed IP adress also on my linux box.
To avoid having to reconfiger it each time there is a new version, I let the setting to the standard DHCP request settings,
and configured my router to always give the same IP adress to all my devices (based on the mac adress of the device)

So techinally the devices do not have a fixed IP adress, but in practice they have because my router always gives the same IP adress to a certain device mac adress
Je suis Charlie, how many more people have to die for religion

ruud
Level 1
Level 1
Posts: 1
Joined: Mon Feb 24, 2014 1:29 pm

Re: Static IP addressing

Post by ruud »

i made a config with modifying my /etc/network/interfaces and assigned an static dhcp.

Then i got an desired static ip address.
Checked with ip addr command.
But no internet....
In my case i had to give the command dhclient as root....

And yes internet .......
Linux Mint 16....

Post Reply

Return to “Ethernet”