USB数码手机 MP3MP4 | 数码相机 | 数码摄像 | 手机通讯 | 电子词典 | 学习机 | 掌上电脑 | 录音笔 | 摄像头 | 数码配件 | 移动存储
电脑知识 | IT认证 | 计算机术语 | 蓝牙技术 | 服务器 | 台式电脑 | 笔记本电脑 | 电脑配件| 办公设备 | 网络设备
数字家电 | USB小产品 | 销售维修 | 驱动下载 | IT厂商 | IT名人 | 网站地图 | 娱乐休闲| 广告信息发布区 产品交易

Solaris 网卡IP地址设置方法


? ifconfig
ifconfig用于配置网卡地址,改动后立即生效,但并不保存配置,下次启动后失效。
# ifconfig -a
lo0: flags=849 mtu 8232
inet 127.0.0.1 netmask ff000000
 
hme0: flags=863 mtu 1500
inet 172.16.255.2 netmask ffff0000 broadcast 172.16.255.255
ether 8:0:20:ee:11:51
#ifconfig hme0 172.16.3.3 netmask 255.255.255.0
#ifconfig –a
lo0: flags=849 mtu 8232
inet 127.0.0.1 netmask ff000000
hme0: flags=863 mtu 1500
inet 172.16.3.3 netmask ffffff00 broadcast 172.16.3.255
ether 8:0:20:ee:11:51


? /etc/hosts
想要永久更改配置,则要更改配置文件,以网卡hme0为例:

#more /etc/hostname.hme0
Sunland
#more /etc/hosts
127.0.0.1 localhost
172.16.255.2 Sunland loghost
#vi /etc/hosts
#more /etc/hosts
127.0.0.1 localhost
172.16.3.3 Sunland loghost
#more /etc/netmasks
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
# network-number netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center. Currently this number is restricted to being a class
# A, B, or C network number. In the future we should be able to support
# arbitrary network numbers per the Classless Internet Domain Routing
# guidelines.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
#vi /etc/netmasks
#more /etc/netmasks
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
# network-number netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center. Currently this number is restricted to being a class
# A, B, or C network number. In the future we should be able to support
# arbitrary network numbers per the Classless Internet Domain Routing
# guidelines.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
172.16.3.0 255.255.255.0
#reboot

    相关文章
  
·SureSCSI 212盘柜,如何标识故障硬盘?
·AMS200/AMS500磁盘柜,如何导出配置文件?
·SureFibre 640磁盘阵列快速安装指南V1.0
·SF640如何创建RAID10?
·使用不同版本的SANtricity管理软件,如何导出pr
·如何使用SureSCSI 212磁盘阵列的写校验功能?
·SureSCSI 212磁盘阵列有何种基于S.M.A.R.T的安全
·SureSCSI 212盘柜,支持哪几种配置方式?
·TR630 G6 SAS配置服务器,是否有板载SAS RAID功
·R520 G6如何关闭USB控制器?
    最新文章
  
·诺基亚N78使用导航、电池续航
·诺基亚N78系统详细解析
·诺基亚N78 GPRS设置方法
·N78水货手机基本知识
·N78国内行货和正宗港行的对比
·诺基亚N781评价
·欧版诺基亚N78使用一周感受
·S60V3手机 字体安装、删除的方法
·诺基亚N78所有参数介绍
·ThinkPad -- 低版本Rescue and Recovery 软件可
USB数码广场 | 鲁ICP备06022675号 | |