未分類

文字介面下ADSL 撥接設定 for Fedora8

我記得在 CentOS5 要設定adsl是使用
# adsl-setup

但是使用 Fedora8 時卻發現變成了 # pppoe-setup,其實下這個指令是幫助我們建立好 /etc/sysconfig/network-scripts/ifcfg-ppp0,這個設定檔

# pppoe-setup

LOGIN NAME
Enter your Login Name (default root):12345678@hinet.net

Enter the Ethernet interface connected to the PPPoE 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): ← 直接 Enter

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: ← ADSL撥接時,DNS 可設可不設,直接 Enter

PASSWORD

Please enter your Password: ← 輸入撥接密碼,不會顯示
Please re-enter your Password: ← 再次輸入撥接密碼,不會顯示

USERCTRL

Please enter ‘yes’ (three 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): 0

Start this connection at boot time(開機要不要自動撥接?)

Do you want to start this connection at boot time?
Please enter no or yes (default no):yes

** Summary of what you entered **

Ethernet Interface: eth0
User name:          12345678@hinet.net
Activate-on-demand: No
DNS:                Do not adjust
Firewalling:        NONE
User Control:       yes
Accept these settings and adjust configuration files (y/n)?y

完成設定之後,/etc/sysconfig/network-scripts/ifcfg-ppp0 設定檔被建立起來。

ADSL 撥接
# ifup ppp0
or
# pppoe-start

ADSL 斷線
# ifdown ppp0
or
# pppoe-stop

2 thoughts on “文字介面下ADSL 撥接設定 for Fedora8

  1. 我想問喔~ 那ifup ppp後, 那我的eth0需要ifup嗎? 因為有設eth0:0 給他虛擬ip,不曉得還自行需要ifup eth0:0嗎?

    謝謝您!

  2. pppoe要啟動,一定得eth0先啟動,所以沒有啟動pppoe後再啟動eth0的情況。
    如果你有設定好eth0跟eth0:0的話,預設本來就是自動開機啟動的。
    # cat /etc/sysconfig/network-scripts/ifcfg-eth0
    # cat /etc/sysconfig/network-scripts/ifcfg-eth0:0

    DEVICE=eth0
    BROADCAST=192.168.1.255
    IPADDR=192.168.1.100
    NETMASK=255.255.255.0
    NETWORK=192.168.1.0
    ONBOOT=yes
    TYPE=Ethernet
    HWADDR=00:0c:29:86:7b:16
    .
    .
    .
    我文章中啟 ifup ppp是手動撥接adsl的示範,大部分的情況,設定到最後,問題Start this connection at boot time(開機要不要自動撥接?) ,大家幾乎都是選 yes,那就沒有主機開機後, 還要自己再去撥接adsl的問題了。

發佈回覆給「qq」的留言 取消回覆

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *