Linuxathome.net - Linux news and help for home broadband internet users
 Home | Files | Case Mods | Reviews | Forum | Search | Links | RDF Feed | Contact
Sections

Installation Guide
Setting Up
Internet Sharing
Port Forwarding
Services Config
Installing Programs
Game Servers
Using IPTables
Useful Commands
Kernel Upgrading
System Recovery
Red Hat 7.2 Setup
OpenBSD Setup
BPA Login Setup
PPPoE Setup
Add New Hardware
Using PPTP VPN
VMware ESX Cmds
Our RC5 Team
Folding@Home
Help Support Us

 
Articles
Linux Security
NetStats FAQ
Linux KIS Trojan
CAT5/LAN Cables
Domain Names
Presario RH Install APC Debian DVD
 
Slashdot.org
  • Privacy Complaint Targets Google Over Unsolicited Ad Emails
  • Psychedelics Help People With Alcoholism Drink Less
  • Japan Signals Return To Nuclear Power To Stabilize Energy Supply
  • Korea Shatters Its Own Record for World's Lowest Fertility Rate
  • New Aluminum-Sulfur Battery Tech Offers Full Charging In Under a Minute
  • New York State Bill Would Require Speed Limiting Tech In New Cars
  • Notorious DRM Company Takes Aim At Switch Piracy
  • Hackers Are Breaking Into and Emptying Cash App Accounts
  • New Film 'BlackBerry' To Explore Rise and Fall of Canadian Smartphone
  • Chattanooga, Tennessee offers America's First Community-Wide 25 Gig Internet Service
  • California To Ban the Sale of New Gasoline Cars
  • Experts Warn of Widespread Exploitation Involving Hikvision Cameras
  • Google Pixel Sees Huge Sales Growth, Has 2% of North American Market
  • Bay Area Startup Wants To Make Call Center Workers Sound 'White and American'
  • Biden is Canceling Up To $10K in Student Loans, $20K For Pell Grant Recipients
  •  
    Affiliates

    TweakTown.com
    ZGeek.com
    pebkac-consulting.com.au

      Setting Up Your Linux Machine

     

    Now this is what you have been waiting for, the page that tells you how to get your newly installed Linux box to connect to the Internet with your cable modem, trust me it is quite simple and provided you have setup your install properly shouldn't take more that a couple of minutes.

    Make sure that you are logged in as ROOT to do the following as you will need full permissions to run some of these commands.

     

      Setup Instructions

     
    LAN Layout and Setup

    The following steps are based on the configuration that we have chosen. Our LAN setup is described in the image below.

    As you can see the Cable Modem runs directly to the Linux Server which is connected to the LAN via the 100MB Hub, All the client machines run from the same hub and the network is formed in this way, the Internet being shared by the Linux Machine.

    This setup is probably the easiest to setup and the most cost effective as you can use any old Hub lying around. It also minimizes traffic on the network if the Linux Machine is sending large bits of information at once (i.e. doesn't slow internal traffic that way).

    The alternative way if you want (will cost a bit more, but you wont need two network cards in the Linux Machine) is to have a Switch rather than a Hub. That way you can connect the Cable Modem to the UPLINK port on the Switch and have the Linux Machine just "manage" the Internet connection. This method is harder to setup unless you know what your doing. So we suggest for simplicity and cost sake that you just stick with the method and layout described in the diagram above.

     

    The PUMP Method

    Since pump is already included in Red Hat 6.2 this is the quickest way to get your server on-line. This is done by simply typing the following command in at the Linux command line.

    /sbin/pump -i eth0

    You don't need to supply the hostname given to you by Optus@Home (this is because the Optus@Home DHCP servers no longer require this due to new network configurations as of November 2001). Also if your Internet connection is through eth1 then simply change eht0 to eth1 in the above example. Once you have done this you should be assigned and IP address from Optus@Home and be able to go online, to test it you can start X-Windows (if you installed it) by simply typing startx, then you can load Netscape Navigator and surf the web.

    If you are happy with simply using pump then you can continue with Sharing The Internet.

    PLEASE NOTE: Alot of people (including myself) had major problems with using PUMP once Optus@Home changed their network configurations and switched to Linux servers. It is recommended that you setup and use DHCP to prevent any problems from occuring on your machine.

     

    The DHCP 2.0 Method

    This is probably the best method and it is the one that we use.

    - Firstly to get this type of DHCP working you will need to locate and download the file dhcp-2.0.tar.gz which as usual is easily found on the Internet. Save it in a directory you wish to work in, we recommend use your user directory as its the best place (you can ftp straight to it, and you always have permissions to do anything there).

    - You will then need to unzip and uncompressed it but using the following command tar -xzvf dhcp-2.0.tar.gz this will create a dhcp-2.0/ directory in the current directory, i.e. the one you just uncompressed the files in.

    - Now you need to compile configure and then run the DHCP Client for Linux. To do this it is always best to first read the README, that is what they are for, it should tell you exactly what to do to install and get the software working. To view and read the readme you just type cat README | more and this will display it one screen at a time, to move down a screen just hit SPACE or to move down one line at a time hit ENTER. To compile the source code the first thing you need to do it type ./configure which will work out that exact OS and version you are running and then it will create a Makefile which will allow you to easily compile it. Once you've run configure, just type make, and after a while you should have a DHCP server. Once you have successfully gotten the DHCP Distribution to build, you can install it by typing make install. If you already have an old version of the DHCP Distribution installed, you may want to save it before typing make install. (this installs the DHCP server and client, but we are only concerned with the client).

    - You must now edit the /etc/dhclient.conf file on your system, this must be setup to send the correct information to Optus@Home, and where it says send host-name you can either remove this line, leave it blank or put your Optus@Home hostname (this hostname is the old co3XXXXXX-a number you should have been given when your install was done - prior to November 2001).

    - To now run DHCP Client all you have to do is run it from the directory which you installed DHCP, e.g. if you followed our suggestion all you have to do is type /sbin/dhclient eth0 and you should then be assigned the correct IP from Optus@Home and be able to go online. Once again to test it just start X-Windows and run Netscape Navigator as show above in "The PUMP Method".

    An alternative isto install the RPM version, this can be found in the file dhcp-2.0-5.i386.rpm, and installed with the following command rpm -ivh dhcp-2.0-5.i386.rpm, then you can edit the dhclient.conf file and run dhclient eth0. (This file can be downloaded from the Files section of this site, also it is on the Red Hat CD in the directory /RedHat/RPMS/)

    Since you want to use DHCP you can also use the ifup and ifdown scripts instead of writing your own, these should both located in your /sbin/ directory. The only editting that they should require is to put your Optus@Home hostname into the appropriate field (i.e. your co3XXXXXX-a number).

    Just another thing that I should mention, even though you need to send your hostname (co3XXXXXX-a) to Optus@Home in order to get your IP address assigned to you, you don't actually have to name your box that (I only just found this out). This means that you can call it whatever you want and it helps to make your network use the naming scheme you want. In order to change this all you need to do is type hostname <new_name> and it will be changed, simple enough right?, to test it just type hostname and it should tell you the same name as you just typed in.

    Proudly Hosted By:
    Hosted by PEBKAC Consulting

    Please read our Legal Notice for information concerning our site and its content.
    All logos and trademarks in this site are property of their respective owner. All the rest © 2000 - 2016 by Linuxathome.net

    Reviews

    D-Link DI-704P
    VIA EPIA-M 9000
    Tux Applique
    Ricoh MP5125A
    AMD XP 2600+
    3DProphet 9000Pro
    Radeon 9700 Pro
    XTNDAccess IrDA
    Netgear FS-524s
    DSR2161 KVM
    Game TheaterXP & XPS-510 Speakers
    3D Prophet 4000XT
    AutoView 400
    Back-UPS CS 350
    Dual Neon Kit
    SwitchView KVM
    20x4 LCD Kit
    Window Kit

     
    Kuro5hin.org
    XML error: Attribute without value at line 2.
     
    Google Search
    Enter Keywords:

     
    Bash Jokes

    % rm meese-ethics

    rm: meese-ethics nonexistent

     
    Virtualization, Virtual Machine & Virtual Server Consolidation - VMware

    The Community ENTerprise Operating System

    Get Slackware Linux

    Use OpenOffice.org

    Use Asterisk