linux kali下怎么用有线联网
1、 rp-pppoe软件的安装(客户端)
wget https://www.roaringpenguin.com/files/download/rp-pppoe-3.12.tar.gz 下载
(1) 解压rp-pppoe #tar -xzf rp-pppoe-3.12.tar.gz
(2) cd/rp-pppoe-3.12/src
(3) ./configure
(4) make && sudo make install

>>> Enter your PPPoE user name: ——此处输入拨号帐号的用户名
>>> 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
>>> Enter the demand value (default no): ——输no
>>> Enter the DNS information here: ——输210.52.149.2(视当地运营商的DNS服务器IP而定)
>>> Please enter your PPPoE password: ——输网通用户口令
>>> Choose a type of firewall (0-2): ——输0
>>> Accept these settings and adjust configuration files (y/n)? ——输y
net.ipv4.ip_forward = 0
改为
net.ipv4.ip_forward = 1
4、 启动拨号连接
#pppoe-start
成功连接后,屏幕显示Connected。
wget https://www.roaringpenguin.com/files/download/rp-pppoe-3.12.tar.gz 下载
(1) 解压rp-pppoe #tar -xzf rp-pppoe-3.12.tar.gz
(2) cd/rp-pppoe-3.12/src
(3) ./configure
(4) make && sudo make install
2、 sudo pppoe-setup //sudo apt-get install pppoe
进行PPPoE客户端配置了。过程如下。>>> Enter your PPPoE user name: ——此处输入拨号帐号的用户名
>>> 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
>>> Enter the demand value (default no): ——输no
>>> Enter the DNS information here: ——输210.52.149.2(视当地运营商的DNS服务器IP而定)
>>> Please enter your PPPoE password: ——输网通用户口令
>>> Choose a type of firewall (0-2): ——输0
>>> Accept these settings and adjust configuration files (y/n)? ——输y
3、 修改/etc/ sysctl.conf
将其中的net.ipv4.ip_forward = 0
改为
net.ipv4.ip_forward = 1
4、 启动拨号连接
#pppoe-start
成功连接后,屏幕显示Connected。
各大网站都说这样就可以上网了,此时我的这台linux还是没有成功。这里只是此次实践成功的一半。
二、进行DSL设置:前提条件,必须先安装好pppoe这个组件。--------------------------------------------------------------------------此处感谢师兄!
以太网有线连接1有时候自动生成,随着DSL的建立。各种尝试吧。上午连着好好的,下午就断了,我也试着忘记密码什么的也能
重新链接,但是奇怪的ip一直在换,不稳定,后来瞎弄弄配置,记录一下能上网的各个配置。