LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: sinclair

请问在LFS6.1中用ADSL上网需如何设置?

[复制链接]
发表于 2005-8-23 23:33:31 | 显示全部楼层
Hi sinclair,

1) adsl-setup
Enter your PPPoE user name - (type in your login to connect to your ISP and press [ENTER])
....(default eth0): (just press [ENTER], I suppose you use eth0)
>>> Enter the demand value (default no): (just press [ENTER]
>>> Enter the DNS information here:  (for dynamic IP, type server and press [ENTER].  Otherwise you have to fill in all details)
>>> Please enter your PPPoE password:  (type in password twice)
>>> Choose a type of firewall (0-2):  (a little bid complicate here.  The defaut firewall is ipchain.  But we are going to install iptable.  So just type in 0 and press [ENTER])
>>> Accept these settings and adjust configuration files (y/n)?  (type y and press [ENTER])

That is all.

2) Please post the output of
# adsl-connect

3) Are you installing BLFS and coming ot re-pppoe (Section Part IV. Connecting to a Network)

B.R.
satimis
回复 支持 反对

使用道具 举报

发表于 2005-8-24 00:08:37 | 显示全部楼层
Hi sinclair,

delete GATEWAY
GATEWAY in my system path is /etc/sysconfig/network-devices/ifconfig.eth0/ipv4
What did you mean "delete GATEWAY"?

Is GATEWAY a file OR an entry on ipv4.  I suppose ipv4 is a directory not a file.

Tks

B.R.
satimis
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-24 06:35:43 | 显示全部楼层
Hi satimis
Post by satimis

3) Are you installing BLFS and coming ot re-pppoe (Section Part IV. Connecting to a Network)

yes.i use rp-pppoe connect to Network.
Post by satimis

Is GATEWAY a file OR an entry on ipv4.  I suppose ipv4 is a directory not a file.

ipv4 is file.
root@Fine-Lok:~# vi /etc/sysconfig/network-devices/ifconfig.eth0/ipv4
ONBOOT=yes
SERVICE=ipv4-static
IP=192.168.1.1
GATEWAY= <========clean here
PREFIX=24
BROADCAST=192.168.1.255
~
"/etc/sysconfig/network-devices/ifconfig.eth0/ipv4" 6L, 89C
Post by satimis
Hi sinclair,
You'll on your way.  It worked for me on LFS LiveCD.  But it did not work for me on LFS 6.1 which I'm building.  I'm now trying to discover where it blocks the connection to ISP.

I haven't LFS liveCD.if It worked for you on LFS LiveCD. you can use LFS LiveCD KERNEL .config recompile you LFS6.1 kernel or download new kernel then compile kernel with LFS LiveCD KERNEL .config.i think.
i compiled use new kernel,keep the old kernel on my LFS6.1 system.if something wrong,i can use old kernel.if compile new kernel succeed,you can delete old kernel.
Good Luck
sorry i'm poor English.
回复 支持 反对

使用道具 举报

发表于 2005-8-24 07:42:20 | 显示全部楼层
Hi sinclair,

ipv4 is file.
I don't have this file.

(not in chroot environment)
# ls -al /mnt/lfs/etc/sysconfig/network-devices/ifconfig.eth0/
  1. total 24
  2. drwxr-xr-x  2 root root 4096 Aug 22 15:50 .
  3. drwxr-xr-x  4 root root 4096 Aug 22 15:50 ..
  4. -rw-r--r--  1 root root   29 Aug 22 15:50 pppoe
复制代码
]
[root@localhost satimis]# cat /mnt/lfs/etc/sysconfig/network-devices/ifconfig.eth0/pppoe
  1. ONBOOT="yes"
  2. SERVICE="pppoe
复制代码
Only 2 lines there.

I haven't LFS liveCD.if It worked for you on LFS LiveCD. you can use LFS LiveCD KERNEL .config recompile you LFS6.1 kernel or download new kernel then compile kernel with LFS LiveCD KERNEL .config.i think.........
Noted with thanks.

B.R.
satimis
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表