Connecting to Optus@Home with dhcpcd and linux |
HOME
to Mail me |
Using Linux and connecting to Optus@ home using the ....DHCP Client Daemon v.1.3 Before we start.. October 23rd 2001: This page has been updated to reflect the new connection process
Locale.. (for the overseas visitors) Optus@home is a cable service based in Australia. It's modelled on the U.S. excite@home franchise but since mid Sept 2001 it has become independent of the Excite service As noted above the connection process has changed from the standard that @home used. There is a very real chance that this method won't work for you if you're coming from somewhere other that the Australian Optus cable network. Dhclient It's worth noting that RedHat8.0 does not ship with dhcpcd anymore, it installs the dhclient program instead. You could install dhcpcd as follows or just use the dhclient rpm as it's more than adequate for the task. Most of the trouble shooting hints that follow apply no matter which program you decide to use. The usage for dhclient and optus can be found at the Metrak site (Basically it's /sbin/dhclient eth1 No "client id" should be needed) Introduction This is the dhcpcd program not the dhcpd program - note that extra "c"- the first is the client daemon , the second the server. You probably don't want the server running at all and definitely not on the external interface! Optus ( nor others ) won't be impressed. The dhcpcd package is available here but it also comes packaged with RedHat and Mandrake as an rpm . Visit AARNet's local FTP archive for a list of available packages, whatever your Linux flavour. Before going much further it's worth mentioning that there is debate as to how well the Optus supplied NIC works. It appears that they've been supplying a different card since June 2000 that will fire up and talk to the servers. Mine wouldn't so I used a Dec204 (Etherworks3). Try the supplied NIC, and if you get it working let us know and I'll add it to the list. ( As of jan 2002 this issue seems to have died out, but be aware of the possibility ) The following procedure *should* work for most Linux flavour's. Security After you've successfully connected and have your link up and running you'll need to run a firewall and understand how it works. Understanding the firewall process and it's output is as important as running it in the first place. Turning off network services that aren't being used ranks equally with firewalling, it doesn't just satisfy the restrictive Optus AUP but also reduces the number of exploits that can be used against your machine, if you don't know you are running a service then it's unlikely that you'll be aware of it's vulnerabilitys, and certainly can't fix them Manfred Bartz has some excellent material relating to firewalling and when your connection is working his site should be your next port of call. There are many others, LSGA, the HowTo at Trinity or visit Linux Firewall and Security Site which has a wealth of information. The comp.os.linux.security FAQ is also worth bookmarking. You can however treat Manfred's site as your "one stop shop" as it has many security related links besides a quick start firewall to get you up and running. Make sure that the Optus servers are up. There was a stage where DNS service was variable so check the server status page from your existing connection. If that link came up with an error then the "www" needs to be substituted with your domain name. See the section on the next page. If you're outside the optushome network (using your old dial up account or viewing from elsewhere) then it will never work - it's an internal link. dhcpcd...Generic...manually.... These instructions should work for any Linux flavour (2). Read the man page man dhcpcd on the command line. (3). From the command line enter. /sbin/dhcpcd -d eth0 and you should get back a message similar to this ... dhcpcd: your IP address = 203.164.18.133 which means that you are connected. The above is the procedure I used to connect a fresh install of RedHat 7.2 to the internet and is all that is needed since Optus changed servers and simplified the process. If that didn't work then your in for a long read. On the troubleshooting page most of the problems you'll encounter get a mention, the most common is needing to reset the modem, it may pay to skim down a bit and view a brief summary as well. If the answer isn't there be sure to scroll to the top and review it all :-) It also appears that the IP allocation will be purely dynamic now, when you reboot you will be allocated a new address, so no more static or extra long leases. dhcpcd......automatically.... Once the manual method works and you're connected then you can automate the process. The simplest way is to set it up during the initial install, set the external card ( if you have more than one ) to use dhcp when asked the networking question.You don't need to be connected while you do that part of the install and it's better if you're not, until you have the firewall and services sorted out. If you are not connected when you reboot there will be a long delay while the process times out searching for a non existant dhcp server - so don't panic. You've now got all the time needed to secure the connection. Once you're basic firewall is done and turned on and the services ( httpd, squid, nfs to name a few ) that were running, reconfigured or turned off as appropriate, then plug the cable in and issue the above instruction and all should be fine from there on. The card should be assigned an IP in less than 10 seconds. If you're already up and running, and want to preserve your uptime then for Mandrake or one of the newer RedHat releases the /etc/sysconfig/network-scripts/ifcfg-eth0 file should be modified, after that it's a matter of restarting the external network interface. Which commands you ask? some are clues listed in the SUSE section below this There may be other information there already but what we need, at a minimum is.... =======8<========= DEVICE="eth0" BOOTPROTO="dhcp" ONBOOT="yes"=======>8========= This will enable the machine to connect and obtain a lease on system boot-up ( providing networking is enabled on start-up ) for SUSE 6.4 ... The following may (?) help. Use YaST (at the command line) to configure the cards and associated system files and set the external card for bootp protocol (Network base configuration). Unlike RedHat there is no ifup or ifdown command for the interface. ifconfig with the appropriate options appears to do the trick; so ifconfig eth0 up will have the desired effect as will ifconfig eth0 down . Okay - if it's still not working then go to this page for some trouble shooting help. |
Site Links Various ping Stats Connecting to Optus with Linux Troubleshooting the above process Using a floppy based router EtherBooting the Dachstein LRP NIC Throughput Tests Advance Decline for ASX Ping status for Aus and US Linux Related Local sites Manfred Bartz Paul's Metrak >site Zak's site Mick's site Barry Park LinuxatHome AtHome Linux egroup Personal Links Setisearchers distributed.net Link Summary for this page LRP page DHClient DHCPCD Package AARNet Server RedHat site Manfred Bartz LSGA Trinity Linux Firewall & Security comp.os.linux.security FAQ Optus server status Trouble Shooting |