LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-27-2005, 02:08 PM   #1
Ned2
LQ Newbie
 
Registered: Feb 2005
Posts: 3

Rep: Reputation: 0
Multiple NICs, virtual terminals?


This question is somewhere between networking and applications.

I have a lab environment in which I'd like to create several virtual "dumb terminals".

I would like to install several ethernet cards and then configure shells that are statically associated with network cards. Shell instance A would be always and only associated with (for instance) Eth1, while shell B would be with Eth2.

It would be ideal if, other than these 2 special shells, anything else running on the machine would use Eth0. I could then have Eth0 hooked to the LAN outside the lab.

It is necessary to have separate NICs. Multiple IP addresses through a single NIC won't do. The NICs will be cabled to different connections.

It is necessary to have this work within a single account (which could be root). Need to be able to switch between "terminals" at a mouseclick, not by logout/login.

The special terminal shells must be able to run at least ping, traceroute, and telnet.

I think the crux of the matter is associating a particular network device with a particular shell instance.

I am using SUSE 8.1/KDE. If changing distros helps solve the problem, I'll do it.

TIA
 
Old 02-27-2005, 02:34 PM   #2
soup
Member
 
Registered: Jun 2003
Location: London, Ontario
Distribution: Ubuntu, Slackware, FreeBSD
Posts: 61

Rep: Reputation: 15
I wonder if you could just clarify a couple of things. When you say you want a virtual terminal associated with a network card do you mean that when you use for example tty3 it would only be able to see eth1 or something like this?

If I understand your question, I don't think you can acheive the results that you want.

My only idea for what you can do is to start looking through the man page for bash and some of the networking utilities.

Last edited by soup; 02-27-2005 at 02:36 PM.
 
Old 02-27-2005, 03:07 PM   #3
Ned2
LQ Newbie
 
Registered: Feb 2005
Posts: 3

Original Poster
Rep: Reputation: 0
"tty3 it would only be able to see eth1"

Yes, that's it exactly. If for instance, I attempted to ping through tty3, that attempt should fail if it can't do so via eth1. It should not, failing on eth1, attempt to use some global-to-my-machine default gateway.

You're probably right about burrowing into the bash or similar info. Thanks.
 
Old 02-27-2005, 03:11 PM   #4
soup
Member
 
Registered: Jun 2003
Location: London, Ontario
Distribution: Ubuntu, Slackware, FreeBSD
Posts: 61

Rep: Reputation: 15
sorry i couldnt be more help. I hope you get your setup working.
 
Old 02-27-2005, 03:36 PM   #5
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,062

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
why? linux supports multiple terminals.. and multiple network cards, but I don't think you can do that you COULD however use serial hardware for 'dumb terminals' but i'm not sure that's what you want.
What you are talking about is probably possible, but you're most likely going to have to write it yourself. good luck
 
Old 02-27-2005, 04:24 PM   #6
soup
Member
 
Registered: Jun 2003
Location: London, Ontario
Distribution: Ubuntu, Slackware, FreeBSD
Posts: 61

Rep: Reputation: 15
I just thought of something that may work. You could try writing wrapper shell scripts for the commands you want to run to explicitly use certain interfaces. and then alias these scripts to the commands. or something like this.... maybe use a trick with the path.
 
Old 02-27-2005, 04:44 PM   #7
Ned2
LQ Newbie
 
Registered: Feb 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Frieza: "why? linux supports multiple terminals.. and multiple network cards, but I don't think you can do that"

Right. What I want to do is essentially the reverse of multiple users inbound. I want the host to pretend to _be_ multiple users outbound, all the way down to what NIC they use.

I think Soup & I thought of the script wrapper at the same time. Ping at least could be wrapped that way. I'm checking other commands for the option of specifying which interface to use.

It would be cleaner & more dependable to be able to specify which network interface is the default within a particular shell instance for any command that deals with the network. Research continues...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Virtual terminals rnicholus Linux - Software 1 09-21-2005 01:30 PM
Combining multiple NICs to one virtual NIC damista Linux - Networking 2 04-26-2005 10:00 PM
Virtual Terminals Kruncher Slackware 9 04-25-2005 06:19 AM
Intel D845GLLY + Multiple Intel Pro 100 NICs + kernel 2.6.x = NICs don't work egable Linux - Hardware 0 02-04-2005 02:30 PM
Virtual Terminals sadiboyz Linux - Newbie 1 04-23-2003 04:43 PM


All times are GMT -5. The time now is 12:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration