‘壹’ ubuntu网络设置
ip地址的设定,需要根据你所在的网络环境来设定,与windows系统类似。
如果网络环境里面有dhcp服务器,可以使用自动获得ip地址。
如果没有dhcp服务器,手动进行配置。如: 192.168.1.20 子网掩码 255.255.255.0, 网关 192.168.1.1 , dns : 192.168.1.1
‘贰’ 如何设置ubuntu的网络设置
方法一.使用图行界面设置,这个最简单...
1
方法二,采用命令方式,临时修改网卡IP...
2
查看网关,命令$route -n修改网关$sudo...
3
查看DNS,使用nm-tool命令$ns-tool
4
输入命令$sudo nano /etc/network/inte...
5
输入命令$sudo nano /etc/resolvconf/r..
‘叁’ ubuntu虚拟机怎么设置网络
1. 把你的虚拟网卡VMnet8设置为自动获得IP、自动获得DNS服务器,启用。
2. 把你虚拟机中操作系统的“本地连接”也设置为自动获得IP、自动获得DNS服
务器(在虚拟机中,右键“本地连接”-双击“Internet 协议”,看看是不是自动的吧!固定IP的也在这里改!)
3.当然是将虚拟机的上网方式选为NAT咯。
右键你要设置的虚拟机选“设置”(因为有的不止虚拟一台),在“硬件”中选“以太网”, 将右边的网络连接改为NAT-确定。
4.点菜单栏里的“编辑”-选“虚拟网络设置”,先将“自动桥接”给去掉(去掉钩钩),再选“DHCP”开启DHCP服务,点“开始”-应用,再按同样的方法开启“NAT”的功能。
5.最重要的是你的两个服务必须开启:VMware DHCP Service 和VMware NAT Service。
具体操作如下: 开始---设置--控制面板---管理工具---服务,确保 VMware DHCP Service 和VMware NAT Service 服务已经启动。
‘肆’ Ubuntu 网络设置
这种情况下一般是要设置浏览器代理的。
Ubuntu10.04默认的是FireFox,在"工具"——"选项"——"高级"——"网络"——"设置"——"自动检测此网络的代理设置"。
IE一般是默认自动检测此网络的代理设置的,所以win系统一般都是没什么问题的。
‘伍’ ubuntu怎么设置网络连接
方法/步骤
方法一.使用图行界面设置,这个最简单。IP,子网掩码,网关,DNS都可以轻松设置。永久保存。
方法二,采用命令方式,临时修改网卡IP和子网掩码,重启网络后会丢失。$sudo ifconfig eth0 192.168.1.1 netmask 255.255.255.0
查看网关,命令$route -n
修改网关$sudo route add default gw 192.168.0.1
查看DNS,使用nm-tool命令$ns-tool
方法三,修改网卡的配置文件,这个是最主要的方式,可以永久保存。
注意不是/etc/resolv.conf,而是/etc/network/interfaces文件。
输入命令$sudo nano /etc/network/interfaces
输入:
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
Ctrl+x保存退出
输入命令$sudo nano /etc/resolvconf/resolv.conf.d/base
修改DNS
‘陆’ 如何给Ubuntu网站绑定多个IP,怎么给Ubuntu服务器设置多IP
多个不同IP段的 /etc/network/interfaces 配置文件的范例如下:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 8.8.8.2
netmask 255.255.255.248
gateway 8.8.8.1 要注意这里,多个不同IP段,只要1个gateway配置即可,其他IP不需要配置gateway
auto eth0:0
iface eth0:0 inet static
address 8.8.8.3
netmask 255.255.255.248
auto eth0:1
iface eth0:1 inet static
address 8.8.8.4
netmask 255.255.255.248
auto eth0:2
iface eth0:2 inet static
address 8.8.8.5
netmask 255.255.255.248
auto eth0:3
iface eth0:3 inet static
address 8.8.8.6
netmask 255.255.255.248
auto eth0:4
iface eth0:4 inet static
address 6.6.6.130 注意这里,虽然这是不同的IP段,但是不需要配置gateway,只需要配置netmask即可
netmask 255.255.255.224
auto eth0:5
iface eth0:5 inet static
address 6.6.6.131
netmask 255.255.255.224
更多ip也类似配置即可。
配置文件完成后,用命令 /etc/init.d/networking restart 重启网络,不需要reboot重启服务器。 /etc/init.d/networking restart 重启网络的时候,如果你的配置文件有错误,那么他会提示你。比如IP重复了,书写错误了,等等。在执行此命令前,一定要小心检查interfaces配置文件,不然可能就把网络弄瘫痪,那时候就需要机房的工作人员去处理,十分麻烦。
/etc/init.d/networking restart错误分析案例:
[email protected]:/etc/network# /etc/init.d/networking restart
* Reconfiguring network interfaces...
/etc/network/interfaces:165: interface eth0:28 declared allow-auto twice
ifdown: couldn't read interfaces file "/etc/network/interfaces"
/etc/network/interfaces:165: interface eth0:28 declared allow-auto twice
ifup: couldn't read interfaces file "/etc/network/interfaces"
...fail!
说明eth0:28有重复,解决办法:vi interfaces找到eth0:28,删除掉重复的
[email protected]:/etc/network# /etc/init.d/networking restart
* Reconfiguring network interfaces...
/etc/network/interfaces:166: plicate interface
ifdown: couldn't read interfaces file "/etc/network/interfaces"
/etc/network/interfaces:166: plicate interface
ifup: couldn't read interfaces file "/etc/network/interfaces"
...fail!
说明166行有重复,解决办法:vi interfaces找到166行(set number),删除掉重复的
[email protected]:/etc/network# /etc/init.d/networking restart
* Reconfiguring network interfaces...
/etc/network/interfaces:162: plicate interface
ifdown: couldn't read interfaces file "/etc/network/interfaces"
/etc/network/interfaces:162: plicate interface
ifup: couldn't read interfaces file "/etc/network/interfaces"
说明162行有重复,解决办法:vi interfaces找到166行(set number),删除掉重复的
‘柒’ ubuntu linux中如何设置无线网络连接
ubuntu linux中无线网络设置跟驱动相关,只要能安装好相应的驱动就能解决问题。
解决方法:
1、首先,查看对应的PCI设备,可以看出,我的无线网卡是 Broadcom 的BCM4311。