Netctl: Using same ethernet interface for PPPoE and LAN

Configuration overview
One ethernet interface connected to a switch which has both the LAN and my ADSL router (running in bridge mode).
My Arch PC should connect via PPPoE (possibly multiple connections) to the ISP and be able to access the LAN simultaniously. (Connection sharing is another goal, but that is not yet relevant...)
The main reason for not changing the setup is that some other people on the LAN use their own ISP accounts over the same line.
I currently have two netctl profiles, adsl (PPPoE) and ethernet (LAN).
I also want the ability to run two PPPoE sessions simultaniously (with routing to determine which data uses which connection). (This is not currently relevant, but have been in the past and might be again in the future...)
The problem:
I'm unable to connect to both the ethernet and ADSL profiles simultaniosly.
I tried to switch to Network manager, but it has a known bug preventing the same interface from being used for both plain LAN and PPPoE.
The workaround that currently seem to work, is to use ifconfig to manually add an IPv4 address to the ethernet interface after connecting the PPPoE session.
The systax for a PPP profile also have the unusual feature that its "Interface" value refers to the underlying interface, rather than the created PPP interface.
I currently have it working on my Ubuntu HDD and previusly had it working on Gentoo.
(Under a standard Windows XP / 7, it works with a single connection, but multiple simultanious PPPoE connections require soem non-standard tools...)
The Ubuntu setup
eth0 is set up by NetworkManager (I didn't have the option to avoid that one...) and I have the PPPoE connections configured in my /etc/interfaces: (ppp0 is not currently in use, was previously)
auto lo
iface lo inet loopback
iface ppp0 inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider-local
auto ppp1
iface ppp1 inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider-intl
I then have these files under /etc/ppp/peers: (with the name mathing the "provider" line) An example below. (passwords are in the /etc/ppp/*-secrets files)
unit 0 # This specifies that the created connection uses ppp0, differs in others.
noipdefault
hide-password
noauth
persist
plugin rp-pppoe.so eth0
user "myuser@radius-domain"
Arch setup:
ADSL profile:
Description='ISPName'
Interface=enp4s0
Connection=pppoe
User='username@radius-server'
Password='mysecret'
ConnectionMode='persist'
#UsePeerDNS=true
# Override default LCP parameters from /etc/ppp/options
LCPEchoInterval=15
LCPEchoFailure=10
Ethernet profile:
Description='A basic static ethernet connection'
Interface=enp4s0
Connection=ethernet
IP=static
Address=('192.168.0.8/24')
Solutions / Workarounds
1. Manually configuring a IP after connecting PPPoE
2. Not using netctl for pppoe, rather using the pppoe-setup tool
3, Figuring out the correct netctl setup for this scenario - which is what I need your help for...
Possibly related links
https://bbs.archlinux.org/viewtopic.php?id=163956
https://wiki.archlinux.org/index.php/Sh … Connection - Insists that an extra interface is needed for sharing connections - which is not a fundemental Linux requirement

I used to use ubuntu & if you reboot into it (if you can) & run:
$ ifconfig
you will see eth0 & ppp1
ppp1 will be set as the default gateway.
Your issue in Arch is that you currently want the PPPoE interface to be the same as your LAN, this will not work at best you will need to bridge the 2 BUT I think what you should do is use the networkmanager profile as a guide & have  netctl create an adsl interface called ppp1 & set that as the default gateway
thus:
Description='ISPName'
Interface=ppp1
Connection=pppoe
User='username@radius-server'
Password='mysecret'
ConnectionMode='persist'
#UsePeerDNS=true
# Override default LCP parameters from /etc/ppp/options
LCPEchoInterval=15
LCPEchoFailure=10
I think this will work, try it & good luck
PS:
I do not use netctl as I use dhcp but you might even be able to configure netctl to set ppp1 as default gateway as a "post-up" command OR just create a systemd service to do it after the relevant netctl services are up
Last edited by t0m5k1 (2013-06-18 17:56:02)

Similar Messages

  • "securely" use one ethernet interface for WAN and other for the LAN

    I am reconfiguring our dual 2.7 Intel Xserve running MacOSXServer 10.5.4, and had a question.
    Is it possible (or advisable) to use en0 to perform LAN services, and then configure en1 to only allow access to very limited service. VPN, FTP, CALDAV and later Mail.
    I imagine that this is possible via a firewall configuration, but first I do not know how to specify interface in addition to ports, and second I don't know how advisable this would be.
    Currently I have a DSL package from ATT with 5 static IP addresses. I have an Airport Extreme set up as one of those addresses providing DHCP and NAT to the LAN. I am using the LAN ports on the back of that to bridge my three switches (2 managed [clients and oce print server 100 base-T] and 1 unmanaged [ laser printers and copier 10 base-T]).
    I have the LAN based on 192.168.0.x, with the Xserve at 192.168.0.5. I have DNS configured and working (Thank you Antonio Rocco)
    I have 20 LAN clients, 18 mac 1 PC and one PC via Parallels. I will have no more than 1 or 2 WAN clients at any one time
    I provide AFP, SMB, Directory Services currently. As part of the reconfigure, I desire to take better advantage of the collaboration tools to provide wikis and CALDAV services. I also want to allow our employees to publish their individual calendars, so that they can subscribe to them at home, or vice versa.
    I would like to configure VPN, one for me to access configurations when I am away using Remote Desktop (I have used command line to some extent, but still feel more comfortable with the GUI tools) and second for limited access to content for certain users.
    It would also be very helpful for us to have a FTP site. It is unnecessary for this the be a FQDN service, sending the IP address is perfectly acceptable as we only use a service like this 10-15 times a year.
    (Related but unimportant in the grand scheme, is there a way to generate a link to the FTP server that you could email that not only is a link, but also a temporary username and password?)
    Thank you in advance,
    Ion Webster

    First, I missed a zero in the network speeds, I have two managed GbE switches that have all of the GbE capable machines connected to them, and an unmanaged GbE switch that has all the 10 or 100Base-T connections. My apologies for the mistake. That was one of the reasons I went with the GbE capable Airport to bridge the switches.
    Ok, I had been leaning towards a separate hardware firewall, but here is also where there is a hole in my knowledge. Do I need to look at something like the Linksys RVS4000 which bills itself as a +"4-Port Gigabit Security Router with VPN. Secure, smart Gigabit networking for growing business"+ I would like easy configuration, as I take care of these systems in addition to my job, rather than full time. This will be the first time I have set up a VPN connection, so even though I have spent a lot of time researching the manuals, and reading Schoun Regan (Apple Training Series) I don't have real world experience here. So if I buy more hardware, I want it to be the product that will provide the protection, and also allow me to configure it so that I can get these services running. All my VPN clients are running Macs, most on an AIrport connection and have their IP ranges in the 10.0.1.x range. all but one is on OS 10.5.x so I have a fairly homogeneous set of machines to make work together.
    I will review the links you provided regarding static routing, but I do believe the hardware solution is a better one, and wish to pursue it, for all the reasons you give, and that in the brief perusal of the links, it is more than I want to tackle.
    As far as FTP vs sFTP, I have no preference. I simply want a way to have online storage for transfer of large files on occasion. Ideally I want a folder, or a series of folders that are accessible for my LAN users to put items in and take them out, and for my (s)FTP users to do the same
    So long story short, the hardware solution I would like to purchase, I need to be able to do the following:
    VPN connections for content access and ARD access ( knew about and will ensure differing IP ranges)
    (s)FTP
    Calendar publishing
    mail(at a later time)
    Thank you for your help thus far.
    Ion Webster

  • Can we use same Business Service for Sender and Receiver

    Can we use same Business Service for Sender and Receiver

    Hi
    In addition to the above infomation explaining about the Business Service..
    Business Service: Address an abstract business entity as the sender or receiver of messages.
    Using a business service, you can define the technical or business subunits of the companies involved and then assign them the relevant interfaces.
    The business services are used when configuring cross-company processes also..
    regards
    Kishore

  • Using same ip adress for VPN and inside interface

    Hi, I want to know if it's possible on a ASA to use the same IP on the LAN and on the VPN. My user has actually a fixed ip on the LAN and I would like to reuse the same IP when they are connect to the VPN.
    The target is to allowed/restric the same thing when they are on the VPN or on the LAN.
    Thank !

    Hi Francis
    You can provide ips from the same ip block which is being used in the local lan , but its always advisable to provide ips from different block altogether.
    regds

  • Should we use same apple id for ipad and iphone

    i had bought a ipad, should i use the same Apple ID as per my iphone? or create a new one. if i use the same ID, howabout my i cloud storage will be remain 5GB or 10GB

    One possible use for separate Apple IDs is to have a separate ID associated with a particular device.  This could be important with iMessage or Facetime, because if you associate all your devices with one ID, you will receive iMessages or Facetime calls on all your devices simultaneously.  If you only want to do iMessage on your iPhone, for example, people could use the Apple ID associated with your iPhone, and the messages would not show up on your iPad.  Obviously, this could be a good thing or a bad thing, depending on how you like to work.
    For me, I have a single Apple ID, mainly because it is easier to keep track of my purchases and downloads.  I also prefer to receive messages and facetime calls on all my devices, so I can choose which one to respond from.

  • Can I use same USB drive for Intel and PPC backup?

    Hi, I have a USB hdd that was used for TV recording but failed on that so I reformatted it as Mac OS extended journaled with 6 partitions (GUID), and using SuperDuper, cloned Lion from a Macbook Air and Tiger from my eMac into different partitions, with the idea of using it as an extra backup.
    Tested the USB drive on Disk Utility verify disk function and it said all 6 partitions appear OK. Can boot the MBA from the USB drive (although slow) but the eMac does not show the disk image on the USB drive as an optional restart item.  I have eMac backed up on a separate Firewire drive but would like to use the USB drive as a second line of defense.
    My question is, would I be able to restore from the Tiger dmg on the USB drive, given that it is GUID and not Apple partition scheme. Would I have to reformat it to Apple partition scheme. Also, how would you go about a restore  from the USB drive if the eMac's OS was kaput?

    You can't store a clone of an Intel-based Mac and a clone of a PowerPC-based Mac on the same drive.
    That's because an Intel-based Mac can start from a GUID partition table, but a PowerPC-based Mac can only start if your USB drive is using Apple Partition Map instead of GUID. In your case, you have to buy another external drive to make a clone of the PowerPC-based Mac or the Intel-based Mac.
    To change the partition map of your USB drive:
    1. Open Disk Utility (it's in Applications > Utilities folder), and select your USB drive in the sidebar.
    2. Go to Partition tab, and press "Options" button, where you can choose the partition map you want: GUID, MBR or Apple Partition Map. Note that you won't be able to start an Intel-based Mac from a drive that uses Apple Partition Map

  • May I use same transceiver MGBLH1 for linksys2024 and also for the module WS-4448-GB-SFP ?

    Hi everybody,
    I need to connect 35 nos switches linksys SRW2024 to one switch Cisco Catalyst 4503 - module WS-4448-GB-SFP, with single mode fiber optic.
    So my question is, what kind of transceiver can I use to connect the switches? I will use also fiber patch panel, and I need to know also what kind of connectors,and patch cords I need for this one?
    I have a few transceivers MGBLH1, this kind may I use also for WS-4448-GB-SFP?
    Thanks in advanced for any help from you!

    Typically, you cannot use a Linksys SFP modules within a standard Cisco switch due to a software compatibility check between the equipment and the SFP module.
    For the Cisco switch, the following compatibility document provides the part numbers for your equipment.
    <http://www.cisco.com/en/US/docs/interfaces_modules/transceiver_modules/compatibility/matrix/OL_6981.html>
    I don't know if the Linksys has the same compatibility check software, but I would assume so.  It also prevents the user from purchasing SFP's from a third-party manufacturer.
    Both the Cisco  SFP modules use LC style connectors.
    Hope this helps!

  • Using same External drive for iMac and iBook

    Hello all,
    I have a 15" FP iMac 10.2.8 and iBook 10.3.9 and a wireless Linksys router which is about 4-5 years old. All work on the Linksys network. Currently my LaCie external is hooked to the iMac.
    I want to have my external LaCie accessible to both computers for storing Final Cut video files. Is this as simple as connecting the LaCie to the router? I can connect to the LaCie via the ibook through the wireless network now but for accessing video files I assume this is not sufficient; need a physical connection.
    Thanks,
    Al

    You'd get problems. The ports are equal though. 
    http://www.macintouch.com/readerreports/firewire/topic2199.html
    You could connect an Ethernet-based Hard Disk to the router but it's going to be pretty slow compared to the Firewire connection you're accustomed to. If I were you I'd just hot-swap the Firewire drive between the two Macs.
    mrtotes

  • HT204053 I want to use the same apple id for iTunes and iCloud...but I have both set up..my problem is I want to use the one that I use for iTunes for both

    I want to use the same apple id for iTunes and iCloud...but I have both set up..my problem is I want to use the one that I use for iTunes for both

    iForgot.com

  • HT204053 Can I use the same Apple ID for iMessage and FaceTime services from two different devices - iPhone and iPad?

    Can I use the same Apple ID for iMessage and FaceTime services simultaneously on two different devices - iPhone and iPad? It seems those are competing to each other, and the services work on one of them only (iPhone).

    Many thanks, Sir! Both are mine and it's good to know that imessage can work on both with the same Apple ID. Will now have to find out why imessage stopped working on iPad when it started on iPhone (new). After exploring the forum I understand  that there may be plenty of reasons why imessage does not work, even though it worked previously on the same device with the same ID.

  • Use different DPS accounts for iPad and Android versions of same app?

    Hi there,
      When creating an Android version of an iPad DPS app should the account used to create the content (the 'Title ID' in the DPS App Builder) be the same for both versions, or different? In the content viewer I know that iPad content will show up even on Android, so I'm thinking that the answer is probably no, but I haven't managed to find it mentioned in the Adobe docs.
      Thanks,
    Toby

    It depends, but usually the answer is that you want to use a different account for iOS and Android. Not all features supported in the iOS viewer are supported in the Android viewer. For example, if you use panoramas or iOS-specific web views in your articles, you'll want to be able to use different content for the Android viewers. Search for "dps supported features" for a comparison chart.
    I use different Application accounts for my apps. I use the Share/Copy feature to transfer the folios from the iOS account to the Android (or Windows) account. Then I delete the few articles that don't work well in the viewer and replace them with articles generated from different source files. That works well and doesn't require too much extra effort.
    If you want to reduce the amount of letterboxing in Android viewers, you'll definitely want to use different accounts and use, for example, 1280x800 folios instead of 1024x768.

  • Is there any constrain in using the same order type for MTS and MTO

    Hi,
    i have the constrain to use single production order type .
    Can i use single order type for MTO and MTS.
    is there any constrain in using the same order type for MTS and MTO.
    pls help me.

    Hi,
    There is no constraint or limitation in using the same production order type for MTS and MTO . Settings in requirement class and material master will mainly control whether the flow is MTS or MTO.
    Regards,
    Mrinal

  • I have been using final cut express for years and now want to switch to final cut studio 3. do I have to remove final cut express before installing final cut studio 3 or can I have them both installed at the same time on one computer?

    I am using a macpro 12 core computer
    I have been using final cut express for years and now want to switch to final cut studio 3. do I have to remove final cut express before installing final cut studio 3 or can I have them both installed at the same time on one computer?

    You can have them both on the same computer as I and many others have done for years.
    Just go ahead and install FCS 3 normally.
    There will be absolutely no problems.

  • When connecting to Itunes, it shows the following error: registry settings used by itunes drivers for importing and burning cds are missing.  I have installed the gear drivers, uninstalled and installed itunes still showing same error.  Anything else?

    When connecting to Itunes, it shows the following error: registry settings used by itunes drivers for importing and burning cds are missing.
    I have edited the registery, downloaded the Gear drivers, uninstalled and installed itunes, and the error still appears.
    What else can I do.  Cannot connect any of our iphones or ipods to itunes because of this error. 

    I have edited the registery,
    We'd better have a closer look at the keys to see what's going on.
    Can you post a screenshot of the contents of the key you've been editing, please? Include all of the regedit screen, including the left-hand column. Save the screenshot to an image file, and insert the image file in a reply by clicking the wee camera icon at the top of the reply window.

  • I am using an Airport Extreme for wireless and a Netgear VPN Switch for wired connections.  How do I get the two networks to connect?

    I am using an Airport Extreme for wireless and also have a Netgear VPN Switch (FV5318) for internal wired ethernet connections.  How do I get the two networks to connect to each other?

    Tesserax, I would like to keep the Airport Extreme in nplace before the Netgear FVS318 switch because I am using all of the 8 ethernet outputs distributed to 8 differerent locationsl  This way I can just use one of the LAN outputs from the Airport to feed the FVS318.  Here is what I think I am hearing you say:
    Tne reason why the wired and wireless devices are not communicating is because the FVS318G is also a DHCP server and in conflict with the AEBS.
    To remedy the situastion here is probably what I need to do in order:
    1. Change the LAN IP Address of the Netgear FVS318G to be the same subnet of the Airport Extreme.
    2. Then, disable the Netgear FVS318G as a DHCP server.
    3. Make sure the ethernet cable from the LAN port of the Airport Extreme connectis to the LAN port of the Netgear FVS318G.
    4. Restart everything.
    Can you provide me the steps I need to take to get the right IP addresses from the Airport Extreme to put into the Netgear to fix the conflict?  I have the Airport Utility.  I also have two airport express hot spots, and two Apple TVs in addition to computers attached to the 8 ethernet lines.
    Thank you.
    Steve

Maybe you are looking for