|[Home] [Credit Search] [Category Browser] [Staff Roll Call]||The LINUX.COM Article Archive|
|Originally Published: Wednesday, 29 November 2000||Author: Mike Baker|
|Published to: interact_articles_irc_recap/IRC Recap||Page: 1/1 - [Std View]|
Best of IRC
Back in full force, it's another edition of Best of IRC: Chronicles of an online phenomenon. The dust has finally settled on the new look and feel of linux.com, leaving a trail of caffeinated penguin mints and countless sleepless nights in its path. Meanwhile, the popularity of #linuxhelp and #linux.com-live! events has been on rapid increase.
This weeks Best of IRC column is about an event that took place in #linux.com-live! not too long ago about TCP/IP Configuration for Highspeed Networks. In short, how to setup your cable or DSL modem. The guest speakers are Brian Richardson from linux.com/hardware/, Chris Campbell from linux.com/sysadmin/ and Jeff McClure. What follows is a transcript of that event:
There are different ways to handle PPPOE in linux, but I have found the most success with Roaring penguin (RP). If you wish to have PPPOE in the kernel, that would be located at to http://www.davin.ottawa.on.ca/pppoe/. Now, down to the setup.
I had to do the intial setup to sign on to the account using an NT box. - This is to setup your user profile with the ISP. Now, PPPOE hands out addressing dymaically, you should not use DHCP or anything like that. DO NOT USE DHCP, that messes everyone up.
The DSL adapter gets the IP to the Internet from the provider (i.e. Bell South) using DHCP, so my adapter has 207.69.x.x. that gets seen by the net. But, only one machine on my network gets to send/recieve stuff from the net using the PPPoE client. So nless you are running some sort of router/ipmasq configuration you only get one PC on the net. That's where the wonders of Linux come in (that's why we're here)
It's pretty much the same as any ipmasq/router/firewall configuration, except for the PPPoE client (Roaring Penguin for Linux). PPPoE looks like a ppp adapter in the networking config.
Let me give you a practcal example ... my network:
I have 4 machines at home, three are clients (2 are Win98, one is Mandrake 7.2). The fourth is a dinky Cyrix with a floppy & two NICs. I run the Cyrix as a router between the DSL adapter and my local net.
If the Linux box is the only machine on the network, then that's it. However, to connect other machines, you need a second NIC with an "internal" IP address, usually from that 192.168.x.x range that Brian mentioned. The Linux box then acts as a router/firewall that straddles the two networks, same setup that Brian mentioned. The real difference is the need to use a DHCP client to get the external IP address. I think Roadrunner may require a special client to connect. Some providers need to see your NetBIOS hostname set to a certain value. Most DHCP clients have an option that allows sending that.
Another gotcha: many times, cable modems "learn" the MAC (hardware) address of the NIC to which they are attached. If you connect the cable modem to a different NIC, it may not work until you reset the cable modem. Even better, My cable modem (3Com) won't relearn the MAC just by reset. If I need to use a different network card, I have to call my provider and tell them the MAC so they can force the modem to relearn.
So, you have your shiny Ethernet DSL modem. Do you have to do something to that to bring it onto your network?
The external adapters all assume you run a 192.168.0.x network unless otherwise configured. To reconfigure them you'll probably need the windows utility.
Does the hostname of your gateway computer have to be the same as the one your Cable has assigned?
No, the hostname of your computer is irrelevent. You may however have to configure your dhcpcd to provide an identifier which is usually refered to as the NetBIOS name (Although it has little to do with netbios).
Is there anyway to tweak a router with a built-in DSL modem? How do you tweak your ethernet card to get full throughput?
You're talking about something refered to as MTU. Maximum Transmit Unit. This setting controls how large packets can be, you need to find the 'optimal' packet size for your speed. Too large and your packets will suffer fragmentation, too small and you'll limit your speed.