LinuxQuestions.org
Review your favorite Linux distribution.
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 10-13-2010, 09:15 AM   #1
haskin
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 0
ipv4ll address in parallel with DHCP


I would like to define a IPv4LL address (169.254.0.0/16) in parallel with the DHCP address received from the server on the same network card.

I tried to modify /etc/network/interfaces to that effect (see below), but either I only manage to get one of the two at any time.


auto lo
iface lo inet loopback

auto eth0 eth0:1

iface eth0 inet dhcp
iface eth0:1 inet ipv4ll


Any hints?
 
Old 10-15-2010, 12:07 AM   #2
moniker117
Member
 
Registered: May 2005
Location: Los Angeles, CA, USA
Distribution: Arch
Posts: 48

Rep: Reputation: 15
Quote:
Originally Posted by haskin View Post
I would like to define a IPv4LL address (169.254.0.0/16) in parallel with the DHCP address received from the server on the same network card.

I tried to modify /etc/network/interfaces to that effect (see below), but either I only manage to get one of the two at any time.


auto lo
iface lo inet loopback

auto eth0 eth0:1

iface eth0 inet dhcp
iface eth0:1 inet ipv4ll


Any hints?
Are you trying to have two IPs on the same card? I've never tried something like that, but have you considered trying to set up some sort of virtual network device? It seems to me that you would need to tell the computer that you have two logical network devices (both point to the same hardware) then have each logical device use a separate protocol to get an IP address.
 
Old 10-16-2010, 11:20 AM   #3
haskin
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Are you trying to have two IPs on the same card? I've never tried something like that, but have you considered trying to set up some sort of virtual network device? It seems to me that you would need to tell the computer that you have two logical network devices (both point to the same hardware) then have each logical device use a separate protocol to get an IP address.
Yes, I am trying to have both addresses on the same NIC, to implement an ad-hoc network in addition to the standard (DHCP based) network.

When I set the 2nd interface (eth0:1) to a static IP this script works, however when I set it to ipv4ll the 2nd interface is ignored.
 
  


Reply



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
Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address blackfish Linux - Server 3 08-17-2007 12:54 AM
Single DHCP server ,to provide the ip address to a MAC address in two different subne alix123 Linux - Software 5 05-08-2007 11:16 PM
How To know if a host configured with DHCP has obtained IP address from DHCP server? Prassanta SUSE / openSUSE 1 06-29-2006 09:48 AM
dhcp no ip address and netmask dont match route address pengy666 Linux - Wireless Networking 1 05-08-2005 09:33 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM

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

All times are GMT -5. The time now is 03:16 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