




已阅读5页,还剩11页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
linux 上网设置经典1、一种是 linux 共享局域网内的 windows 主机上网如果你的网卡 linux 能够识别的话在安装的时候会有网卡配置过程。从列表中选择网络设备,一般为 eth0,点击“编辑” ,在打开的“编辑接口”对话框中,用户可以通过 DHCP 来配置网络,这样也可以,不过我更喜欢定制一个静态 IP,所以去掉“使用 DHCP 进行配置”前面的选项,然后在下面输入你要定制的 IP 地址和子网掩码,确定后,在下面的网关和主要 DNS 里输入当前局域网上做为主机的计算机的 IP 地址。这样装完以后就搞定。如果你是装完后再安装的网卡的话,那可以在“系统设置”里选择“网络” ,如果你的网卡安装成功的话会在下面的列表里看到你的网卡,同样设置 DNS(和上面一样) ,然后再回到列表里,选中你的网卡,点上面的编辑,选中“当计算机启动时激活设备” ,然后选择下面的“静态设置的 IP 地址”,在下面输入和上面同样的设置。再重新启动就可以了。2、另外一种就是用你的 linux 通过 ADSL 上网了在 linux 下就集成着一个 ADSL 拨号软件,打开终端,在里面输入#adsl-setup,然后进行设置:LOGIN NAMEEnter your Login Name (default root):(输入你的用户名)INTERFACEEnter the Ethernet interface connected to the ADSL modemFor Solaris, this is likely to be something like /dev/hme0.For Linux, it will be ethX, where X is a number.(default eth0):(选择网络设备)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 secondsafter which the link should be dropped. If you want the link tostay up permanently, enter no (two letters, lower-case.)NOTE: Demand-activated links do not interact well with dynamic IPaddresses. You may have some problems with demand-activated links.Enter the demand value (default no):(选择是按需拨号,还是持续连接)DNSPlease enter the IP address of your ISPs 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 aredoing and not modify your DNS setup.Enter the DNS information here:(选择DNS)PASSWORDPlease enter your Password:Please re-enter your Password:USERCTRLPlease enter yes (two letters, lower-case.) if you want to allownormal user to start or stop DSL connection (default yes):(是否允许普通用户启动、关闭)The firewall choices are:0 - NONE: This script will not set any firewall rules. You are responsiblefor ensuring the security of your machine. You are STRONGLYrecommended to use some kind of firewall rules.1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation2 - MASQUERADE: Appropriate for a machine acting as an Internet gatewayfor a LANChoose a type of firewall (0-2):(选择firewall 的规则)Start this connection at boot timeDo you want to start this connection at boot time?Please enter no or yes (default no):(选择是否随机启动)* Summary of what you entered *Ethernet Interface:User name:Activate-on-demand:DNS addresses:Firewalling:User Control:Accept these settings and adjust configuration files (y/n)?(确认一下是否接受设置)以上的设置在“系统设置”里 的“网络”里选择新建,建立一个 xDSL 连接,也可以实现。设置完成了以后在网络里激活连接。上面的 ADSL 连接就试过一次,由于我们是局域网,所以一直用的是共享上网,如果有什么错误不要骂我,还请指教!1、一种是 linux 共享局域网内的 windows 主机上网如果你的网卡 linux 能够识别的话在安装的时候会有网卡配置过程。从列表中选择网络设备,一般为 eth0,点击“编辑” ,在打开的“编辑接口”对话框中,用户可以通过 DHCP 来配置网络,这样也可以,不过我更喜欢定制一个静态 IP,所以去掉“使用 DHCP 进行配置”前面的选项,然后在下面输入你要定制的 IP 地址和子网掩码,确定后,在下面的网关和主要 DNS 里输入当前局域网上做为主机的计算机的 IP 地址。这样装完以后就搞定。如果你是装完后再安装的网卡的话,那可以在“系统设置”里选择“网络” ,如果你的网卡安装成功的话会在下面的列表里看到你的网卡,同样设置 DNS(和上面一样) ,然后再回到列表里,选中你的网卡,点上面的编辑,选中“当计算机启动时激活设备” ,然后选择下面的“静态设置的 IP 地址”,在下面输入和上面同样的设置。再重新启动就可以了。2、另外一种就是用你的 linux 通过 ADSL 上网了在 linux 下就集成着一个 ADSL 拨号软件,打开终端,在里面输入#adsl-setup,然后进行设置:LOGIN NAMEEnter your Login Name (default root):(输入你的用户名)INTERFACEEnter the Ethernet interface connected to the ADSL modemFor Solaris, this is likely to be something like /dev/hme0.For Linux, it will be ethX, where X is a number.(default eth0):(选择网络设备)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 secondsafter which the link should be dropped. If you want the link tostay up permanently, enter no (two letters, lower-case.)NOTE: Demand-activated links do not interact well with dynamic IPaddresses. You may have some problems with demand-activated links.Enter the demand value (default no):(选择是按需拨号,还是持续连接)DNSPlease enter the IP address of your ISPs 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 aredoing and not modify your DNS setup.Enter the DNS information here:(选择DNS)PASSWORDPlease enter your Password:Please re-enter your Password:USERCTRLPlease enter yes (two letters, lower-case.) if you want to allownormal user to start or stop DSL connection (default yes):(是否允许普通用户启动、关闭)The firewall choices are:0 - NONE: This script will not set any firewall rules. You are responsiblefor ensuring the security of your machine. You are STRONGLYrecommended to use some kind of firewall rules.1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation2 - MASQUERADE: Appropriate for a machine acting as an Internet gatewayfor a LANChoose a type of firewall (0-2):(选择firewall 的规则)Start this connection at boot timeDo you want to start this connection at boot time?Please enter no or yes (default no):(选择是否随机启动)* Summary of what you entered *Ethernet Interface:User name:Activate-on-demand:DNS addresses:Firewalling:User Control:Accept these settings and adjust configuration files (y/n)?(确认一下是否接受设置)以上的设置在“系统设置”里 的“网络”里选择新建,建立一个 xDSL 连接,也可以实现。设置完成了以后在网络里激活连接。上面的 ADSL 连接就试过一次,由于我们是局域网,所以一直用的是共享上网,如果有什么错误不要骂我,还请指教!1、一种是 linux 共享局域网内的 windows 主机上网如果你的网卡 linux 能够识别的话在安装的时候会有网卡配置过程。从列表中选择网络设备,一般为 eth0,点击“编辑” ,在打开的“编辑接口”对话框中,用户可以通过 DHCP 来配置网络,这样也可以,不过我更喜欢定制一个静态 IP,所以去掉“使用 DHCP 进行配置”前面的选项,然后在下面输入你要定制的 IP 地址和子网掩码,确定后,在下面的网关和主要 DNS 里输入当前局域网上做为主机的计算机的 IP 地址。这样装完以后就搞定。如果你是装完后再安装的网卡的话,那可以在“系统设置”里选择“网络” ,如果你的网卡安装成功的话会在下面的列表里看到你的网卡,同样设置 DNS(和上面一样) ,然后再回到列表里,选中你的网卡,点上面的编辑,选中“当计算机启动时激活设备” ,然后选择下面的“静态设置的 IP 地址”,在下面输入和上面同样的设置。再重新启动就可以了。2、另外一种就是用你的 linux 通过 ADSL 上网了在 linux 下就集成着一个 ADSL 拨号软件,打开终端,在里面输入#adsl-setup,然后进行设置:LOGIN NAMEEnter your Login Name (default root):(输入你的用户名)INTERFACEEnter the Ethernet interface connected to the ADSL modemFor Solaris, this is likely to be something like /dev/hme0.For Linux, it will be ethX, where X is a number.(default eth0):(选择网络设备)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 secondsafter which the link should be dropped. If you want the link tostay up permanently, enter no (two letters, lower-case.)NOTE: Demand-activated links do not interact well with dynamic IPaddresses. You may have some problems with demand-activated links.Enter the demand value (default no):(选择是按需拨号,还是持续连接)DNSPlease enter the IP address of your ISPs 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 aredoing and not modify your DNS setup.Enter the DNS information here:(选择DNS)PASSWORDPlease enter your Password:Please re-enter your Password:USERCTRLPlease enter yes (two letters, lower-case.) if you want to allownormal user to start or stop DSL connection (default yes):(是否允许普通用户启动、关闭)The firewall choices are:0 - NONE: This script will not set any firewall rules.
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 大学生在线学习平台
- 江苏省安全文明施工措施费
- 项目进度汇报及协调通知
- 跨部门协作会议纪要与行动计划
- 高效会议管理技巧与实践指南
- 台风应急预案演练方案
- 项目预算控制表模板(财务部门)
- 可持续发展战略实践分享
- 电子交易系统操作指南
- 办公室职员健康促进措施
- 遥感的物理基础 课件 第二章 遥感的物理基础
- 胃大部切除术护理常规
- 2025体育单招英语备考100个高频名词精讲(精校打印版)
- 2025年皖北卫生职业学院单招职业适应性测试题库审定版
- 台球馆装修合同模板及明细
- 数学-湖北省鄂东新领先协作体2025届高三下学期2月调考(二模)试题和答案
- 2024-2025学年人教版数学七下 第七章 相交线与平行线(含答案)
- GB/T 44994-2024声学助听器验配管理
- 装卸车程序及人员管理规章制度范文(2篇)
- 生活垃圾焚烧发电项目工程创优(鲁班奖)计划
- 电池及电池系统维修保养师国家职业标准(2024年)
评论
0/150
提交评论