LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-15-2008, 10:14 PM   #1
swordphsh
Member
 
Registered: Sep 2008
Distribution: Ubuntu 9.04 X86_64 Desktop, 8.04 X86 Server
Posts: 33

Rep: Reputation: 15
Help with virtual interfaces


i'm trying to find a way to send specific traffic through a certain virtual ethernet device.

Here's my setup:
i'm in a college dorm with a 180KB/s cap per mac address, so i'm trying to figure out a way to download a file through one interface and use another interface for my web browsing, etc.

Thanks in advance.
 
Old 09-16-2008, 12:25 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
The virtual interfaces share the physical MAC address.
The kernel routing table determines which by interface packets leave your system. Your applications don't make this decision.
 
Old 09-16-2008, 12:51 AM   #3
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
Mr. C is right, but I think I may have an idea:

VMware can create virtual machines that use bridged networking. In this setup, the virtual NIC gets its own MAC address. I am fairly certain that even though it accesses the network through the physical card in your computer, it still looks like it is a separate NIC on the network (the reason I suspect this is b/c my router can hand out IP's to the virtual NIC by looking at its MAC address). In this set up, I would use the virtual machine to do web surfing and the physical NIC to do downloads. This set up also has its security advantages so that if you get a virus while web surfing, it's contained in the virtual machine and not your physical machine.

NOTE: Some college's (and network's in general) will block access based on MAC addresses. Did you have to run a program or fill out any forms to be granted network access at your college?
 
Old 09-16-2008, 12:56 AM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
... and another possible problem. Smart switches can recognize and associate a single MAC address with a switch port, and block all but the first MAC address in operation.
 
Old 09-16-2008, 12:33 PM   #5
swordphsh
Member
 
Registered: Sep 2008
Distribution: Ubuntu 9.04 X86_64 Desktop, 8.04 X86 Server
Posts: 33

Original Poster
Rep: Reputation: 15
So the virtual interface mac cannot be changed using ifconfig?...I figured it could, but haven't played around with it yet.

Quote:
The kernel routing table determines which by interface packets leave your system. Your applications don't make this decision.
That said, lets say I have 2 physical interfaces, is what I want to do possible? I used to do it on Windows by giving each interface the same default gateway and prioritizing the connection to one, starting the download, then prioritizing the other connection so everything after that would go through the second interface.

To what CRC123 said:
The VMware idea does work, that's what I normally use, but am looking for a better solution.
Also, the school allows an unlimited amount of macs to be registered per user and it will allow any mac, as long as it's registered with their system.

Thanks again for the quick replies.
 
Old 09-16-2008, 01:19 PM   #6
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
You can use policy-based routing. See:

http://lartc.org/howto/index.html
http://www.policyrouting.org/PolicyR...NLINE/TOC.html
http://linux-ip.net/html/ch-routing.html
 
  


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
Virtual Interfaces Question threegig Linux - Networking 1 05-28-2006 08:48 AM
iptables and virtual interfaces redhat_help Linux - Security 2 03-19-2006 03:24 PM
Virtual Interfaces geony Linux - Networking 6 02-13-2005 11:25 AM
Virtual Interfaces linuxboy69 Linux - Networking 1 12-31-2003 03:08 PM
Virtual Interfaces da_tibmeister Linux - Networking 2 10-15-2003 09:32 AM

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

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