LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-06-2006, 04:50 AM   #1
polemon
Member
 
Registered: Jun 2005
Distribution: Fedora 18, Ubuntu 11.10, Ubuntu Server 11.10, DamnSmallLinux 3.4.4, FreeDOS 1.1, OpenBSD 5.0
Posts: 194

Rep: Reputation: 31
IPv4 addresser are not being assigned on boot under Ubuntu 6.10


Hi,

I have two network adapters configured on my laptop.
a Wireless LAN adapter and an Ethernet 100 card.

this is what my /etc/networking/interfaces looks like:

Code:
# cat interfaces
auto lo
iface lo inet loopback


iface eth0 inet static
address 192.168.0.11
netmask 255.255.255.0

auto eth1
iface eth1 inet dhcp

auto eth2
iface eth2 inet dhcp

auto ath0
iface ath0 inet dhcp

auto wlan0
iface wlan0 inet dhcp


auto provider
iface provider inet ppp
provider provider

    pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
as you can see, eth0 has a static IP, but this IP is not being assigned on boot.

I have to assign it with ifconfig manually, after I log in, which is really annoying.

It used to work for some time, but in the last week or so, it just seized to assign the IPv4 address, while the IPv6 address and the interface itself, is loaded at boottime.

please help.

--polemon
 
Old 11-06-2006, 03:19 PM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

just add "auto eth0" line before "iface eth0..." line and it should work

Oliv'
 
Old 11-07-2006, 12:01 PM   #3
polemon
Member
 
Registered: Jun 2005
Distribution: Fedora 18, Ubuntu 11.10, Ubuntu Server 11.10, DamnSmallLinux 3.4.4, FreeDOS 1.1, OpenBSD 5.0
Posts: 194

Original Poster
Rep: Reputation: 31
Nevermind, I fixed it myself.

The pre-up command was th source of the problems.

As well as the provider directive, since the ppoeconf allreade has a pppd script in init.d, so I was establishing my interconnection twice.

the
Code:
auto eth0
line is the last line in the file, works fine.
 
  


Reply

Tags
ifconfig, interfaces, netconfig, ubuntu



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
How to make XP boot as default OS in WinXP-Ubuntu dual boot system svin Ubuntu 14 11-04-2009 04:49 PM
Routers assigned IP carlos22 Linux - Networking 4 09-12-2006 07:01 AM
Need help fixing boot problem on Ubuntu/WinXp dual-boot Ay-Karamba! Linux - General 5 09-06-2005 09:20 PM
What's my DHCP assigned IP and where is it? Buckyjunior Linux - Networking 7 02-27-2004 01:29 PM
net.ipv4.ip_forward=1 How define it on boot ? sergiodemoura Linux - Newbie 5 12-04-2003 04:52 AM

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

All times are GMT -5. The time now is 07:51 AM.

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