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 01-08-2012, 03:39 PM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Why are there 2 different ways to ...


Why are there 2 different ways to have multiple IP addresses on a single interface? One of the ways is to simply add IP addresses to a single interface. The other is to create an alias interface name. These are clearly different structures inside the kernel to effectively do the same thing.

The method of using an alias interface name (e.g. eth0:1) is the most awkward to work with (because you have to search to find which interface name has which IP address to delete one, or find an available name to add one). So why can't that one be depricated and just removed in the next major Linux kernel? Both the "ifconfig" and "ip" commands support the simpler method.

Or am I missing some other advantage of interface alias names?
 
Old 01-09-2012, 07:27 AM   #2
amilo
Member
 
Registered: Oct 2011
Location: Nederland
Distribution: Debian, Centos, Ubuntu
Posts: 81

Rep: Reputation: Disabled
Ifconfig doesn't show the second address set by ip addr add .....
 
Old 01-09-2012, 06:49 PM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by amilo View Post
Ifconfig doesn't show the second address set by ip addr add .....
Oh, I guess it just does so for IPv6. They should fix that.
 
  


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
Ways of (..) (thrashcan) win32sux Linux - Security 5 10-06-2010 03:17 PM
LXer: 15 Ways Nokia’s N900 Is Better Than Apple’s iPhone (and 5 ways it’s not) LXer Syndicated Linux News 0 11-14-2009 08:20 AM
piping both ways? quinton Linux - Newbie 3 09-20-2004 07:10 PM
what are the ways of installation paschim Linux - Newbie 2 06-27-2004 11:45 PM
Cant Install Off CD! Other Ways? Rv5 Red Hat 5 09-04-2003 02:20 PM

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

All times are GMT -5. The time now is 02:01 PM.

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