论坛
门户
内部优惠
喜欢
话题
VIP会员
搜索
新浪微博
登录
注册
100%
100%
首页
>
操作系统
>
linux技巧
>
ubuntu网络配置
回复
« 返回列表
灯火互联
管理员
注册日期
2011-07-27
发帖数
41778
QQ
火币
41290枚
粉丝
1086
关注
100
加关注
写私信
打招呼
阅读:
2471
回复:
0
ubuntu网络配置
楼主
#
更多
只看楼主
倒序阅读
发布于:2012-12-20 16:11
保存
100%
100%
[]
1
ubuntu网络配置
一、dhcp自动获取IP
编辑/etc/network/
inter
faces
auto lo # 开机自动激lo接口
ifacelo inet loopback # 配置lo接口为环回口
# The primarynetwork interface (配置主网络接口)
autoeth0 #开机自动激活eth0接口
iface eth0 inetdhcp #配置eth0接口为DHCP自动获取
重启网络:
sudo /etc/init.d/networkingrestart
二、配置静态IP
编辑/etc/network/interfaces
#The loopback network interface(配置环回口)
autolo # 开机自动激lo接口
iface lo inetloopback # 配置lo接口为环回口
# The primary networkinterface (配置主网络接口)
auto eth0 #开机自动激活eth0接口
iface eth0 inet static #配置eth0接口为静态设置IP地址
address 10.16.3.99
netmask255.255.255.0
gateway 10.16.3.1
重启网络:
喜欢
0
评分
0
最新喜欢:
淘宝天猫隐藏优惠券地址
回复
100%
发帖
回复
« 返回列表
普通帖
您需要登录后才可以回帖,
登录
或者
注册
100%
返回顶部
关闭
最新喜欢