| 
 | 
 
 
发表于 2003-12-2 22:43:54
|
显示全部楼层
 
 
 
-------------------------------------------------------------------------------- 
 
RedHat Linux + ADSL SOHO Solution 
 
-------------------------------------------------------------------------------- 
 
    This solution plantform for SmallOffice & HomeOffice.By using a sample ADSL line. 
It is very easy strong and performance. 
 
    Use a ADSL line connect to INTERNET.Use a 10-100MB Hub build Local network. 
 
    Use Linux build a soft route to convert IP address between Internet and Local Network. 
 
    At first I used Windows2000 by NAT addres convert.But it is to slow and have many problem. 
For example: can’t send OICQ in local netwrok eachother;can’t browser sina.com.cn and other site. 
And if you want performance it,it ...  It’s MicroSoft.I really can’t turn it.It is too slow. 
I hate MicroSoft,I love Linux. 
 
    The Machine: 
 
    MainBoard:VIA Applo Pro 
    CPU III 350 
    RAM:200MB 
    HardDisk:9GB SCSI 
    VGA:i740 AGP 8MB 
    NetCard:D-Link 100MB 
 
    Linux Release Version:REDHAT 6.2 
 
1.Install RedHat 6.2 
 
    I install it by package Xfree86,KDE,Gnome... and ppp 
 
    Setting NetCard IP address: 192.168.216.151 
     Net Mask: 255.255.255.0 
 
[root@localhost /root]#ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:D0:F8:08:5C:BC 
          inet addr:192.168.216.151  Bcast:192.168.216.255  Mask:255.255.255.0 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
          RX packets:375 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:229 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:100 
          Interrupt:7 Base address:0xe800 
 
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0 
          UP LOOPBACK RUNNING  MTU:3924  Metric:1 
          RX packets:18 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:0 
 
Disable DefaultRout(Gateway).Let ADSL get it from Server 
 
vi /etc/sysconfig/network 
delete the line GATEWAY= 
 
su to root 
#/etc/rc.d/init.d/network restart 
 
find if installed ppp package: 
 
if has /usr/sbin/pppd It has been Install 
rpm -q ppp 
 
If not installed,Install it from RedHatLinux 6.2 CDROM. 
The package name:ppp-2.3.11-4.i386.rpm 
 
 
--- wecreate  发帖时间: 2003-9-16 23:56:19  
 
回复[1]:2.Install ADSL pppoe Driver 
 
Go to http://www.roaringpenguin.com/pppoe/ 
 
Down load pppoe driver rp-pppoe-3.4.tar.gz 
 
#tar xvfz rp-pppoe-3.4.tar.gz 
 
# cd rp-pppoe-3.4 
 
# ./go 
 
Welcome to the Roaring Penguin ADSL client setup.  First, I will run 
some checks on your system to make sure the PPPoE client is installed 
properly... 
 
Looks good!  Now, please enter some information: 
 
USER NAME 
 
>>> Enter your PPPoE user name (default [email protected]): a0000@163 
这里输入在电信局申请的adsl的帐号 
 
INTERFACE 
 
>>> Enter the Ethernet interface connected to the ADSL modem 
For Solaris, this is likely to be something like /dev/hme0. 
For Linux, it will be ethn, where ’n’ is a number. 
(default eth0): 
问你用哪片网卡拨号,默认是第一片eth0就可以了 
 
Do you want the link to come up on demand, or stay up continuously? 
If you want it to come up on demand, enter the idle time in seconds 
after which the link should be dropped.  If you want the link to 
stay up permanently, enter ’no’ (two letters, lower-case.) 
NOTE: Demand-activated links do not interact well with dynamic IP 
addresses.  You may have some problems with demand-activated links. 
>>> Enter the demand value (default no): 
 
DNS 
 
Please enter the IP address of your ISP’s primary DNS server. 
If your ISP claims that ’the server will provide DNS addresses’, 
enter ’server’ (all lower-case) here. 
If you just press enter, I will assume you know what you are 
doing and not modify your DNS setup. 
>>> Enter the DNS information here: server 
这里填你ISP的DNS地址,server代表从ADSL接入服务器取得DNS地址 
 
---wecreate  
 
回复[2]:PASSWORD 
ADSL拨号密码这个东东。 
 
>>> Please enter your PPPoE password: 
>>> Please re-enter your PPPoE password: 
 
FIREWALLING 
 
Please choose the firewall rules to use.  Note that these rules are 
very basic.  You are strongly encouraged to use a more sophisticated 
firewall setup; however, these will provide basic security.  If you 
are running any servers on your machine, you must choose ’NONE’ and 
set up firewalling yourself.  Otherwise, the firewall rules will deny 
access to all standard servers like Web, e-mail, ftp, etc.  If you 
are using SSH, the rules will block outgoing SSH connections which 
allocate a privileged source port. 
 
The firewall choices are: 
0 - NONE: This script will not set any firewall rules.  You are responsible 
          for ensuring the security of your machine.  You are STRONGLY 
          recommended to use some kind of firewall rules. 
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation 
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway 
                for a LAN 
>>> Choose a type of firewall (0-2): 0 
 
** Summary of what you entered ** 
 
Ethernet Interface: eth0 
User name:          a0000@163 
Activate-on-demand: No 
DNS addresses:      Supplied by ISP’s server 
Firewalling:        NONE 
 
>>> Accept these settings and adjust configuration files (y/n)? y 
Adjusting /etc/ppp/pppoe.conf 
Adjusting /etc/ppp/pap-secrets and /etc/ppp/chap-secrets 
  (But first backing it up to /etc/ppp/pap-secrets-bak) 
  (But first backing it up to /etc/ppp/chap-secrets-bak) 
 
Congratulations, it should be all set up! 
 
Type ’adsl-start’ to bring up your ADSL link and ’adsl-stop’ to bring 
it down.  Type ’adsl-status’ to see the link status. 
 
and you can use adsl-stop to stop adsl connect 
and use adsl-status get information about adsl connect 
 
 
---wecreate |   
 
 
 
 |