Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am running Slackware 12.0 and trying to setup virtual ethernet interfaces. I have setup 6 interfaces thus far without any problems, in the /rc.d/rc.inet1.conf file. However, the 7th, 8th, and 9th interfaces continuously fail as soon as I restart the inet1 service. I can temporarily add them with the ifconfig command, but nothing solid with the inet1 file. The error is something along the lines of "SIOCSIFFLAGS: Cannot assign requested address". I have double checked for any mis-typing in the file, and the computer is not currently connected to any internet, for any type of IP conflict situation. Is there some type of limitation on the number of interfaces or a file I have to change to have more interfaces? Any help would be appreciated.
# DETERMINE INTERFACE LIST #
# Compose a list of interfaces from /etc/rc.d/rc.inet1.conf (with a maximum
# of 6 interfaces, but you can easily enlarge the interface limit
# - send me a picture of such a box :-).
# If a value for IFNAME[n] is not set, we assume it is an eth'n' interface.
# This way, the new script is compatible with older rc.inet1.conf files.
# The IFNAME array will be used to determine which interfaces to bring up/down.
So yes, by default you are limited to 6 interfaces (virtual or physical), but you can increase the "MAXNICS" variable if you need more.
Also, I was a little confused by the mention of 'virtual' in your post. As far as I'm aware, Slackware's scripts do not have a mechanism for handling virtual interfaces (e.g. eth0:0). I put mine in rc.local.
You can specify "IFNAME" for any of the interface configurations, which would allow you to specify a virtual interface rather than a physical one.
If left to it's own devices, the rc.inet1 script would attempt to increment ethx for each configuration, which will fail when you don't have the physical devices to back it up. But if you used something like "IFNAME="eth0:1", it would force the script to use eth0:1 rather than eth1. Since ifconfig generates the virtual interfaces as soon as you assign it an IP, the script creates the virtual interface without explicit support for doing so.
A bit of a hack, and probably not officially supported, but I am guessing that is what he has done here.