บทความนี้นำมาจาก http://www.snong.com/linux/zyxel-630-11-fedora3.html [code:1:38c21f80e3] หลังจากผมเปลี่ยนมาใช้ Hi Speed Internet ของ True ที่บ้านซึ่งเป็น ADSL ตอนสมัครผมก็ได้เจ้า ADSL Modem ยี่ห้อ ZyXEL รุ่น Prestige 630 และแผ่น CD-ROM Driver สำหรับ Windows ผมก็นำมาติดตั้งที่เครื่องทำงานของผมชึ่งเป็น Windows XP ก็สามารถใช้งานได้เป็นที่ประทับใจ แต่ปัญหาของผมก็คือ ผมต้องการทำเครื่อง Server ที่ใช้ Linux โดยผมเลือก Fedora Core 3 และติดตั้งทุกอย่างเรียบร้อยแลัว เหลือด่านสุดท้ายคือผมต้องการเชื่อมต่อ Internet โดยใช้เจ้า ZyXEL 630 กับ Hi Speed Internet มึนเลยครับ ต้องทำการค้นข้อมูลผ่าน Google ก็ได้ Link มาคือ http://www.skynet.ie/~caolan/TechTexts/ZyXEL-630-11-HowTo.html จากนั้นก็ลุยตามนั้นเลยครับ ทุกอย่างดูจะไปได้สวย แต่ต้องมาเหงื่อตกอีกแล้วครับท่าน เพราะผม Compile ไม่ผ่านบน Fedora 3 ลองแล้วลองอีก ทุกวิธีที่มีอยู่ จนวันนั้นต้องยอมแพ้ครับ เลยต้องพักยกไป จนอีกหลายวันถึงเอาชนะมันได้ Yo! ลองตามนี้นะครับ [/code:1:38c21f80e3] File ที่ต้องการ [code:1:38c21f80e3] linux-atm-2.4.1-1.i386.rpm หาได้จาก http://linux-atm.sourceforge.net/ amedyn-2004-08-04-src.tgz หาได้จาก http://sourceforge.net/projects/zyxel630-11/ br2684ctl-010226-1.i386.rpm หาได้จาก http://jedi.links.nectec.or.th/mrchoke/download/etc/br2684ctl-010226-1.i... [/code:1:38c21f80e3] เริ่มติดตั้ง 1 [code:1:38c21f80e3] [root@iserver adsl]# rpm -Uvh linux-atm-2.4.1-1.i386.rpm Preparing... ########################################### [100%] 1:linux-atm ########################################### [100%] 2: r2684ctl-010226 ########################################### [100%] [root@iserver adsl]# tar -zxvf amedyn-2004-08-04-src.tgz [/code:1:38c21f80e3] *************************************** 2 จากนั้นให้เข้าไปแก้ไข Makefile ใน Directory [amedyn] [code:1:38c21f80e3][root@iserver adsl]# cd amedyn [root@iserver amedyn]# vi Makefile ให้ลบคำว่า BRIDGED ออกจากบันทัดที่ข้อความตามนี้ compile_install: AME_INIT AME_FIRMWARE AME_MODULE AME_SCRIPTS BRIDGED หลังจากลบแล้วก็จะได้เป็น compile_install: AME_INIT AME_FIRMWARE AME_MODULE AME_SCRIPTS หลังจากนั้นก็ Save เลยครับ [/code:1:38c21f80e3] 3 แก้ไขเสร็จก็สั่ง Compile เลย [code:1:38c21f80e3][root@iserver amedyn]# make[/code:1:38c21f80e3] 4 หลังจาก Compile ผ่านแล้วให้แก้ไข /etc/amedyn ตามนี้นะครับสำหรับ True ADSL [code:1:38c21f80e3] [root@iserver amedyn]#vi /etc/amedyn # # Config file for Zyxel 630-11 & Asus AAM6000UG (ADSL Modem USB) # # Driver mode DRIVER_MODE=1 # 1 = normal, 2 = debug # Protocol PROTOCOL_MODE=4 # 1 = RFC1483/2684 routed, 2 = PPP over ATM (pppoa), 3 = RFC1483/2684 bridged, 4 = PPP over Ethernet (pppoe) # Paths BINARY_PATH="/usr/sbin" ATM_PATH="" # ATM VPI=0 VCI=100 # Specific for RFC1483/2684 routed/bridged # if IP_ADDRESS is blank in bridged mode then it uses DHCP to get IP IP_ADDRESS= NETMASK=255.255.255.0 GATEWAY= [/code:1:38c21f80e3] 5. ต่อไปก็เป็นการกำหนดค่า Connection ของ ADSL [code:1:38c21f80e3] [root@iserver etc]# adsl-setup Welcome to the ADSL client setup. First, I will run some checks on your system to make sure the PPPoE client is installed properly... LOGIN NAME Enter your Login Name (default root): xxxxxx@truehisp 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 ethX, where 'X' is a number. (default eth0): nas0 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):[Enter] DNS Please enter the IP address of your ISP's primary DNS server. If your ISP claims that 'the server will provide dynamic 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 PASSWORD Please enter your Password:[Password] Please re-enter your Password:[Password] USERCTRL Please enter 'yes' (two letters, lower-case.) if you want to allow normal user to start or stop DSL connection (default yes):[Enter] 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): 2 Start this connection at boot time Do you want to start this connection at boot time? Please enter no or yes (default no):[Enter] ** Summary of what you entered ** Ethernet Interface: nas0 User name: xxxxxx@truehisp Activate-on-demand: No DNS addresses: Supplied by ISP's server Firewalling: MASQUERADE User Control: yes Accept these settings and adjust configuration files (y/n)? y Adjusting /etc/sysconfig/network-scripts/ifcfg-ppp0 Adjusting /etc/ppp/chap-secrets and /etc/ppp/pap-secrets (But first backing it up to /etc/ppp/chap-secrets.bak) (But first backing it up to /etc/ppp/pap-secrets.bak) Congratulations, it should be all set up! Type '/sbin/ifup ppp0' to bring up your xDSL link and '/sbin/ifdown ppp0' to bring it down. Type '/sbin/adsl-status /etc/sysconfig/network-scripts/ifcfg-ppp0' to see the link status. [/code:1:38c21f80e3] 6. แก้ไข /etc/ld.so.conf โดยเพิ่มบันทัด /usr/local/lib เข้าไป [code:1:38c21f80e3] [root@iserver etc]# vi /etc/ld.so.conf include ld.so.conf.d/*.conf /usr/X11R6/lib /usr/lib/mysql /usr/local/lib <---บรรทัดนี้ [/code:1:38c21f80e3] 7. พิมพ์คำสั่ง ldconfig [code:1:38c21f80e3][root@iserver etc]#ldconfig[/code:1:38c21f80e3] 8. ขั้นตอนสุดท้ายสั่ง Connect ได้เลยครัับ [code:1:38c21f80e3] [root@iserver ~]# amstart.sh >>> Inits Zyxel 630-11 & Asus AAM6000UG <<< >>> Removing amedyn driver... >>> Loading firmware... Zyxel 630-11 & Asus AAM6000UG microcode upload program. 02/08/2004 Josep Comas Sundar Eduardo Espejo I found ADSL modem with VendorID = 06b9 & ProductID = a5a5 Loading and sending /usr/sbin/fw-usb.bin... Firmware is sent! Waiting ADSL line is up (until -1 seconds)... ...... ADSL line is up >>> Loading driver... FATAL: Module crc32 not found. Launching driver in normal mode... /usr/sbin/amload.sh successful Setting PPP over Ethernet... >>> Setting PPPoE <<< >>> Activating send/receive data... Zxyel 630-11 & Asus AAM6000UG ioctl call. 24/9/2003 Josep Comas Sundar Eduardo Espejo I found ADSL modem with VendorID = 06b9 & ProductID = a5a5 >>> Loading br2684 kernel module... >>> Loading ppp_generic... >>> Loading br2684ctl... RFC1483/2684 bridge: Interface "nas0" created sucessfully RFC1483/2684 bridge: Communicating over ATM 0.0.100, encapsulation: LLC RFC1483/2684 bridge: Interface configured >>> Activating interface... >>> Removing default route... >>> Loading pppd daemon... /usr/sbin/amnet4up.sh successful [root@iserver ~]# [/code:1:38c21f80e3] [color=red:38c21f80e3]ถ้ามี Error ตอน Connect[/color:38c21f80e3]ให้ลองถอดสาย USB ออกจาก Modem แล้วเสียบเข้าไปใหม่ และพิมพ์คำสั่ง amstop.sh จากนั้นให้ลองสั่ง amstart.sh ใหม่ดูนะครับหรือจะ Reboot ก็ได้ ผมทดสอบเฉพาะ Fedora 3 นะครับส่วน Linux ตัวอื่นลองดูแล้วกันนะครับ [color=red:38c21f80e3]บทความนี้ทางทีมงานนำมาจากเว็บที่น่าสนใจ(ได้ link จาก news ของ linux.thai.net คิดว่าน่าเก็บไว้จึงขอนำมา post ทิ้งไว้ในบอร์ดเผื่อมีสมาชิกท่านใดต้องการความรู้เรื่องนี้ [/color:38c21f80e3] [color=red:38c21f80e3][size=24:38c21f80e3]ทางทีมงานได้ทดสอบ driver ตัวนี้และวิธีการตามข้างบนแล้ว สามารถใช้งานได้กับ TLE 7.0 ครับ[/size:38c21f80e3][/color:38c21f80e3]
Posts: 1128
Joined: 02-12-2002