한국통신 adsl을 이용한 network설정에 애를 먹고 있는 사람입니다.
먼저 저는 알짜 배포한 6.2를 사용중이구요.
받은 시디 pppoe-1.300.000 디렉토리하에
option.pppoe, pppoed-2.0, pppoed-2.2, start-pppoe, stop-pppoe
다섯개의 화일이 있습니다.
pppoed-2.2를 pppoed로 바꾸고, start-pppoe, stop-pppoe와 더불어,
/usr/local/bin에 복사했습니다.
다음, start-pppoe를 수정합니다.
USERID에 myuserid를 대체합니다.
---
#!/bin/bash
# Copyright (c) 1999,2000 by Network TeleSystems, Inc.
# All rights reserved.
# Internet http://www.nts.com #
# Please direct all support-related calls to your licensed Internet Service
# Provider. NTS does not provide direct support. NTS works through Internet
# Service Providers that have licensed our software.
unset USERID
unset ACNAME
unset SERVICENAME
unset ETHERNET
unset LINKNAME
unset SYNC
unset PERSIST
#----- Beginning of User Changeable Area ----------------------------------
# Note, when making changes be sure NOT to insert white space (blanks)
# around the "=" symbol.
# For example: USERID= "RoadRunner"
# This will not work. It should be written as: USERID="RoadRunner"
# Replace YourUserID with that of the userid supplied by your ISP.
# You will also need to add the user-id and password to the
# /etc/ppp/chap-secrets and/or /etc/ppp/pap-secrets file.
USERID="myuserid" <--- 여기
# If you need to connect to a specific service name then uncomment the line
# below. Replace YourServiceName with the service name specified by your ISP.
# SERVICENAME="YourServiceName"
# If you need to access a specific Access Concentrator then uncomment the
# line below. Replace YourAccessConcentratorName with the name specified by
# your ISP.
# ACNAME="YourAccessConcentratorName"
# Not all systems can support the sync option. Uncomment the next line if
# yours can. See the README, section IMPROVE PERFORMANCE, for more
# information on when you can and cannot use this option.
# SYNC=sync
# If you want your PPPoE connection to automatically reconnect if the
# connection should break, uncomment the next line.
# PERSIST=persist
# If the Ethernet NIC that you will be using is not at eth0 you will need
# to supply that information below by replacing eth0 with that of your
# network card. ifconfig command will show a list of network interfaces.
INTERFACE="eth0"
# Programs w/path. If your system has these programs in different locations
# update the paths as appropriate.
PPPD=/usr/sbin/pppd
PPPOED=/usr/local/bin/pppoed
IFCONFIG=/sbin/ifconfig
#----- End User Changeable Area ------------------------------------------------
if [ "$USERID" = "YourUserID" ]; then
echo 'Are you sure your correct login user ID is "YourUserID".'
fi
$IFCONFIG $INTERFACE 0.0.0.0 -broadcast up -arp
if [ -n "$1" ]; then
SERVICENAME="$1"
fi
if [ -n "$SERVICENAME" ]; then
SERVICENAME="-S $SERVICENAME"
fi
if [ -n "$ACNAME" ]; then
ACNAME="-A $ACNAME"
fi
if [ -n "$INTERFACE" ]; then
INTERFACE="-I $INTERFACE"
fi
if [ -n "$USERID" ]; then
USERID="name $USERID"
fi
if [ -n "$PERSIST" ]; then
PERSIST="persist"
fi
if [ -n "$SYNC" ]; then
SYNC="sync"
fi
$PPPD
pty "$PPPOED $INTERFACE $SERVICENAME $ACNAME"
$USERID
file /etc/ppp/options.pppoe
defaultroute
$SYNC
$PERSIST
---
그후에,
/etc/ppp/chap-secrets 와 pap-secrets 를 아래와 같이 바꿉니다.
물론 myuserid, donttell은 각각 한통 adsl 아이디와 비번입니다.
# Secrets for Authentication using PAP
# Client server secret IP address
myuserid * donttell *
그후, options.pppoe를 /etc/ppp 디렉토리에 넣었습니다.
그후, 시스템 아디를 10.1.1.1로 바꾸로 기본 게이트웨이도 10.1.1.1로 바꿨습니다.
서브넷 마스크는 255.0.0.0
DHCP, bootp가 아닌 none으로 하고,
다음은, ifconfig eth0 0.0.0.0 up -broadcast -arp
를 start-pppoe에 삽입해야 했으나
$IFCONFIG $INTERFACE 0.0.0.0 -broadcast up -arp
와 같으므로 그대로 놔두었습니다.
그리고, 메인 서버를 /etc/resolv.conf화일에,
nameserver 168.126.63.1
nameserver 168.126.63.2
로 설정했습니다.
현재는 ifconfig로 eth0, lo만 설정되었고,,
/usr/local/bin/start-pppoe를 실행하니 에러가 났습니다.
뭘 찾지 못한다나 뭐라나,,
아무리 찾아도 디렉토리나 화일의 철자가 틀린건 없는데,,?
제발 도와주십시오..