ifconfig
ifconfig用于配置网卡地址,改动后立即生效,但并不保存配置,下次启动后失效。
# ifconfig -a
lo0: flags=849
inet 127.0.0.1 netmask ff000000
hme0: flags=863
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
inet 127.0.0.1 netmask ff000000
hme0: flags=863
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
相关文章
热点文章
- format命令
- Sun Solaris 培训教材..
- ifconfig命令
- route命令
- 水木清华BBS集锦:没有..
- Solaris如何网卡IP地址..
- Solaris网络配置
- 在Solaris系统中安装G..
- Sun Solaris 培训教材..
- Solaris系统的启动和关..
- Solaris使用技巧
- solaris8学习资料 - 第..
- Sun Solaris 8 for In..
- fsck命令
- Sun Solaris 培训教材..
- Solaris 常见问题及解..
- Sun Solaris 培训教材..
- solaris8学习资料 - 第..
- Sun Solaris 培训教材..
- Solaris网络管理培训(..
Solaris如何网卡IP地址?
- 阅览次数:
- 文章来源: http://www.fanqiang.com
- 原文作者:
- 整理日期: 2004-06-16
- 发表评论
下一篇:Photoshop调色,制作阿宝色彩的练习
