Tuesday, October 11, 2005

FiOS Rocks!

OpenBSDSo Verizon installed FiOS at my house today. I had been with Comcast for 8 years and now they're finally going to be out of my house. :) Last year DirecTV, this year FiOS.

Configuring OpenBSD to be my gateway for FiOS was very easy. My external interface (that plugged into the cable modem) was fxp1. I deleted /etc/hostname.fxp1 and created an /etc/hostname.pppoe0 with:


pppoedev fxp1
!/sbin/ifconfig fxp1 up
!/usr/sbin/spppcontrol \$if myauthproto=pap myauthname=foo myauthkey=bar
!/sbin/ifconfig \$if inet 0.0.0.0 0.0.0.1 netmask 0xffffffff
!/sbin/route add default 0.0.0.1
up


This was directly taken from OpenBSD's pppoe (4) man page. As always, OpenBSD documentation is second to none.

Next, I ran:
ifconfig fxp1 inet -alias
ifconfig fxp1 down
route -n delete default
sh /etc/netstart pppoe0


Finally, I edited my /etc/pf.conf replacing references to fxp1 with pppoe0. I ran pfctl -f /etc/pf.conf and I was online.

Now that OpenBSD was configured and my machines were online, I tested my speed from a wired computer. 14000 kbps downstream and 1400 kbps upstream. Fantastic.

Next, I tested my wireless laptop (with 802.11g) and was getting about 4 Mbps down. Strange. My brother and I discussed this recently and he said he was seeing similar results. After doing some research, I found that running an access point in B/G mixed mode can cause performance degradation for G clients. Switching my Linksys WAP54G (firmware 2.06) to G-only mode gave me 14000 kbps speeds. Then, I decided to upgrade my WAP54Gv2's firmware. WAP54Gv3's have 3.03 so I gave it a shot. It installs nicely. And, in mixed mode, my G-clients are getting at least 15 Mbps downstream, so I'm a happy happy camper.

Maybe I can talk Verizon into getting me a static IP address. I'll even pay extra for it! Then erdelynet.com can come home.

5 comments:

  1. Hi Mike,

    Glad to here things went well for you. My question to you is why would you need pppoe if your FiOS modem provides an IP for your OpenBSD box?

    I'm trying to do the same thing with a DSL modem. My external NIC gets an IP from the DSL modem. My modem uses pppoe to connect with earthlink.

    Is it redundant to use pppoe on the OpenBSD box?

    Thanks,

    dcrudup

    ReplyDelete
  2. dcrudup,

    With FiOS, there is no modem. But they still require PPPOE. They're trying to move away from it to straight DHCP.

    If you have a modem that handles the PPPOE with your ISP, then all you need to do is just configure your NIC properly (static or DHCP). In my experience with DSL, even with a modem, you still use PPPOE. Contact your service provider for details.

    ReplyDelete
  3. I just had FIOS installed. I tried using the above method of connecting to no avail. I was not given a lusername/password by VZ. From what i read its still pppoe because in their hints to improve performance they say to use a mtu of 1492. Does anybody know if they are still using pppoe? I was given the "new" actiontech router. Sorry for the ramble but i have scratched my head raw.

    ReplyDelete
  4. From what I know about Consumer FiOS, they are still using PPPOE. But, the username and password just have to be something. Anything. foo and bar were my actual passwords in my actual configuration file.

    It's easy enough to test... turn off all PPPOE stuff and run: dhclient (where "" is your actual external interface). If you don't get an IP address, you either need PPPOE or there's something else wrong.

    My documentation above worked as it's listed. I've since upgraded to their $100/mo business FiOS with static IP addresses and no PPPOE. If you can afford it, it's worth it.

    ReplyDelete
  5. Hi,

    I'm trying to connect fios directly to my linux machine and trying to bypass the actiontec router? Is there a way to do that and if it is, please help. Right now if i try to connection it directly it doesn't come back with the ip assigned by verizon?

    Thanks,

    Quan

    ReplyDelete