1、一种是linux共享局域网内的windows主机上网
如果你的网卡linux能够识别的话在安装的时候会有网卡配置过程。从列表中选择网络设备,一般为eth0,点击“编辑”,在打开的“编辑接口”对话框中,用户可以通过DHCP来配置网络,这样也可以,也可以去掉“使用DHCP进行配置”前面的选项,然后在下面输入你要定制的IP地址和子网掩码,确定后,在下面的网关和主要DNS里输入当前局域网上做为主机的计算机的IP地址。这样装完以后就搞定。
如果你是装完后再安装的网卡的话,那可以在“系统设置”里选择“网络”,如果你的网卡安装成功的话会在下面的列表里看到你的网卡,同样设置DNS(和上面一样),然后再回到列表里,选中你的网卡,点上面的编辑,选中“当计算机启动时激活设备”,然后选择下面的“静态设置的IP地址”,在下面输入和上面同样的设置。再重新启动就可以了。
2、另外一种就是用你的linux通过ADSL上网了
在linux下就集成着一个ADSL拨号软件,打开终端,在里面输入#adsl-setup,然后进行设置:
LOGINNAME
EnteryourLoginName(defaultroot):(输入你的用户名)
INTERFACE
EntertheEthernetinterfaceconnectedtotheADSLmodem
ForSolaris,thisislikelytobesomethinglike/dev/hme0.
ForLinux,itwillbeethX,where''X''isanumber.
(defaulteth0):(选择网络设备)
Doyouwantthelinktocomeupondemand,orstayupcontinuously?
Ifyouwantittocomeupondemand,entertheidletimeinseconds
afterwhichthelinkshouldbedropped.Ifyouwantthelinkto
stayuppermanently,enter''no''(twoletters,lower-case.)
NOTE:Demand-activatedlinksdonotinteractwellwithdynamicIP
addresses.Youmayhavesomeproblemswithdemand-activatedlinks.
Enterthedemandvalue(defaultno):(选择是按需拨号,还是持续连接)
DNS
PleaseentertheIPaddressofyourISP''sprimaryDNSserver.
IfyourISPclaimsthat''theserverwillprovidedynamicDNSaddresses'',
enter''server''(alllower-case)here.
Ifyoujustpressenter,Iwillassumeyouknowwhatyouare
doingandnotmodifyyourDNSsetup.
EntertheDNSinformationhere:(选择DNS)
PASSWORD
PleaseenteryourPassword:
Pleasere-enteryourPassword:
USERCTRL
Pleaseenter''yes''(twoletters,lower-case.)ifyouwanttoallow
normalusertostartorstopDSLconnection(defaultyes):(是否允许普通用户启动、关闭)
Thefirewallchoicesare:
0-NONE:Thisscriptwillnotsetanyfirewallrules.Youareresponsible
forensuringthesecurityofyourmachine.YouareSTRONGLY
recommendedtousesomekindoffirewallrules.
1-STANDALONE:Appropriateforabasicstand-aloneweb-surfingworkstation
2-MASQUERADE:AppropriateforamachineactingasanInternetgateway
foraLAN
Chooseatypeoffirewall(0-2):(选择firewall的规则)
Startthisconnectionatboottime
Doyouwanttostartthisconnectionatboottime?
Pleaseenternooryes(defaultno):(选择是否随机启动)
**Summaryofwhatyouentered**
EthernetInterface:
Username:
Activate-on-demand:
DNSaddresses:
Firewalling:
UserControl:
Acceptthesesettingsandadjustconfigurationfiles(y/n)?(确认一下是否接受设置)
以上的设置在“系统设置”里的“网络”里选择新建,建立一个xDSL连接,也可以实现。设置完成了以后在网络里激活连接。
linux上网经典二法linux上网经典二法linux上网经典二法linux上网经典二法linux上网经典二法linux上网经典二法linux上网经典二法linux上网经典二法linux上网经典二法linux上网经典二法
阅读(513) | 评论(0) | 转发(0) |