LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-09-2013, 02:26 PM   #1
ask2013
LQ Newbie
 
Registered: Sep 2013
Posts: 1

Rep: Reputation: Disabled
Options for creating virtual interface - specific configuration


Hi,
I am looking for help with creating virtual network interface on a powerPC running Linux. My setup is
described below. If this is not the correct forum my apologies, please direct me to an appropriate one.

Currently, the powerPC's TSEC interface is wired to a port on a network switch chip. Another port on
the switch is connected to a wider network(say LAN-A) and switch is configured to forward packets received
on this port(network-port) to the powerPC connected port(cpu-port). All other ports on the switch discard
packets. A single interface (eth0) is setup on the powerPC. This interface can be configured for either
static or DHCP, default is DHCP.

With new design, packets will now be received on a third port(new-port)on the switch. The packet sources
are devices on a separate network(say LAN-B).These packets are also forwarded to the cpu-port. Thus, the
powerPC will now receive packets from two separate sources via the same cpu-port and consequently the same
physical interface.

What I want to be able to do on the powerPC is:
- distinguish between the packets based on their port of ingress(network-port or new-port) & process them
separately.
- send unicast messages to devices on LAN-B via new-port and receive responses from them

Initial thought is to create a virtual interface (say eth01) on the power PC and send all data from new-port
to this virtual interface. Open two sockets - one on each interface(eth0, eth01) and process the packets in
their own separate threads.

Some options I investigated, given the limitations of the linux version I use:
1. create an alias. Was able to do this using static IP, the solution is not feasible because network initialization
fails when primary interface is configured for DHCP as both interfaces use the same MAC address.
2. Create MAC VLANs : my version of linux (based on arch Linux) does not support this. Upgrading to an entire new
version is not possible, but if a package is available I can include it if it serves my purpose.
3. Hack into the network layer and fake the mac address in the DHCP requests for the virtual interface: Last resort
solution as it will call for full cycle extensive testing, not feasible in the short time available.

If anyone has any suggestions on how I can achieve what I want to do, please help.

Thank you for your time.
ASK
 
  


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
[SOLVED] LFS 7.3 Chapter 7.2.2 Creating Network Interface Configuration Files DeeGee Linux From Scratch 23 07-03-2013 11:59 PM
Creating a virtual interface to get more ephemeral ports (CentOS 5) MediocreGopher Linux - Networking 1 01-25-2011 09:47 PM
[SOLVED] How do I look for specific options in a man page? protolocke Linux - General 5 11-19-2010 06:31 AM
Outgoing local trafic over virtual interface has not virtual ip address :-( tkmbe Linux - Networking 3 08-25-2009 08:03 PM
Adding virtual interface for IP based virtual host pridefc Linux - General 6 03-16-2008 03:52 PM

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

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