PDA

View Full Version : [ubuntu] network setting restart after every shutdown



arturus
January 18th, 2009, 03:01 PM
hello.
I'm use ubuntu 8.10 and I have problem with network setting. I have to use static IP, netmask and gateway. After every shutdown I have to type my setting again. My cards are:
00:06.0 Ethernet controller: nVidia Corporation MCP65 Ethernet (rev a3)
07:05.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)

I tried to type my setting in /etc/network/interfaces and /etc/resolv.conf but it doesn't change anything.

Thanks in advance.
Artur

nixscripter
January 18th, 2009, 09:31 PM
Please post the contents of those two files (/etc/network/interfaces and /etc/resolv.conf) in [code] tags.

arturus
January 19th, 2009, 07:35 AM
auto lo
iface lo inet loopback


auto akademik
iface eth0 inet static
address 10.2.7.133
netmask 255.255.224.0
gateway 10.2.31.254



# Generated by NetworkManager
nameserver 150.254.180.6
nameserver 150.254.173.3


This informations I typed manually. Normally the interfaces is almost empty (only two first lines are automatic)

Iowan
January 19th, 2009, 04:12 PM
The "auto akademik" looks unusual, but probably not the cause.
See if this (http://www.prash-babu.com/2009/01/how-to-setup-static-ip-in-ubuntu.html) How-To helps.

arturus
January 19th, 2009, 07:25 PM
No, this tutorial is my normal way to set up static ip. Has anybody any idea?

Iowan
January 19th, 2009, 09:22 PM
Here (http://ubuntuforums.org/showthread.php?t=974382) is the static IP workaround. I haven't checked lately to see if NM update has made it obsolete.

arturus
January 19th, 2009, 10:45 PM
Hm thanks, but it's still not working. I have new observation. After restart I have new e I don't know how to say it. Example:D Now I have eth11 and after restart I will have eth12 and after next restart eth13.

Iowan
January 19th, 2009, 10:52 PM
Here (http://www.shallowsky.com/blog/linux/gutsy-persistent-net.html) is an article discussing similar problem. I've seen a couple more threads around here mentioning similar problem.

arturus
January 23rd, 2009, 05:30 PM
Cheers Iowan. This link looks like my problem:) But could you help me more, because I don't what I have to change in 70-persistent-net.rules

E
dit /etc/udev/70-persistent-net.rules to give the device the right name (eth1, eth0 or whatever).

my 70-persistent-net.rules looks like that

# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.

# PCI device 0x10de:0x0450 (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:1f:3a:f8", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x10de:0x0450 (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:5c:4d:0b", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x10de:0x0450 (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:35:e2:c1", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

# PCI device 0x10de:0x0450 (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:54:ac:eb", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"

# PCI device 0x10de:0x0450 (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:91:25:1a", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4"

# PCI device 0x10de:0x0450 (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:38:8a:7c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth5"

# PCI device 0x10de:0x0450 (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:4c:62:47", ATTR{type}=="1", KERNEL=="eth*", NAME="eth6"

# PCI device 0x10de:0x0450 (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:fe:b6:3d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth7"

# PCI device 0x10de:0x0450 (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:57:42:93", ATTR{type}=="1", KERNEL=="eth*", NAME="eth8"

# PCI device 0x10de:0x0450 (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:51:a3:ba", ATTR{type}=="1", KERNEL=="eth*", NAME="eth9"

# PCI device 0x10de:0x0450 (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:05:5e:c8", ATTR{type}=="1", KERNEL=="eth*", NAME="eth10"

# PCI device 0x10de:0x0450 (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:9a:5a:b2", ATTR{type}=="1", KERNEL=="eth*", NAME="eth11"

# PCI device 0x10de:0x0450 (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:9e:c3:b1", ATTR{type}=="1", KERNEL=="eth*", NAME="eth12"

Should I remove all eth* and save only one?

Arturus

arturus
January 23rd, 2009, 07:08 PM
Everything works:D I'm very very very very happy:D

Iowan
January 23rd, 2009, 07:29 PM
I'm happy (maybe not very, very, very, very... but happy) it worked for you. Did you edit the file - or find another solution?

arturus
January 24th, 2009, 12:28 PM
I edited this file:)