Humble Trader

Friday, December 23, 2005

Configure ADSL

Introduction:

Here, we will configure ADSL by setting up the second NIC to communicate with the ADSL modem.

Aim:

Set up the server to be the external communications hub for the network.

Requirements:

None.

Procedure:

  • Log in as root
  • Configure the External NIC:
    • -Applications-
    • -System Tools-
    • -Internet Configuration Wizard-
    • -Ethernet Connection- [Forward]
    • -D-Link System Inc RTL8139 Ethernet (eth0)- [Forward]
    • Automatically obtain IP address settings with: [dhcp] [Forward]
    • [Apply]
    • -File-
    • -Save-
    • Information... [OK]
    • (exit)
  • Set up loopback (the GUI desktop needs this, amongst others):
    • Open Terminal.
    • # vi /etc/hosts
    • Make sure these exist (put a 'tab' between the parts):
      • 127.0.0.1     localhost.localdomain     localhost
        192.168.0.2 lisa.steveroach.org lisa
Testing:
  • Connect a normal CAT5 cable between the ADSL modem and the NIC.
  • Reboot the Linux box.
  • You should see the following during startup:
Bringing up interface eth0: [ OK ]
Determining IP information for eth0... done
[ OK ]

  • Log in as root.
  • Open Terminal.
  • # ifconfig eth0
  • This comes back with a few lines of information. The fourth line down (something like; 'UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1') should contain the flags 'UP' and 'RUNNING'.
  • Now check out the line starting with 'inet'. Right now mine looks like; 'inet addr:10.1.1.2 Bcast:10.255.255.255 Mask:255.0.0.0'. What you want is the first IP address - in this case 10.1.1.2. Note that this can change between reboots or modem resets.
  • # ping [that IP address you just got from ifconfig] (this is the ADSL modem assigned IP)
  • # ping 10.1.1.1 (this is my ADSL modem fixed DNS IP)
  • # ping www.blogspot.com (a domain that returns pings)
  • In all cases, there should be a list of times for the ping round-trip. Type Ctrl-C to stop the listing.
  • You can switch the cable back to your PC now, if you like - or stay connected as you are and do the next step; Get Latest Packages.

0 Comments:

Post a Comment

<< Home