LinuxQuestions.org
Help answer threads with 0 replies.
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 05-20-2004, 11:35 PM   #1
otisthegbs
Member
 
Registered: May 2003
Location: Vancouver
Distribution: RH9
Posts: 100

Rep: Reputation: 15
creating virtual (aliased) ethernet cards


Hey there to all!

Im currently running RH9 and I need to create 253 virtual ethernet cards!! Redhat calls them aliases not virtual and I believe it's because the ones that are aliased do not use the 802.1q standard, but not positve on this though. So I know you can create aliased ethernet cards in the GUI app redhat-config-network, but this is a very time consuming task. I was wondering if there was a command line app I could write a script around. I know there is a program called vconfig but every time I execute it, it reports that the 802.1q module is not loaded, also it creates the cards as eth1.2 eth1.3 eth1.4 etc... but redhat-config-network creates them as eth1:1 eth1:2 eth1:3 etc.... are theses two types of ethernet aliases the same? And does vonfig do what I need it to?

P.S. I know people are going to ask WHY I'm doing this, I just am! I want to create a 192.168.0.0/16 network off of one box. Yes I know thats big, but thats what I want to do! Each aliased ethernet card will get its own subnet 192.168.x.0.

Thx to all for any answers you give.
 
Old 05-20-2004, 11:44 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
Whatever reason you need 254 addresses, here is how you can

#cd /etc/sysconfig/network-scripts
#vi ifcfg-ethx-rangex

IPADDR_START=192.168.0.1
IPADDR_END=192.168.0.254
CLONENUM_START=0
 
Old 05-21-2004, 11:40 AM   #3
otisthegbs
Member
 
Registered: May 2003
Location: Vancouver
Distribution: RH9
Posts: 100

Original Poster
Rep: Reputation: 15
Ok, I understand, and I did think that the network-scripts have something to do with it, but why are you telling me to make the range 192.168.0.1-192.168.0.254? I need 192.168.1.3-192.168.253.3

is it the same trick?
I assume not cause eth1:1's can only have one subnet assigned to them
 
Old 05-24-2004, 03:48 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
Assuming eth1 is the card you want to host the entire internet on

#vi ifcfg-eth1-range0
IPADDR_START=192.168.0.1
IPADDR_END=192.168.0.254
CLONENUM_START=0

#vi ifcfg-eth1-range1
IPADDR_START=192.168.1.1
IPADDR_END=192.168.1.254
CLONENUM_START=254

and so on and on.
 
  


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
Java creating a deck of cards djgerbavore Programming 4 10-02-2004 03:57 PM
using 2 ethernet cards one Tx and one Rx kayser Linux - Networking 11 05-03-2004 02:03 PM
creating virtual links? JSkalka Linux - Newbie 2 01-17-2004 05:58 PM
Need help creating virtual nodes Falieson Linux - Software 3 08-07-2003 01:09 PM
Ethernet Cards and Sound Cards SchizoIV Linux - Newbie 2 07-05-2002 09:10 PM

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

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