LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-07-2014, 02:13 AM   #1
zerop
Member
 
Registered: Jul 2014
Posts: 65

Rep: Reputation: Disabled
Question can router forward layer 2 frame written from linux?


can router forward layer 2 frame(without setting destination ip and source ip) written from linux?

router belong to layer 3

why router can send layer 2 frame from computer without knowing destination ip?
 
Old 08-08-2014, 11:38 AM   #2
stateless
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 166
Blog Entries: 1

Rep: Reputation: 4
Your question is a bit cryptic, but in short: routers don't forward layer 2 frames. Routers forward layer 3 packets, by removing the layer 2 frame information and wrapping it up again in a new frame on the other side.

Systems on the same layer 2 link (ethernet network usually) typically know the ip address of the host (or gateway) they want to communicate with, and then they have to figure out the layer 2 address (MAC) through ARP.
 
Old 08-09-2014, 03:22 AM   #3
zerop
Member
 
Registered: Jul 2014
Posts: 65

Original Poster
Rep: Reputation: Disabled
according to your reply,
can a dedicate line from ISP between equity exchange and trading room in another location connected with only switches and not use any routers?
 
Old 08-09-2014, 03:20 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Still confusing.


There a number of ways to route what might be called "non routable" traffic.
Generally one makes a VPN of some type like a GRE tunnel.
One might fool a switch or router to not configure an ip but you'd have to have a dedicate line or tunnel.
There may be some other ways to encapsulate the data in a tcp/ip layer.
One can actually write a driver for odd data.

The level of the switches would determine the possibilities and maybe the type of data. Generally the so call smart switches are really routers. Even commercial switches have options. Soho switches and unmanaged are unlikely to have this ability.

You'd then route traffic to a system to then encapsulate the data and send it.

There are some old protocols too that might be used. Makes the data less secure and difficult to manage.
 
  


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] How to make linux server as a router to forward ip address ahmedsamad5 Linux - Networking 1 06-12-2013 03:21 AM
send a frame to the router. libnet. franmf Programming 0 12-13-2012 01:44 PM
Layer 2 Switch - use linux as VLAN router to network towme Linux - Networking 11 09-16-2009 12:25 PM
view ehternet frame drop by link layer mahbub_bd Linux - Networking 2 02-16-2005 06:18 AM
Linux router packet forward problem netguy2000 Linux - Networking 1 03-26-2004 07:30 AM

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

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