LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   IPv4 addresser are not being assigned on boot under Ubuntu 6.10 (https://www.linuxquestions.org/questions/linux-networking-3/ipv4-addresser-are-not-being-assigned-on-boot-under-ubuntu-6-10-a-499063/)

polemon 11-06-2006 04:50 AM

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

Oliv' 11-06-2006 03:19 PM

Hello,

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

Oliv'

polemon 11-07-2006 12:01 PM

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.


All times are GMT -5. The time now is 03:29 PM.