ubuntu网卡配置
2012-08-10 17:42
260 查看
1、dhcp自动获取
sudo vi /etc/network/interfaces
auto eth0
iface eth0 inet dhcp
设置生效:
sudo /etc/init.d/networking restart
或
sudo dhclient eth0
2、静态IP地址
sudo vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.3.90
netmask 255.255.255.0
gateway 192.168.3.1
设置生效:
sudo /etc/init.d/networking restart
3、虚拟IP地址
sudo vi /etc/network/interfaces
添加:
auto eth0:1
iface eth0:1 inet static
address 192.168.1.60
netmask 255.255.255.0
gateway 192.168.1.1
设置生效:
sudo /etc/init.d/networking restart本文出自 “notepad” 博客,请务必保留此出处http://sndapk.blog.51cto.com/5385144/960507
sudo vi /etc/network/interfaces
auto eth0
iface eth0 inet dhcp
设置生效:
sudo /etc/init.d/networking restart
或
sudo dhclient eth0
2、静态IP地址
sudo vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.3.90
netmask 255.255.255.0
gateway 192.168.3.1
设置生效:
sudo /etc/init.d/networking restart
3、虚拟IP地址
sudo vi /etc/network/interfaces
添加:
auto eth0:1
iface eth0:1 inet static
address 192.168.1.60
netmask 255.255.255.0
gateway 192.168.1.1
设置生效:
sudo /etc/init.d/networking restart本文出自 “notepad” 博客,请务必保留此出处http://sndapk.blog.51cto.com/5385144/960507
相关文章推荐
- Ubuntu 下的多网卡联网的方法配置
- 手动配置ubuntu无线网卡
- 虚拟机+ubuntu下双网卡配置笔记
- Ubuntu下单网卡多IP地址的配置
- Ubuntu网卡基本配置
- Ubuntu网卡配置
- 解析网卡配置静态Ubuntu IP地址
- Centos7,Ubuntu14.04多网卡配置bond,将多网卡绑定在一起
- ubuntu网卡配置模式
- Ubuntu虚拟机多网卡配置
- ubuntu9.04 kde桌面安装以及无线网卡的配置
- Ubuntu下单网卡多IP地址的配置
- Ubuntu配置双网卡
- ceph存储 Linux 网卡配置-centos&ubuntu
- Ubuntu下单网卡多IP地址的配置
- Ubuntu server 配置 TL-WN821N 无线网卡
- Ubuntu虚拟机多网卡配置
- [zz]Ubuntu配置双网卡
- ubuntu双网卡准备配置
- Ubuntu网络配置以DHCP方式配置网卡