免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1367 | 回复: 0
打印 上一主题 下一主题

Redhat AS 5和Ubuntu 8.10网卡IP地址、网关及DNS配置的差异 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-17 10:07 |只看该作者 |倒序浏览

                                                                                Redhat AS 5和Ubuntu 8.10网卡IP地址、网关及DNS配置的差异
Redhat AS 5 Linux网卡配置
---------------------------------------------------------------------------
网卡IP地址配置
/etc/sysconfig/network-scripts/ifcfg-eth0
#VIA Technologies, Inc. VT6105 [Rhine-Ⅲ]
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:40:D0:4B:44:BE
IPADDR=192.168.3.20
NETMASK=255.255.0.0
ONBOOT=yes
主机名及网关配置
/etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=flush
GATEWAY=192.168.0.1
DNS配置
/etc/resolv.conf
nameserver=192.168.0.1
---------------------------------------------------------------------------
Ubuntu 8.10网卡配置
---------------------------------------------------------------------------
网卡IP地址配置及网关配置
/etc/network/interfaces
#This file describes the network interfaces available on your system
#and how to activate them. For more information, see interfaces(5).
#The loopback network interface
auto lo
iface lo inet loopback
#The primary network interface
auto eth1
iface eth1 inet static
address 192.168.3.20
netmask 255.255.0.0
gateway 192.168.0.1
主机名的配置
/etc/hostname
Percy-Ubuntu
DNS配置
/etc/resolv.conf
nameserver=192.168.0.1
---------------------------------------------------------------------------
               
               
               
               
               
               
               
               
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/87794/showart_1724692.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP