Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Direct Ethernet connection to a mac
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Direct Ethernet connection to a mac
24th Mar, 2014, 10:50 AM
Post: #6
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Direct Ethernet connection to a mac
(11th Feb, 2014 09:52 AM)Jan Wrote:  Then I can just connect via the cable and the common name and get much better speeds than via wifi.

But how can this (or something similar) be done?

you need something like "hotplug" for eth0. but hotplug directive in /etc/network/interfaces on eth0 won't work as "hotplug" in that sense means hot-plugging the adapter, not "network link".

you can play a bit with package "ifplugd" what is a daemon supposed to watch network link changes (cable out/in).

but most reliable and easiest to configure solution is as CurlyMo told you with static address on eth0 from different net as your wlan0 usually gets.

(just got idea) possible would be also to define a bridge interface (br0), configure static/dhcp address on it and putting wlan0/eth0 to static (but without actual ip defined) and auto - like this:

Code:
auto lo eth0 br0
allow-hotplug wlan0

iface lo inet loopback
iface eth0 inet static
iface wlan0 inet static

iface br0 inet static
        address 192.168.1.104
        network 192.168.1.0
        netmask 255.255.255.0
        broadcast 192.168.1.255
        gateway 192.168.1.2
    dns-nameservers 127.0.0.1
    dns-search private
        bridge_ports eth0 wlan0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0

or br0 as dhcp

Code:
iface br0 inet dhcp
        bridge_ports eth0 wlan0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0

you will have just one IP address at all times and should be no difference if you connect via wlan0, eth0 or even both.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Direct Ethernet connection to a mac - Jan - 5th Feb, 2014, 02:34 AM
RE: Direct Ethernet connection to a mac - IriDium - 6th Feb, 2014, 05:38 AM
RE: Direct Ethernet connection to a mac - Jan - 11th Feb, 2014, 09:52 AM
RE: Direct Ethernet connection to a mac - mk01 - 24th Mar, 2014 10:50 AM
RE: Direct Ethernet connection to a mac - Jan - 11th Feb, 2014, 03:54 AM
Re: Direct Ethernet connection to a mac - CurlyMo - 12th Feb, 2014, 01:02 AM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 29th May, 2025, 06:13 PM Powered By MyBB, © 2002-2025 MyBB Group.