国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Solaris > 正文

Solaris如何網卡IP地址?

2024-07-26 00:29:55
字體:
來源:轉載
供稿:網友
 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 


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 湖南省| 偏关县| 河东区| 蒙城县| 奉节县| 克山县| 湘潭市| 上蔡县| 鄂伦春自治旗| 略阳县| 贡嘎县| 南澳县| 信宜市| 潮安县| 抚州市| 积石山| 双峰县| 松江区| 雷州市| 陇西县| 汝阳县| 宜宾市| 娄烦县| 宁都县| 漳州市| 丹江口市| 龙川县| 铜山县| 福海县| 绿春县| 扶绥县| 微博| 郴州市| 讷河市| 淄博市| 井研县| 禄丰县| 云梦县| 汉源县| 龙岩市| 高邑县|