国产探花免费观看_亚洲丰满少妇自慰呻吟_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 


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 泰宁县| 上林县| 凉城县| 崇文区| 怀安县| 敦煌市| 封开县| 青州市| 高台县| 太仆寺旗| 郧西县| 岳阳县| 神农架林区| 虞城县| 咸阳市| 正安县| 上饶县| 邻水| 临沂市| 女性| 东安县| 梁河县| 通榆县| 民权县| 高要市| 卢氏县| 蒲江县| 金川县| 治县。| 虞城县| 随州市| 福州市| 横峰县| 都安| 鄂伦春自治旗| 土默特右旗| 南丹县| 城步| 双江| 双鸭山市| 汤阴县|